Пример #1
0
    public override void OnInspectorGUI()
    {
        FullscreenOutput output = target as FullscreenOutput;

        if (DrawDefaultInspector())
        {
            //Something changed!
        }
        if (GUILayout.Button("Reset"))
        {
            output.ClearTexture();
        }
    }
Пример #2
0
 private void Awake()
 {
     instance = this;
     canvas   = GetComponentInChildren <Canvas>();
     image    = GetComponentInChildren <RawImage>();
 }