|
3rd Eye Scene C#
3rd Eye Scene C# documentation
|
The MaterialLibrary provides a way to register and access Unity materials by name. More...
Public Member Functions | |
| bool | Contains (string key) |
| Checks if the library has a material registered under the given key | |
| void | Register (string key, Material material) |
| Register a material under key . | |
Protected Attributes | |
| Dictionary< string, Material > | _map = new Dictionary<string, Material>() |
| The material map. | |
Properties | |
| static string | VertexColourLit [get] |
| The name of a default material, supporting per vertex colour and lighting. | |
| static string | VertexColourUnlit [get] |
| The name of a default material, supporting per vertex colour with no lighting. | |
| static string | VertexColourLitTwoSided [get] |
| The name of a default material, supporting per vertex colour and lighting with culling disabled. | |
| static string | VertexColourUnlitTwoSided [get] |
| The name of a default material, supporting per vertex colour with no lighting and culling disabled. | |
| static string | WireframeTriangles [get] |
| The name of a default wireframe triangle rendering material. | |
| static string | VertexColourTransparent [get] |
| The name of a default material, supporting per vertex colour with no lighting. | |
| static string | PointsLit [get] |
| The name of a default material for rendering unlit points. | |
| static string | PointsUnlit [get] |
| The name of a default material for rendering unlit points. | |
| static string | Voxels [get] |
| The name of a default material for rendering geometry shader based voxels. | |
| Material | this[string key] [get, set] |
| Fetch or register a material under key . | |
The MaterialLibrary provides a way to register and access Unity materials by name.
| bool Tes::Runtime::MaterialLibrary::Contains | ( | string | key | ) | [inline] |
Checks if the library has a material registered under the given key
| key | The material key to check for. |
| void Tes::Runtime::MaterialLibrary::Register | ( | string | key, |
| Material | material | ||
| ) | [inline] |
Register a material under key .
Replaces any existing material under that key.
| key | The key to register under. |
| material | A Unity material to register. |
string Tes::Runtime::MaterialLibrary::PointsLit [static, get] |
The name of a default material for rendering unlit points.
per vertex colour with no lighting.
Material Tes::Runtime::MaterialLibrary::this[string key] [get, set] |
Fetch or register a material under key .
Will replace an existing material under key
| key | The material name/key. |
A Unity material object.