Show / Hide Table of Contents

Class GameMaterials

Gives access to shaders frequently used in the game, along with example materials that use them.

Inheritance
Object
GameMaterials
Namespace: Modding
Assembly: Assembly-CSharp.dll
Syntax
public class GameMaterials : MonoBehaviour

Constructors

GameMaterials()

Declaration
public GameMaterials()

Methods

GetMaterial(GameMaterials.BlockGhostMaterial)

Gets an instance of the given material.

Declaration
public static Material GetMaterial(GameMaterials.BlockGhostMaterial mat)
Parameters
Type Name Description
GameMaterials.BlockGhostMaterial mat

What material to return.

Returns
Type Description
UnityEngine.Material

A copy of the example material.

GetMaterial(GameMaterials.BlockMaterial)

Gets an instance of the given material.

Declaration
public static Material GetMaterial(GameMaterials.BlockMaterial mat)
Parameters
Type Name Description
GameMaterials.BlockMaterial mat

What material to return.

Returns
Type Description
UnityEngine.Material

A copy of the example material.

GetMaterial(GameMaterials.EntityMaterial)

Gets an instance of the given material.

Declaration
public static Material GetMaterial(GameMaterials.EntityMaterial mat)
Parameters
Type Name Description
GameMaterials.EntityMaterial mat

What material to return.

Returns
Type Description
UnityEngine.Material

A copy of the example material.

GetMaterial(GameMaterials.MiscMaterial)

Gets an instance of the given material.

Declaration
public static Material GetMaterial(GameMaterials.MiscMaterial mat)
Parameters
Type Name Description
GameMaterials.MiscMaterial mat

What material to return.

Returns
Type Description
UnityEngine.Material

A copy of the example material.

GetMaterial(GameMaterials.ParticleMaterial)

Gets an instance of the given material.

Declaration
public static Material GetMaterial(GameMaterials.ParticleMaterial mat)
Parameters
Type Name Description
GameMaterials.ParticleMaterial mat

What material to return.

Returns
Type Description
UnityEngine.Material

A copy of the example material.

Back to top Generated by DocFX