Utility functions for creating ScriptableObjects.
More...
|
static T | CreateScriptableObject< T > () |
| Create a ScriptableObject of type T, calling the method Initialize() if present.
|
|
static ScriptableObject | CreateScriptableObject (Type type) |
| Create a ScriptableObject of a specified type, calling Initialize() if present.
|
|
static void | InitializeScriptableObject (ScriptableObject scriptableObject) |
| Calls Initialize() on a ScriptableObject if present.
|
|
static List< T > | CloneList< T > (List< T > original, UnityEngine.Object source=null) |
| Makes a deep copy of a ScriptableObject list by instantiating copies of the list elements.
|
|
Utility functions for creating ScriptableObjects.
◆ CloneList< T >()
static List< T > PixelCrushers.ScriptableObjectUtility.CloneList< T > |
( |
List< T > |
original, |
|
|
UnityEngine::Object |
source = null |
|
) |
| |
|
inlinestatic |
Makes a deep copy of a ScriptableObject list by instantiating copies of the list elements.
- Parameters
-
original | List to clone. |
source | Optional reference to source object to report in log if operation fails. |
- Returns
- A second list containing new instances of the list elements.
◆ CreateScriptableObject()
static ScriptableObject PixelCrushers.ScriptableObjectUtility.CreateScriptableObject |
( |
Type |
type | ) |
|
|
inlinestatic |
Create a ScriptableObject of a specified type, calling Initialize() if present.
- Parameters
-
type | The ScriptableObject type. |
- Returns
- The new ScriptableObject.
◆ CreateScriptableObject< T >()
Create a ScriptableObject of type T, calling the method Initialize() if present.
- Template Parameters
-
T | The ScriptableObject type. |
- Returns
- The new ScriptableObject.
◆ InitializeScriptableObject()
static void PixelCrushers.ScriptableObjectUtility.InitializeScriptableObject |
( |
ScriptableObject |
scriptableObject | ) |
|
|
inlinestatic |
Calls Initialize() on a ScriptableObject if present.
- Parameters
-
scriptableObject | The ScriptableObject to initialize. |
The documentation for this class was generated from the following file: