Graphics

 View Only

Does the xpSceneDirector event OnSceneDirectorState allow adding and removing events?

  • 1.  Does the xpSceneDirector event OnSceneDirectorState allow adding and removing events?

    Posted 11-04-2021 00:11
    I'm trying to listen to the events dispatched from the scene director and when I receive the message that the state has changed and the play stat is stopped I want to remove the event listener.  I do so as follows
    Director.OnSceneDirectorState -= OnSceneDirectorState_Handler;

    This is how I would normally do it in c#.  However, I keep getting the events event though I have removed the handler.  I checked that I am only adding the handler once for every time I need to listen to the event.

    ------------------------------
    David Ball
    ------------------------------