Cant add scne gameobject to public property of Animator State Behaviour

I cannot put anything into the shot point transform of the Animator State Behaviour

alt text

You can’t do this because an animator is a project asset. You can’t reference scene gameObjects inside project assets.

You will need a script on the gameObject holding the animator component to pass the gameObject to the stateMachineBehaviour

public Transform ShotPoint;

private void Start()
{
    Animator animator = GetComponent<Animator>();
    MainGunBehaivour mainGunBehaivour = animator.GetBehaviour<MainGunBehaivour>();
    mainGunBehaivour.ShotPoint = ShotPoint;
}

Thanks man it works!