![]() |
CodeSmile AssetDatabase 1.9
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
|
|
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.
subAsset | Instance of a sub-asset. Must be a sub-asset of the asset. |
path | Path to the asset file. |
Definition at line 96 of file Asset.SubAsset.cs.
References Asset.File.Import().