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
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?
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
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
}
}