CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ SetMain() [1/2]

static void SetMain ( [NotNull] Object subAsset,
[NotNull] Object asset )
static

Sets (changes) an asset's 'main' object to one of its sub-assets.

Automatically imports the asset after changing the main type so that the change takes immediate effect.

Parameters
subAssetInstance of a sub-asset. Must be a sub-asset of the asset.
assetInstance of the asset.
See also