コード例 #1
0
    void OnGUI()
    {
        GUILayout.BeginVertical("Box");

        GUILayout.BeginHorizontal("Box");

        //DetailPart
        DetailPart();
        GUILayout.EndHorizontal();

        GUILayout.BeginHorizontal("Box", GUILayout.Height(WindowSize.y * (.5f / 3)));

        //create BTN
        if (GUILayout.Button("Create Item", GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(true)))
        {
            temp.IdSetter(dataBase.IdGiver());
            dataBase.addItem(temp);
            temp = new Item();
        }

        GUILayout.EndHorizontal();

        GUILayout.EndVertical();
    }