You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
567 B
15 lines
567 B
using UnityEditor; |
|
using UnityEngine; |
|
|
|
public class ConversationAssetCreator : MonoBehaviour |
|
{ |
|
// This will create a menu option in the Editor menu to create a conversation asset. |
|
// The CreateAsset method will fire in response to the menu selection, it uses the |
|
// CustomAssetUtility helper class to create the Asset file. |
|
[MenuItem("Assets/Create/Conversation")] |
|
public static void CreateAsset() |
|
{ |
|
// Create an asset file based on the Conversation ScriptableObject. |
|
CustomAssetUtility.CreateAsset<Conversation>(); |
|
} |
|
} |