// Update is called once per frame void Update() { transform.position = new Vector3(floatValue, 0, 0); PMWindowAPI.BeginImGuiDrawing(); PMWindowAPI.BeginWindow("config", 100, 100, 300, 300); PMWindowAPI.Text("Hello World"); if (PMWindowAPI.TreeNode("parameters", true)) { PMWindowAPI.SliderFloat("slider", ref floatValue, 0.0f, 1.0f); PMWindowAPI.InputFloat("inputFloat", ref floatValue, 0.1f); PMWindowAPI.Checkbox("checkbox", ref boolValue); PMWindowAPI.InputInt("inputInt", ref intValue); PMWindowAPI.TreePop(); } if (PMWindowAPI.TreeNode("texts", true)) { PMWindowAPI.Text("floatValue = {0}", floatValue); PMWindowAPI.Text("Hey"); PMWindowAPI.Text("Hello World"); PMWindowAPI.TreePop(); } PMWindowAPI.EndWindow(); PMWindowAPI.EndImGuiDraing(); }
private void OnEnable() { PMWindowAPI.SetupLogging(); }
// Use this for initialization void Start() { PMWindowAPI.ResetImGui(); }