SetAsset
Method
Sets the asset used by the prefab object. Successfully changing the asset will cause the gameObjects representing this prefab in the scene to be re-instantiated for all clients. The IPrefabObject instances will remain the same.
Parameters
Parameter | Description |
---|---|
AssetType assetType | The type of Spatial asset the assetID refers to.
|
string assetID | ID of the Spatial asset currently used by the prefab object. |