AssetProperty.AddConnectedAsset
Description:
Adds a new connected asset attached to this asset property, if it allows it.
Adds a new connected asset attached to this asset property, if it allows it.
Remarks:
Cannot add a connected asset if one is already connected. Use RemoveConnectedAsset() to avoid an exception being thrown. A new preset asset is created and connected to the property. For "UnifiedBitmap", it contains an empty property unifiedbitmap_Bitmap.
Cannot add a connected asset if one is already connected. Use RemoveConnectedAsset() to avoid an exception being thrown. A new preset asset is created and connected to the property. For "UnifiedBitmap", it contains an empty property unifiedbitmap_Bitmap.
public void AddConnectedAsset(
string schema
)
-
StringschemaThe schema name.
-
The schema name is not valid.
-
A non-optional argument was null
-
The asset property is not editable. -or- Cannot check validity for a property not being edited in AppearanceAssetEditScope. -or- Asset property is already connected to one asset.