Inheritence

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 Get thje first texture assigned to this material, if any.
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.
IsValid
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
GetColor Get Color parameter, by name
GetFeature Get a feature flag on the material. This is usually used to enable/disable shader permutations.
GetTexture Get texture parameter, by name
GetVector4 Get Vector4 parameter, by name
Set Overrides/Sets an Vector4 within the material
SetFeature Set a feature flag on the material. This is usually used to enable/disable shader permutations. This is kind of a define, also known as a combo.

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.