Last active
January 7, 2016 18:27
-
-
Save tsubaki/c80ad918efa21e26c77a to your computer and use it in GitHub Desktop.
マテリアル拡張
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
public class ExampleShaderInspector : MaterialEditor { | |
// マテリアルへのアクセス | |
Material material{ | |
get{ | |
return (Material)target; | |
} | |
} | |
// Inspectorに表示される内容 | |
public override void OnInspectorGUI () | |
{ | |
// マテリアルを閉じた時に非表示にする | |
if (isVisible == false ) { return; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment