3rd Eye Scene C#
3rd Eye Scene C# documentation
Tes::Runtime::MaterialLibrary Class Reference

The MaterialLibrary provides a way to register and access Unity materials by name. More...

List of all members.

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 .

Detailed Description

The MaterialLibrary provides a way to register and access Unity materials by name.


Member Function Documentation

bool Tes::Runtime::MaterialLibrary::Contains ( string  key) [inline]

Checks if the library has a material registered under the given key

Parameters:
keyThe 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.

Parameters:
keyThe key to register under.
materialA Unity material to register.

Property Documentation

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

Parameters:
keyThe material name/key.

A Unity material object.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Properties Events