Summary

A material. Uses several Textures and a Material.Shader with specific settings for more interesting visual effects.

Properties

Attributes Access to all of the attributes of this material.
FirstTexture
Flags Access flags on this material, which usually hint about the contents. These are generally added by the shader procedurally - but developers can add these in material editor too.
Name Name (or path) of the material.
Shader Gets the material's shader
ShaderName Gets the underlying shader name for this material.

Methods

CreateCopy Create a copy of this material
GetTexture
Set Overrides/Sets an Vector4 within the material

Static Methods

Create Create a new empty material at runtime.
FromShader Get an empty material based on the specified shader. This will cache the material so that subsequent calls will return the same material.
Load Load a material from disk. Has internal cache.
LoadAsync Load a material from disk. Has internal cache.
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.