public override void OnInspectorGUI() { FullscreenOutput output = target as FullscreenOutput; if (DrawDefaultInspector()) { //Something changed! } if (GUILayout.Button("Reset")) { output.ClearTexture(); } }
private void Awake() { instance = this; canvas = GetComponentInChildren <Canvas>(); image = GetComponentInChildren <RawImage>(); }