FStateTreePropertyBindingCompiler

Helper class to compile editor representation of property bindings into runtime representation.

Choose your operating system:

Windows

macOS

Linux

References

Module

StateTreeEditorModule

Header

/Engine/Plugins/Runtime/StateTree/Source/StateTreeEditorModule/Public/StateTreePropertyBindingCompiler.h

Include

#include "StateTreePropertyBindingCompiler.h"

Syntax

USTRUCT()
struct FStateTreePropertyBindingCompiler

Remarks

Helper class to compile editor representation of property bindings into runtime representation. TODO: Better error reporting, something that can be shown in the UI.

Variables

Functions

Name Description

Public function

int32

 

AddSourceStruct

(
    const FStateTreeBindableStructDesc ...
)

Adds source struct.

Public function

bool

 

CompileBatch

(
    const FStateTreeBindableStructDesc ...,
    TConstArrayView< FStateTreeEditorPr...,
    int32& OutBatchIndex
)

Compiles a batch of property copies.

Public function

void

 

Finalize()

Finalizes compilation, should be called once all batches are compiled.

Protected function

EStateTreePr...

 

GetCopyType

(
    const FProperty* SourcePropert...,
    const int32 SourceArrayIndex,
    const FProperty* TargetPropert...,
    const int32 TargetArrayIndex
)

Public function Static

EPropertyAcc...

 

GetPropertyCompatibility

(
    const FProperty* InPropertyA,
    const FProperty* InPropertyB
)

Checks if two property types can are compatible for copying.

Public function Const

const FState...

 

GetSourceStructDesc

(
    const int32 Index
)

Public function Const

int32

 

GetSourceStructIndexByID

(
    const FGuid& ID
)

Public function

bool

 

Init

(
    FStateTreePropertyBindings& InProp...,
    FStateTreeCompilerLog& InLog
)

Initializes the compiler to compile copies to specified Property Bindings.

Protected function

bool

 

ResolvePropertyPath

(
    const FStateTreeBindableStructDesc ...,
    const FStateTreeBindableStructDesc ...,
    const FStateTreeEditorPropertyPath ...,
    FResolvedPathResult& OutResult
)

Public function Static

bool

 

ResolvePropertyPath

(
    const FStateTreeBindableStructDesc ...,
    const FStateTreeEditorPropertyPath ...,
    TArray< FStateTreePropertySegment >...,
    const FProperty*& OutLeafPrope...,
    int32& OutLeafArrayIndex,
    FStateTreeCompilerLog* Log,
    const FStateTreeBindableStructDesc ...
)

Resolves a string based property path in specified struct into segments of property names and access types.

Protected function

void

 

StoreSourceStructs()

Classes

Name

Description

Protected struct

FResolvedPathResult