Material
UnityEngine.Material · Official documentation
Scripts can use these 18 members of Material. Anything not listed here is a compile error when you build your world.
Properties and fields
| Name | Access |
|---|---|
color | read / write |
mainTexture | read / write |
mainTextureOffset | read / write |
mainTextureScale | read / write |
Methods
| Method | Parameters |
|---|---|
DisableKeyword | (string) |
EnableKeyword | (string) |
GetColor | (string) |
GetFloat | (string) |
GetInt | (string) |
GetInteger | (string) |
GetVector | (string) |
HasProperty | (string) |
SetColor | (string, Color) |
SetFloat | (string, float) |
SetInt | (string, int) |
SetInteger | (string, int) |
SetTexture | (string, Texture) |
SetVector | (string, Vector4) |