Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Menu Items Function Problem!!

Discussion in 'Editor & General Support' started by JeevanjotSingh, Mar 12, 2016.

  1. JeevanjotSingh

    JeevanjotSingh

    Joined:
    Apr 30, 2014
    Posts:
    251
    Hello
    I am getting a problem while printing "Something..." with menu item functionality .
    Don't able to understand it ,
    It's not printing anything even with shortcut i am not getting anything .It's not Printing"Something..."
    pls help thanks .

    Code (CSharp):
    1. using UnityEngine;
    2. using System.Collections;
    3. using UnityEditor;
    4.  
    5. //[CustomEditor (typeof(NewBehave))]
    6.  
    7. public class CustomNewBehaveInspector : MonoBehaviour {
    8.  
    9.  
    10.     [MenuItem( "My Assets/yes %#q")]
    11.     static void INit()
    12.     {
    13.      
    14.         Debug.Log ("Something...");
    15.     }
    16.  
    17. }
    18.  
     
    Last edited: Mar 13, 2016
  2. JeevanjotSingh

    JeevanjotSingh

    Joined:
    Apr 30, 2014
    Posts:
    251
    Is it a bug or what ?