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

AssetValidator validates that the asset or assets is owned by the customer. If asset is not owned the validator will return an list of unowned assets. More...

Static Public Member Functions

static ValidatorJob OwnsAsset (string guid)
 Checks if asset is owned. More...
 
static ValidatorJob ValidateAvatarAssets (AvatarItem avatar)
 Checks all assets on avatar and return array of unowned assets More...
 

Detailed Description

AssetValidator validates that the asset or assets is owned by the customer. If asset is not owned the validator will return an list of unowned assets.

Member Function Documentation

◆ OwnsAsset()

static ValidatorJob Astra.Asset.AssetValidator.OwnsAsset ( string  guid)
inlinestatic

Checks if asset is owned.

Parameters
guidGuid of asset being validated
Returns
ValidatorJob.isOwned: if the customer owns the assets ValidatorJob.unownedAssets: list of unowned assets found in scene

◆ ValidateAvatarAssets()

static ValidatorJob Astra.Asset.AssetValidator.ValidateAvatarAssets ( AvatarItem  avatar)
inlinestatic

Checks all assets on avatar and return array of unowned assets

Parameters
avatarAvatar being validated
Returns
ValidatorJob.isOwned: if all assets are owned on avatar isOwned = true. ValidatorJob.unownedAssets: list of unowned assets found in scene

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