Skip to main content

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​

NameAccess
colorread / write
mainTextureread / write
mainTextureOffsetread / write
mainTextureScaleread / write

Methods​

MethodParameters
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)