|
Astra Unity 2.6.6
Astra Unity Plugin
|
MaterialVariationItems are used to supplement or replace a material on an asset They can be blended like a decal using the BlendingFunction They can be specific to a mesh/submesh or generic and applied anywhere(via PrimitiveMaterialTarget.[sub]mesh_id) They also support the material sub layers if using the Astra/Easy Standard with ASTRA_SUB_MATERIALS_ON keyword enabled More...

Public Member Functions | |
| void | Sync (bool refresh=false) |
| void | RestoreMaterials () |
| Copies the original material for this variation into the materials dictionary and tripes a resync | |
| void | StoreMaterials (bool refresh=false) |
| Clones the existing materials into a serialized dictionary keyed on submesh id | |
Public Member Functions inherited from Astra.Asset.ItemBase | |
| virtual CompoundItem | FindParentCompound () |
| Find the parent CompoundItem which this Item is attached to, if it exists, otherwise null | |
| virtual AvatarItem | FindAvatarItem () |
| Returns the AvatarItem this item is attached to (if found, note may return null) | |
| virtual RigItem | FindRigItem () |
| Finds the current RigItem associated on this Avatar Hierarchy More... | |
Protected Attributes | |
| SerializableDictionarySMat | _originalMaterials = new SerializableDictionarySMat() |
| MeshItem | _meshItem |
| bool | _active = false |
| bool | _dirty = true |
Protected Attributes inherited from Astra.Asset.ItemBase | |
| List< string > | _trackingIds = null |
Properties | |
| SerializableDictionarySMat | OriginalMaterials [get] |
| This tuplet contains a copy of the original materials unless baked out Key is the submesh id and value is a unity material | |
| MeshItem | meshItem [get] |
| bool | Active [getset] |
| Tells you whether or not the material has been applied to the MeshItem or not More... | |
Properties inherited from Astra.Asset.ItemBase | |
| virtual McsSdk20.Primitives.AstraPrimitiveType | PrimitiveType [get] |
| Retrieve the primitive type for this item | |
| virtual McsSdk20.Primitives.SchematicType | SchematicType [get] |
| Retrieve the schematic type for this item | |
| string | AstraGuid [getset] |
| Guid for this item to identify it in the Astra Service | |
| string | AstraName [getset] |
| Display name for this item | |
| string | AstraInstanceId [getset] |
| Guid representing an instance of this item | |
Properties inherited from Astra.Asset.IAstraBaseInterface | |
| string | AstraGuid [getset] |
| string | AstraName [getset] |
| string | AstraInstanceId [getset] |
Additional Inherited Members | |
Protected Member Functions inherited from Astra.Asset.ItemBase | |
| void | TrackId (string id) |
| void | UntrackIds () |
MaterialVariationItems are used to supplement or replace a material on an asset They can be blended like a decal using the BlendingFunction They can be specific to a mesh/submesh or generic and applied anywhere(via PrimitiveMaterialTarget.[sub]mesh_id) They also support the material sub layers if using the Astra/Easy Standard with ASTRA_SUB_MATERIALS_ON keyword enabled
Unlike DecalItems only 1 active MaterialVariationItem should exist on a mesh, enabling one should disable all others
|
getset |
Tells you whether or not the material has been applied to the MeshItem or not
True if the material has been applied, false otherwise