|
static T | CreateAsset< T > (string typeName, bool select=true, bool prependNew=true) |
| Creates a new ScriptableObject asset in the project's asset database.
|
|
static ScriptableObject | CreateAsset (System.Type type, string typeName, bool select=true, bool prependNew=true) |
| Creates a new ScriptableObject asset in the project's asset database.
|
|
static T | CreateAssetWithFilename< T > (string filename, bool select=true) |
| Creates a new ScriptableObject asset in the project's asset database.
|
|
static ScriptableObject | CreateAssetWithFilename (System.Type type, string filename, bool select=true) |
| Creates a new ScriptableObject asset in the project's asset database.
|
|
static void | AddToAsset (ScriptableObject scriptableObject, UnityEngine.Object asset) |
| (Editor only) Registers a ScriptableObject as part of an asset in the project's asset database.
|
|
static void | DeleteFromAsset (ScriptableObject scriptableObject, UnityEngine.Object asset) |
| (Editor only) Deletes a ScriptableObject from an asset.
|
|
◆ AddToAsset()
static void PixelCrushers.AssetUtility.AddToAsset |
( |
ScriptableObject |
scriptableObject, |
|
|
UnityEngine::Object |
asset |
|
) |
| |
|
inlinestatic |
(Editor only) Registers a ScriptableObject as part of an asset in the project's asset database.
- Parameters
-
scriptableObject | The ScriptableObject to add. |
asset | The asset to add the ScriptableObject to. |
◆ CreateAsset()
static ScriptableObject PixelCrushers.AssetUtility.CreateAsset |
( |
System::Type |
type, |
|
|
string |
typeName, |
|
|
bool |
select = true , |
|
|
bool |
prependNew = true |
|
) |
| |
|
inlinestatic |
Creates a new ScriptableObject asset in the project's asset database.
- Parameters
-
type | The ScriptableObject type. |
typeName | The type name to use when naming the asset file in the project's asset database. |
select | If true, select the asset. |
prependNew | If true, prepend 'New' to the beginning of the asset name. |
- Returns
- The asset.
◆ CreateAsset< T >()
Creates a new ScriptableObject asset in the project's asset database.
- Template Parameters
-
T | The ScriptableObject type. |
- Parameters
-
typeName | The type name to use when naming the asset file in the project's asset database. |
select | If true, select the asset. |
prependNew | If true, prepend 'New' to the beginning of the asset name. |
- Returns
- The asset.
◆ CreateAssetWithFilename()
static ScriptableObject PixelCrushers.AssetUtility.CreateAssetWithFilename |
( |
System::Type |
type, |
|
|
string |
filename, |
|
|
bool |
select = true |
|
) |
| |
|
inlinestatic |
Creates a new ScriptableObject asset in the project's asset database.
- Parameters
-
type | The ScriptableObject type. |
filename | The filename to save the asset as. |
select | If true, select the asset. |
- Returns
- The asset.
◆ CreateAssetWithFilename< T >()
Creates a new ScriptableObject asset in the project's asset database.
- Template Parameters
-
T | The ScriptableObject type. |
- Parameters
-
filename | The filename to save the asset as. |
select | If true, select the asset. |
- Returns
- The asset.
◆ DeleteFromAsset()
static void PixelCrushers.AssetUtility.DeleteFromAsset |
( |
ScriptableObject |
scriptableObject, |
|
|
UnityEngine::Object |
asset |
|
) |
| |
|
inlinestatic |
(Editor only) Deletes a ScriptableObject from an asset.
- Parameters
-
scriptableObject | The ScriptableObject to add. |
asset | The asset to delete the ScriptableObject from. |
The documentation for this class was generated from the following file:
- C:/Dev/LoveHate/Dev/Source/Assets/Plugins/Pixel Crushers/Common/Scripts/Editor/Misc/AssetUtility.cs