Manages all CompoundItems attached to the AvatarItem this manager is associated with
More...
Manages all CompoundItems attached to the AvatarItem this manager is associated with
◆ AddCompoundItem()
Job Astra.Asset.CompoundManager.AddCompoundItem |
( |
CompoundItem |
ci, |
|
|
int |
parentJobId = Job.kNoParentJobId |
|
) |
| |
|
inline |
Attaches a compound item to the avatar. Typically you would load an asset directly onto an avatar, but this is useful to manually attach it if it's already loaded.
- Parameters
-
ci | The compound item to attach |
parentJobId | An optional job id to associate with the parent job |
- Returns
- A job to wait upon
TODO: We need to do everything we need to do before removing the old content otherwise we'll see a few frames with the old content removed before the new content is ready
◆ GetAllCompoundItems()
List< CompoundItem > Astra.Asset.CompoundManager.GetAllCompoundItems |
( |
| ) |
|
|
inline |
Returns a list of CompoundItems that are attached to the avatar
- Returns
- List of CompoundItems attached to the AvatarItem
◆ GetCompoundItem()
CompoundItem Astra.Asset.CompoundManager.GetCompoundItem |
( |
string |
guid | ) |
|
|
inline |
Retrieve the compound item with the given guid
- Parameters
-
guid | Guid of the compound item to retrieve |
◆ GetContentList()
ItemDict Astra.Asset.CompoundManager.GetContentList |
( |
| ) |
|
|
inline |
Gets a copy of the attached compound items on this avatar.
- Returns
- A dictionary of items with the key as an instance id and the value is the CompoundItem
◆ HasCompoundItem()
bool Astra.Asset.CompoundManager.HasCompoundItem |
( |
string |
guid | ) |
|
|
inline |
◆ RemoveCompoundItem()
CompoundItem Astra.Asset.CompoundManager.RemoveCompoundItem |
( |
string |
guid, |
|
|
bool |
delete = true , |
|
|
bool |
recomputeAI = true |
|
) |
| |
|
inline |
Removes an item from the AvatarItem
- Parameters
-
guid | The GUID for the item to remove |
delete | Whether the item should be deleted |
recomputeAI | Whether the alpha texture for the avatar should be recomputed |
- Returns
- The CompoundItem removed, if it was found
The documentation for this class was generated from the following file:
- Assets/Astra/Asset/CompoundManager.cs