OnClose Method

6 views
Skip to first unread message

Ruba

unread,
Feb 23, 2012, 1:58:17 PM2/23/12
to Activate3D-ICM
Hey Guys,

I need to do something when game exits, but I can't find a method like
"OnClose" or "OnExit" to override !
anyone can help?!

Thanks,
Ruba Al-Sa'di

Dan

unread,
Feb 23, 2012, 3:04:51 PM2/23/12
to Activate3D-ICM
Typical approach in Unity is to use the OnDestroy method of an object
that will persist for the life of the application. For example, we
shut down the ICM session in the OnDestroy method of
A3DBaseActivateSession.

dba

Ruba Al-Sa'di

unread,
Feb 23, 2012, 4:11:03 PM2/23/12
to activat...@googlegroups.com
aha! 
what about MonoBehaviour class? is there any similar method?!

Ruba Al-Sa'di

--

Regards,
Ruba Al-Sa'di

Shaun Kime

unread,
Feb 23, 2012, 4:14:08 PM2/23/12
to activat...@googlegroups.com
OnDestroy is part of MonoBehaviour.

Shaun

Ruba Al-Sa'di

unread,
Feb 24, 2012, 4:03:12 AM2/24/12
to activat...@googlegroups.com
Thanks a lot. That was a great help!

Ruba Al-Sadi.
Reply all
Reply to author
Forward
0 new messages