Astra Unity 2.6.6
Astra Unity Plugin
|
Catalog is used to search for assets such as clothing, hair, morphables, figures, avatars, and more. Querying can be filtered to find compatible items or unfiltered requiring you to ensure compatibility. Assets located here will come from both locally installed MR files and against your applications asset categories database from the web portal. If you cannot find an asset you were expecting verify that it is attached to your application through an asset category. If you know the Guid directly you can instead use the Asset.Loader class which will work as long as the asset is available to you regardless if it's associated to an asset category or not. More...
Classes | |
class | CatalogSearchOptions |
class | SearchCatalogJob |
Job to search the catalog for a set of assets More... | |
Public Types | |
enum | CatalogError { Success = 0 , Failed } |
Used to determine a catalog request success of failure state More... | |
enum | AvatarRequest { All , App , User } |
Indicates the filter type for retrieving types of avatars (all, just application level, or just user level) More... | |
Static Public Member Functions | |
static ApiJobNoResult | Refresh () |
Triggers a refresh of assets from the back end. This should be used if you make updates to your assets in your admin portal and need those changes reflected after the initial query. This is automatically done for you on the first call to the catalog system and is only needed if you need to manually update while running your app. If you have a very long running app or it never quits (potentially on mobile) it is a good to trigger a Refresh on a timer or on an event such as resuming from a long sleep. More... | |
static SearchCatalogJob | GetAvatars (AvatarRequest avatarRequest=AvatarRequest.All) |
Get the list of avatars assigned to the current user in this environment More... | |
static CatalogEntry | CreateNewAvatarEntry (AvatarItem ai) |
Create a new catalog entry for a given AvatarItem, useful when a new avatar is created from a template avatar, such as creating a user avatar based on an app avatar. More... | |
static void | UpdateCatalogEntryFromAvatarItem (CatalogEntry avatarCatalogEntry, AvatarItem ai) |
Update the CatalogEntry for an AvatarItem with an updated definition using the given AvatarItem. More... | |
static SearchCatalogJob | SearchForFigures (AvatarItem avatar) |
Get the list of figures available to this environment More... | |
static SearchCatalogJob | SearchForFigures (string rigAstraGuid) |
Get the list of figures available to this environment More... | |
static SearchCatalogJob | SearchForClothing (AvatarItem avatar, List< string > clothingRegions) |
Get the list of clothing items available to this environment for the given clothing regions More... | |
static SearchCatalogJob | SearchForClothing (string rigAstraGuid, List< string > clothingRegions) |
Get the list of clothing items available to this environment for the given clothing regions More... | |
static SearchCatalogJob | SearchForHair (AvatarItem avatar, List< string > hairRegions) |
Get the list of hair items available to this environment for the given hair regions More... | |
static SearchCatalogJob | SearchForHair (string rigAstraGuid, List< string > hairRegions) |
Get the list of hair items available to this environment for the given hair regions More... | |
static SearchCatalogJob | SearchForMorphables (AvatarItem avatar, List< string > regions=null) |
Get the list of morphable items available to this environment for this avatar. More... | |
static SearchCatalogJob | SearchForMorphables (string rigAstraGuid, string meshAstraGuid, List< string > regions=null) |
Get the list of morphable items available to this environment for this avatar. More... | |
static SearchCatalogJob | SearchForDecals (AvatarItem avatar, List< string > decalRegions=null) |
Get the list of decal items available to this environment for this avatar More... | |
static SearchCatalogJob | SearchForDecals (string meshAstraGuid, List< string > decalRegions=null) |
Get the list of decal items available to this environment for this avatar More... | |
static SearchCatalogJob | SearchForCollectionItems (AvatarItem avatar) |
Get the list of collection items available to this environment for this avatar More... | |
static SearchCatalogJob | SearchForCollectionItems (string rigAstraGuid) |
Get the list of collection items available to this environment for this avatar More... | |
static SearchCatalogJob | FindAssetByGuid (string guid) |
Finds a specific asset by guid More... | |
static SearchCatalogJob | FindAssets (CatalogSearchOptions searchOptions) |
Finds a specific asset by search options More... | |
static DeleteAvatarJob | DeleteAvatar (string guid, int parentJobId=Job.kNoParentJobId) |
Deletes the given avatar from the service, this is permanent and not reversible More... | |
static string | GenerateAstraGuid () |
Generate a random Guid for a new astra item, these are generated system side and are not verified for uniqueness via servers More... | |
static SyncAssetsJob | SyncAssets (bool installMissing=false) |
Installs assets that have remote updates on the network (the remote asset was updated after the local asset was installed) More... | |
static ApiJobNoResult | DownloadAllAssetsOfType (SchematicType type, List< string > tags=null) |
Ensures that we have downloaded all of the assets available for a given type More... | |
static List< string > | GetAllAssetsForAvatar (CatalogEntry avatarCatalogEntry) |
Retrieves the list of Asset Guids that are part of this avatar. Note that the avatar does not need to be loaded for this operation. More... | |
static ApiJobNoResult | DownloadAllAssetsForAvatar (CatalogEntry avatarCatalogEntry) |
Begin downloading all assets attached to a given Avatar Note that the avatar does not need to be loaded for this operation. More... | |
static ApiJobNoResult | DownloadAssets (List< string > guids) |
Begin downloading a set of assets More... | |
static ApiJobNoResult | DownloadAsset (string guid) |
Begin downloading a asset More... | |
static GetAssetCategoryJob | GetAssetCategory (long categoryId, bool images, int parentJobId=Job.kNoParentJobId) |
Finds category information typically queried against the root category which you can find on the web portal for your Asset Categories . Categories can contain things such as sort order, titles, if they should be hidden, icons, etc. More... | |
Catalog is used to search for assets such as clothing, hair, morphables, figures, avatars, and more. Querying can be filtered to find compatible items or unfiltered requiring you to ensure compatibility. Assets located here will come from both locally installed MR files and against your applications asset categories database from the web portal. If you cannot find an asset you were expecting verify that it is attached to your application through an asset category. If you know the Guid directly you can instead use the Asset.Loader class which will work as long as the asset is available to you regardless if it's associated to an asset category or not.
Indicates the filter type for retrieving types of avatars (all, just application level, or just user level)
|
inlinestatic |
Create a new catalog entry for a given AvatarItem, useful when a new avatar is created from a template avatar, such as creating a user avatar based on an app avatar.
ai | Avatar item to create an entry for |
|
inlinestatic |
Deletes the given avatar from the service, this is permanent and not reversible
guid | Guid of the Avatar to be deleted |
parentJobId | Id of the parent job, if it applies. Optional. |
|
inlinestatic |
Begin downloading all assets attached to a given Avatar Note that the avatar does not need to be loaded for this operation.
avatarCatalogEntry | CatalogEntry for the avatar |
|
inlinestatic |
Ensures that we have downloaded all of the assets available for a given type
type | Type of asset to download |
tags | Any tags to use as part of the call |
|
inlinestatic |
Begin downloading a asset
guid | guid of asset to download |
|
inlinestatic |
Begin downloading a set of assets
guids | List of guids for assets to download |
|
inlinestatic |
Finds a specific asset by guid
guid | AstraGuid of the asset to find |
|
inlinestatic |
Finds a specific asset by search options
searchOptions | Options to search by |
|
inlinestatic |
Generate a random Guid for a new astra item, these are generated system side and are not verified for uniqueness via servers
|
inlinestatic |
Retrieves the list of Asset Guids that are part of this avatar. Note that the avatar does not need to be loaded for this operation.
avatarCatalogEntry | CatalogEntry for the avatar |
|
inlinestatic |
Finds category information typically queried against the root category which you can find on the web portal for your Asset Categories
. Categories can contain things such as sort order, titles, if they should be hidden, icons, etc.
categoryId | Category ID. -1 to retrieve all category hierarchy |
images | Category images will be included |
parentJobId | Id of the parent job, if it applies. Optional. |
A job to wait upon where GetResult will contain a sorted dictionary keyed on id (ulong) and value will be Astra.Net.GetAssetCategoryJob.AssetCategory
|
inlinestatic |
Get the list of avatars assigned to the current user in this environment
avatarRequest | Indicate which set of Avatars you would like to get results for: Avatars that are common as part of the app, avatars that are specific to the currently signed in user, or all. Default is all. |
|
inlinestatic |
Triggers a refresh of assets from the back end. This should be used if you make updates to your assets in your admin portal and need those changes reflected after the initial query. This is automatically done for you on the first call to the catalog system and is only needed if you need to manually update while running your app. If you have a very long running app or it never quits (potentially on mobile) it is a good to trigger a Refresh on a timer or on an event such as resuming from a long sleep.
|
inlinestatic |
Get the list of clothing items available to this environment for the given clothing regions
avatar | If not null, the figures returned will be compatible with this AvatarItem |
clothingRegions | List of clothing regions to find clothing items for |
|
inlinestatic |
Get the list of clothing items available to this environment for the given clothing regions
rigAstraGuid | The Astra Guid for the rig to filter assets on |
clothingRegions | List of clothing regions to find clothing items for |
|
inlinestatic |
Get the list of collection items available to this environment for this avatar
avatar | If not null, the figures returned will be compatible with this AvatarItem |
|
inlinestatic |
Get the list of collection items available to this environment for this avatar
rigAstraGuid | The Astra Guid for the rig to filter assets on |
|
inlinestatic |
Get the list of decal items available to this environment for this avatar
avatar | If not null, the figures returned will be compatible with this AvatarItem |
decalRegions | If not null, the list of regions to find decals for |
|
inlinestatic |
Get the list of decal items available to this environment for this avatar
meshAstraGuid | The Astra Guid for the mesh to filter assets on |
decalRegions | If not null, the list of regions to find decals for |
|
inlinestatic |
Get the list of figures available to this environment
avatar | If not null, the figures returned will be compatible with this AvatarItem |
|
inlinestatic |
Get the list of figures available to this environment
rigAstraGuid | The Astra Guid for the rig to filter assets on |
|
inlinestatic |
Get the list of hair items available to this environment for the given hair regions
avatar | If not null, the figures returned will be compatible with this AvatarItem |
hairRegions | List of regions to find hair items for |
|
inlinestatic |
Get the list of hair items available to this environment for the given hair regions
rigAstraGuid | The Astra Guid for the rig to filter assets on |
hairRegions | List of regions to find hair items for |
|
inlinestatic |
Get the list of morphable items available to this environment for this avatar.
avatar | If not null, the figures returned will be compatible with this AvatarItem |
regions | List of regions to find morphable items for |
|
inlinestatic |
|
inlinestatic |
Installs assets that have remote updates on the network (the remote asset was updated after the local asset was installed)
installMissing | If true will also install ALL assets that are available, defaults to false |
|
inlinestatic |
Update the CatalogEntry for an AvatarItem with an updated definition using the given AvatarItem.
avatarCatalogEntry | Avatar CatalogEntry to update |
ai | Avatar Item to use to set the updated values |