LoginSignup
3
3

More than 5 years have passed since last update.

AddComponentを楽にする

Posted at

ちょっとだけAddCompoentする作業が楽になるかも。
AddComponentMenu属性と引数にパスをいれる。パスは自由にいれてOK。

using UnityEngine;
using System.Collections;

[AddComponentMenu("AAA/BBB/CCC")]
public class TestAddComponentMenu : MonoBehaviour {

    // Use this for initialization
    void Start () {

    }

    // Update is called once per frame
    void Update () {

    }
}

下図のようなところにでてきてちょっと便利。
AddComponent.PNG
AddComponent2.PNG

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3