Hi I just wanted to ask about menus in starter packs

Hello Unity, I wanted to ask something about assets. I’m not new to unity been using for a long time just never posted before, but I wanted to know how these starter kits or packs have there own menu, how dose that work and If I wanted to setup my own menu how can I do it, and can you edit a menu in a starter kit or packs that you have bought from the assets store to see how its made. I’ve never done this before and I’m looking for information on it :slight_smile:

Thanks you :slight_smile:

I can’t tell which menu you’re referring to. Are you asking how to make UI in a game? Or are you asking how to make a custom inspector/window in the editor?

Unity has a series of tutorials covering the new UI system that was introduced with Unity 4.6. You may want to start there.

I’m trying to say on the top where file,edit menus like that here is a picture of what I mean, the image is Oculus menu how do they make that and can it be edit? Thanks I just don’t know what its called sorry for not giving more info. I hop that makes more sent :slight_smile:

This code makes a menu called “Special” that has listed in it “Some Command” and it will execute SomeCommand() when clicked.

using UnityEngine;
using UnityEditor;
using System.Collections;

public class VariousMenuItems : ScriptableObject {

    [MenuItem ("Special/Some Command")]
    static void SomeCommand() {
        // do something
    }
}
1 Like

ok thanks that’s what I’ve been looking for thanks aging :slight_smile: