Class Skinable_noCache
- Namespace
- CustomKnight
- Assembly
- CustomKnight.dll
Skinable that does not cache the material
public abstract class Skinable_noCache : Skinable
- Inheritance
-
Skinable_noCache
- Inherited Members
Constructors
Skinable_noCache(string)
Ctor
public Skinable_noCache(string name)
Parameters
namestringName of the skinable
Methods
ApplyTexture(Texture2D)
A Method that is called to Apply a Texture to the current Skinable.
public override void ApplyTexture(Texture2D tex)
Parameters
texTexture2DA
Texture2Dthat is to be applied
GetMaterial()
Function you must implement to return the material to be skinned
public abstract Material GetMaterial()
Returns
- Material
SaveDefaultTexture()
A Method that is called to create a backup of the default texture of the skinable, used when unloading or as a fallback.
public override void SaveDefaultTexture()