Class BTTaskNode
Task are leaf nodes of behavior tree, which perform actual actions Because some of them can be instanced for specific AI, following virtual functions are not marked as const:
- ExecuteTask
- AbortTask
- TickTask
- OnMessage 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
BTTaskNode
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 BTTaskNode : BTNode
Remarks
their runtime properties in provided NodeMemory block (allocation size determined by GetInstanceMemorySize() )
Properties
| Improve this Doc View SourcebIgnoreRestartSelf
Declaration
public bool bIgnoreRestartSelf { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultObject
Get UE4 Default Object for this Class
Declaration
public static BTTaskNode DefaultObject { get; }
Property Value
Type | Description |
---|---|
BTTaskNode |
Services
service nodes
Declaration
public ObjectArrayField<BTService> Services { get; }
Property Value
Type | Description |
---|---|
ObjectArrayField<BTService> |
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 BTTaskNode New(UObject obj = null, Name name = default(Name))
Parameters
Type | Name | Description |
---|---|---|
UObject | obj | |
Name | name |
Returns
Type | Description |
---|---|
BTTaskNode |
Operators
| Improve this Doc View SourceImplicit(IntPtr to BTTaskNode)
Convert from IntPtr to UObject
Declaration
public static implicit operator BTTaskNode(IntPtr p)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | p |
Returns
Type | Description |
---|---|
BTTaskNode |