You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
/******************************************************************************/
|
|
/*
|
|
Project - MudBun
|
|
Publisher - Long Bunny Labs
|
|
http://LongBunnyLabs.com
|
|
Author - Ming-Lun "Allen" Chou
|
|
http://AllenChou.net
|
|
*/
|
|
/******************************************************************************/
|
|
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
|
|
using MudBun;
|
|
|
|
public class CustomCreatoinMenu : CreationMenu
|
|
{
|
|
[MenuItem("GameObject/MudBun/Custom/Custom Solid", priority = 4)]
|
|
public static GameObject CreateCustomSolid()
|
|
{
|
|
var go = CreateGameObject("Mud Custom Solid");
|
|
go.AddComponent<CustomSolid>();
|
|
|
|
return OnBrushCreated(go);
|
|
}
|
|
|
|
[MenuItem("GameObject/MudBun/Custom/Custom Distortion", priority = 4)]
|
|
public static GameObject CreateCustomDistortion()
|
|
{
|
|
var go = CreateGameObject("Mud Custom Distortion");
|
|
go.AddComponent<CustomDistortion>();
|
|
|
|
return OnBrushCreated(go, true);
|
|
}
|
|
|
|
[MenuItem("GameObject/MudBun/Custom/Custom Modifier", priority = 4)]
|
|
public static GameObject CreateCustomModifier()
|
|
{
|
|
var go = CreateGameObject("Mud Custom Modifier");
|
|
go.AddComponent<CustomModifier>();
|
|
|
|
return OnBrushCreated(go);
|
|
}
|
|
}
|
|
|