Edytuj

Udostępnij za pośrednictwem


ScriptableObjectExtensions.CreateAsset Method

Definition

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

Applies to