using UnityEngine; using System.Collections; public class TestListener : MonoBehaviour { void OnGUI () { SendMessage( "OnTest" , hogehoge); } } |
using UnityEngine; using System.Collections; public class MyGUITexture : MonoBehaviour { void OnTest(MyClass hoge) { OtherMember.gameObject.active = false ; // OtherMember.gameObject.SetActiveRecursively( false ) ; } } |
OnGUI()에서 발생
'Unity3D' 카테고리의 다른 글
[Unity3D]UnityEngine Loop (0) | 2012.12.03 |
---|---|
[Unity3D]Material Shader 변경 (0) | 2012.11.29 |
Unity3D meta file (0) | 2012.11.18 |
유니티 참고 사이트 (0) | 2012.11.08 |
UnityEngine.HandHeld (0) | 2012.11.06 |