◆ CreateNewAssetWithThisObject()

static void CreateNewAssetWithThisObject ( Object  newObject,
string  name,
ref string  createdPathAndName,
bool  ignoreSelectionForPath = false,
bool  selectNewItem = true 
)
static
Parameters
newObjectthis is the object that will be saved as an asset.
nameThis parameter defines what name will be given to the newly created asset. If the name already exists in the file system, a number will be appended to the name.
createdPathAndNameupon completion of this function, the ref param will contain the path and filename of the new asset
ignoreSelectionForPaththis is an optional parameter that whether or not, the object that is currently selected in the editor, should determine the folder location of the new asset. If ignore is set to TRUE, or no object is currently selected, the root asset folder will be used for the path. Otherwise, the asset will be saved in the same folder as the object currently selected in the editor.
selectNewItemWhen true (default), the newly created item will selected in the editor.

Referenced by ResourceSystem.CreateNewAsset< T >().

+ Here is the caller graph for this function: