Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Signal on timeline to exit application?

Discussion in 'Editor & General Support' started by garyhaus, Jul 22, 2020.

  1. garyhaus

    garyhaus

    Joined:
    Dec 16, 2006
    Posts:
    601
    I am sure this is possible... Can someone explain how to do this? New to timeline/signals. I assume a script to exit the application and then how do I 'tie' the script to the signal event? Thanks for your time.

    Gary
     
  2. fffMalzbier

    fffMalzbier

    Joined:
    Jun 14, 2011
    Posts:
    3,276
    You have your script withe Code to quit the application on a gamobject in a public function, add a SignalReceiver component to the object.
    Choose the singal you used in your timeline and asigne the public function in the event trigger of the SignalReceiver .