Skip to content

Instantly share code, notes, and snippets.

@uzzu
Created January 7, 2014 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uzzu/8296027 to your computer and use it in GitHub Desktop.
Save uzzu/8296027 to your computer and use it in GitHub Desktop.
MonoBehaviourを継承したクラスをAssets/Standard Assetsディレクトリ以下においた場合のみ有効。 使用するShader scriptをInspectorから設定できる。Shader scriptのみ。
using UnityEngine;
namespace Hoge
{
public class ShaderInspectorExample : MonoBehaviour
{
public Shader publicShader;
[SerializeField]
Shader privateShader;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment