ScriptableObjectExtensions.CreateAsset Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates, saves, and then opens a new asset for the target ScriptableObject.
public static UnityEngine.ScriptableObject CreateAsset (this UnityEngine.ScriptableObject scriptableObject, string path = default, string fileName = default);
static member CreateAsset : UnityEngine.ScriptableObject * string * string -> UnityEngine.ScriptableObject
<Extension()>
Public Function CreateAsset (scriptableObject As ScriptableObject, Optional path As String = Nothing, Optional fileName As String = Nothing) As ScriptableObject
Parameters
- scriptableObject
- UnityEngine.ScriptableObject
ScriptableObject you want to create an asset file for.
- path
- String
Optional path for the new asset.
- fileName
- String
Optional filename for the new asset.
Returns
UnityEngine.ScriptableObject