I am having some issues getting the Blackboards working with Vector3. It seems that at first my editor was using System.Numerics Vector3, but when switching to FlaxEngine.Vector3 a crash occurs. I do not see a cause in the logs.
Here is the code that is causing the crash. Make a blackboard that contains a Vector3. Make a behavior tree that has a selector that uses this Vector3. My Blackboard looks like this:
public BehaviorKnowledgeSelector<Vector3> Position;
public override void InitState(BehaviorUpdateContext context)
{
// Initialize state and assign it
var state = new State
{
TargetPosition = Vector3.Zero
};
//THIS IS causing crash
if (Position.TryGet(context.Knowledge, out var position))
state.TargetPosition = position;
NewState(context.Memory, state);
}
The crash is reproduced in a fresh project as well. Project: Test_Behave_1.zip - Dysk Google