Astra Unity 2.6.6
Astra Unity Plugin
Astra.Asset.MaterialManager Class Reference

Manages all MaterialItems and MaterialVariationItems attached to the AvatarItem this manager is associated with More...

Inheritance diagram for Astra.Asset.MaterialManager:

Public Member Functions

virtual void RemoveMaterialItem (string guid)
 Remove a MaterialItem with the given guid and destroy it More...
 
virtual void RemoveMaterialVariationItem (string guid)
 Remove a MaterialVariationItem with the given guid and destroy it More...
 
virtual void RemoveAllMaterialItems ()
 Remove all MaterialItems
 
virtual void RemoveAllMaterialVariationItems ()
 Remove all MaterialVariationItems
 
MaterialItem GetMaterialItem (string guid)
 Retrieve the MaterialItem with the given guid More...
 
MaterialVariationItem GetMaterialVariationItem (string guid)
 Retrieve the MaterialVariationItem with the given guid More...
 
virtual List< MaterialItemGetAllMaterialItems ()
 Returns a list of MaterialItems that are attached to the avatar More...
 
virtual List< MaterialVariationItemGetAllMaterialVariationItems ()
 Returns a list of MaterialVariationItems that are attached to the avatar More...
 

Additional Inherited Members

- Protected Attributes inherited from Astra.Asset.AvatarManagerBase
AvatarItem avatarItem
 

Detailed Description

Manages all MaterialItems and MaterialVariationItems attached to the AvatarItem this manager is associated with

Member Function Documentation

◆ GetAllMaterialItems()

virtual List< MaterialItem > Astra.Asset.MaterialManager.GetAllMaterialItems ( )
inlinevirtual

Returns a list of MaterialItems that are attached to the avatar

Returns
List of MaterialItems attached to the AvatarItem

◆ GetAllMaterialVariationItems()

virtual List< MaterialVariationItem > Astra.Asset.MaterialManager.GetAllMaterialVariationItems ( )
inlinevirtual

Returns a list of MaterialVariationItems that are attached to the avatar

Returns
List of MaterialItems attached to the AvatarItem

◆ GetMaterialItem()

MaterialItem Astra.Asset.MaterialManager.GetMaterialItem ( string  guid)
inline

Retrieve the MaterialItem with the given guid

Parameters
guidGuid of the item to retrieve

◆ GetMaterialVariationItem()

MaterialVariationItem Astra.Asset.MaterialManager.GetMaterialVariationItem ( string  guid)
inline

Retrieve the MaterialVariationItem with the given guid

Parameters
guidGuid of the item to retrieve

◆ RemoveMaterialItem()

virtual void Astra.Asset.MaterialManager.RemoveMaterialItem ( string  guid)
inlinevirtual

Remove a MaterialItem with the given guid and destroy it

Parameters
guidGuid of the item to remove

◆ RemoveMaterialVariationItem()

virtual void Astra.Asset.MaterialManager.RemoveMaterialVariationItem ( string  guid)
inlinevirtual

Remove a MaterialVariationItem with the given guid and destroy it

Parameters
guidGuid of the item to remove

The documentation for this class was generated from the following file: