Class VariantsManager.MaterialSwitch
Class handling material variants
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PiXYZ.Import
Assembly: cs.temp.dll.dll
Syntax
[Serializable]
public class MaterialSwitch : VariantsManager.Switch<Material>
Constructors
MaterialSwitch(GameObject, String, String)
Declaration
public MaterialSwitch(GameObject root, string switchName, string materialVariantsFile)
Parameters
Type | Name | Description |
---|---|---|
GameObject | root | |
System.String | switchName | |
System.String | materialVariantsFile |
Methods
selectVariant(Object)
Selects the material variant passed as parameter
Declaration
public override bool selectVariant(object variant)
Parameters
Type | Name | Description |
---|---|---|
System.Object | variant |
Returns
Type | Description |
---|---|
System.Boolean | True if success |