Unable to complete New Game Object Task Tutorial

a2345sooted

New member
As I made my way through the new game object task tutorial, I wasn't able to get the HasEnteredTrigger conditional abort to work. It looks like the trigger is never received, so I don't think the conditional abort is setup wrong, but rather the OnTriggerEntered never happens.

One thing I noticed is when I created a new custom task through the graph editor, I got ActionNode and ConditionalNode, not Action and Conditional like in the tutorial. I did see Conditional still worked though. Nonetheless, neither caused the trigger to be received.

here is the conditional task

using Opsive.BehaviorDesigner.Runtime.Tasks;
using Opsive.BehaviorDesigner.Runtime.Tasks.Conditionals;
using UnityEngine;
using Debug = UnityEngine.Debug;

public class HasEnteredEnemyDesitination : Conditional
{
protected override bool ReceiveTriggerEnterCallback => true;

private bool m_HasEntered = false;

protected override void OnTriggerEnter(Collider other)
{
Debug.Log("ON TRIGGER!!!!!!!!...");
m_HasEntered = true;
}

public override TaskStatus OnUpdate()
{
return m_HasEntered ? TaskStatus.Success : TaskStatus.Failure;
}
}


I never see ON TRIGGER log. The move to destination part of the tutorial is working.

For the target, I have a sphere collider on it (larger than the object) wtih IsTrigger checked.

Any thoughts? Anything I can provide to help? Hope I'm just missing a silly checkbox somewhere.



Screenshot 2025-09-28 at 2.57.19 PM.pngScreenshot 2025-09-28 at 2.57.31 PM.png
 
Back
Top