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

ItemBase is the base class for all MonoBehavior based Item objects. More...

Inheritance diagram for Astra.Asset.ItemBase:

Public Member Functions

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 Member Functions

void TrackId (string id)
 
void UntrackIds ()
 

Protected Attributes

List< string > _trackingIds = null
 

Properties

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]
 

Detailed Description

ItemBase is the base class for all MonoBehavior based Item objects.

Member Function Documentation

◆ FindRigItem()

virtual RigItem Astra.Asset.ItemBase.FindRigItem ( )
inlinevirtual

Finds the current RigItem associated on this Avatar Hierarchy

Returns
The RigItem if found (may be null)

◆ TrackId()

void Astra.Asset.ItemBase.TrackId ( string  id)
inlineprotected

Stores references to items in the referencepool so ondestroy they can be released if needed

◆ UntrackIds()

void Astra.Asset.ItemBase.UntrackIds ( )
inlineprotected

Tell the reference pool we no longer need certain records


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