Class BTDecorator
Decorators are supporting nodes placed on parent-child connection, that receive notification about execution flow and can be ticked Because some of them can be instanced for specific AI, following virtual functions are not marked as const:
- OnNodeActivation
- OnNodeDeactivation
- OnNodeProcessed
- OnBecomeRelevant (from UBTAuxiliaryNode)
- OnCeaseRelevant (from UBTAuxiliaryNode)
- TickNode (from UBTAuxiliaryNode) If your node is not being instanced (default behavior), DO NOT change any properties of object within those functions! Template nodes are shared across all behavior tree components using the same tree asset and must store
Inheritance
System.Object
BTDecorator
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: UE4.AIModule
Assembly: UE4DotNet.dll
Syntax
public class BTDecorator : BTAuxiliaryNode
Remarks
their runtime properties in provided NodeMemory block (allocation size determined by GetInstanceMemorySize() )
Properties
| Improve this Doc View SourcebInverseCondition
Declaration
public bool bInverseCondition { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static BTDecorator DefaultObject { get; }
Property Value
Type | Description |
---|---|
BTDecorator |
FlowAbortMode
flow controller settings
Declaration
public byte FlowAbortMode { get; set; }
Property Value
Type | Description |
---|---|
System.Byte |
StaticClass
Get UE4 Class
Declaration
public static Class StaticClass { get; }
Property Value
Type | Description |
---|---|
Class |
Methods
| Improve this Doc View SourceNew(UObject, Name)
Spawn an object of this class
Declaration
public static BTDecorator New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
BTDecorator |
Operators
| Improve this Doc View SourceImplicit(IntPtr to BTDecorator)
Convert from IntPtr to UObject
Declaration
public static implicit operator BTDecorator(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
BTDecorator |