ScriptableObject Factory Window
ScriptableObject Factory Window is an editor window for creating ScriptableObjects in Unity. It provides a convenient interface within the Unity Editor for creating instances of ScriptableObjects.
Usage
To use the ScriptableObject Factory Window, follow these steps:
- In the Unity Editor menu, navigate to "Tools" and select "ScriptableObject Factory".
- The
ScriptableObject Factory Windowwill open, displaying a list of available ScriptableObject types. - Click on the desired ScriptableObject type to create an instance of it.
Customization
The ScriptableObject Factory Window can be customized according to your needs. Here are some options for customization:
- Add or remove ScriptableObject types: Open the
ScriptableObjectFactoryWindow.csscript and modify them_ScriptableObjectTypesarray to include the desired ScriptableObject types.
public class ScriptableObjectFactoryWindow : EditorWindow
{
// List of ScriptableObject types
// Add your ScriptableObject types here
Type[] m_ScriptableObjectTypes = new Type[]
{
typeof(YourScriptableObjectTypeHere1),
typeof(YourScriptableObjectTypeHere2),
typeof(YourScriptableObjectTypeHere3),
};
}- Modify the window title: Open the
ScriptableObjectFactoryWindow.csscript and change the value of theWINDOW_NAMEconstant to set a different window title.
Notes
-
Recommended Location: For best usage and organization, it is recommended to place the
ScriptableObjectFactoryWindow.csfile in theAssets/Editorfolder of your Unity project. For more information refer to the Unity documentation on Special Folders. -
If you find the
ScriptableObject Factory Windowhelpful, please consider giving it a star on the GitHub repository. Your support is greatly appreciated!
License
The ScriptableObject Factory Window attribute is provided as-is under the terms of the MIT License. Feel free to modify and adapt it to suit your needs.
