Exemplo n.º 1
0
    public override void OnInspectorGUI()
    {
        FullscreenOutput output = target as FullscreenOutput;

        if (DrawDefaultInspector())
        {
            //Something changed!
        }
        if (GUILayout.Button("Reset"))
        {
            output.ClearTexture();
        }
    }
Exemplo n.º 2
0
 private void Awake()
 {
     instance = this;
     canvas   = GetComponentInChildren <Canvas>();
     image    = GetComponentInChildren <RawImage>();
 }