Skip to content

ShadowIgnition/Unity-ScriptableObjectFactoryWindow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

ScriptableObject Factory Window

Usage

To use the ScriptableObject Factory Window, follow these steps:

  1. In the Unity Editor menu, navigate to "Tools" and select "ScriptableObject Factory".
  2. The ScriptableObject Factory Window will open, displaying a list of available ScriptableObject types.
  3. 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.cs script and modify the m_ScriptableObjectTypes array 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.cs script and change the value of the WINDOW_NAME constant to set a different window title.

Notes

  • Recommended Location: For best usage and organization, it is recommended to place the ScriptableObjectFactoryWindow.cs file in the Assets/Editor folder of your Unity project. For more information refer to the Unity documentation on Special Folders.

  • If you find the ScriptableObject Factory Window helpful, 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.

About

ScriptableObject Factory Window is a simple Unity Editor Window for creating commonly used ScriptableObjects with ease.

Topics

Resources

License

Stars

Watchers

Forks

Languages