Reply To: Problem: Using Slate With Nodecanvas, Trigger Action Task lost BBParam reference

Slate Forums Support Problem: Using Slate With Nodecanvas, Trigger Action Task lost BBParam reference Reply To: Problem: Using Slate With Nodecanvas, Trigger Action Task lost BBParam reference

#2311
yinhao7700
Participant

Truely thanks for your help!

But there remains some bugs.

I’m using the PlayCutsceneAdvanced (Action Task) in NodeCanvas, and cutsceneIsPrefab = true.  After the cutscene instantiated, it would call ResolveBlackboard() and UpdateTasksOwner() in TriggerActionTask, which last fix is in. But at this time, the agent and the blackboard is still null. Because SetGroupActorOfName() haven’t called.

protected override void OnExecute() {

// ……

 

cutsceneInstance = cutsceneIsPrefab ? Object.Instantiate(cutscene.value) : cutscene.value;

 

// Instantiate wall call it’s Awake ,so the UpdateTasksOwner has called. But SetGroupActorOfName haven’t called.

 

foreach ( var replacement in replacementActors ) {

if ( !string.IsNullOrEmpty(replacement.groupName) && replacement.newActor.value != null ) {

cutsceneInstance.SetGroupActorOfName(replacement.groupName, replacement.newActor.value);

}

}

Hoping for another fix. Thanks again!