Class ScriptableObjectUtility
Inheritance
System.Object
ScriptableObjectUtility
Syntax
public class ScriptableObjectUtility : ScriptableObject
Fields
kPackageRoot
Declaration
public static string kPackageRoot
Field Value
Type |
Description |
System.String |
|
Properties
CinemachineInstallPath
Get the Cinemachine package install path. Works whether CM is
a packman package or an ordinary asset.
Declaration
public static string CinemachineInstallPath { get; }
Property Value
Type |
Description |
System.String |
|
CinemachineRealativeInstallPath
Get the Cinemachine package install path. Works whether CM is
a packman package or an ordinary asset.
Declaration
public static string CinemachineRealativeInstallPath { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Create<T>(Boolean, Boolean)
Declaration
public static void Create<T>(bool prependFolderName = false, bool trimName = true)
where T : ScriptableObject
Parameters
Type |
Name |
Description |
System.Boolean |
prependFolderName |
|
System.Boolean |
trimName |
|
Type Parameters
CreateAt(Type, String)
Create a scriptable object asset
Declaration
public static ScriptableObject CreateAt(Type assetType, string assetPath)
Parameters
Type |
Name |
Description |
System.Type |
assetType |
|
System.String |
assetPath |
|
Returns
Type |
Description |
ScriptableObject |
|
CreateAt<T>(String)
Create a scriptable object asset
Declaration
public static T CreateAt<T>(string assetPath)
where T : ScriptableObject
Parameters
Type |
Name |
Description |
System.String |
assetPath |
|
Returns
Type Parameters