DoNotModifyShaderEditor.cs 536 B

123456789101112131415
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEditor;
  5. public class DoNotModifyShaderEditor : ShaderGUI
  6. {
  7. public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] properties)
  8. {
  9. EditorGUILayout.HelpBox("Do not edit/modify skybox properties from here. You should change all " +
  10. "sky properties using the 'Sky Profile' linked from your SkySystemController in the scene.", MessageType.Error);
  11. base.OnGUI(materialEditor, properties);
  12. }
  13. }