コード例 #1
0
        private void InitClientObjectsTable()
        {
            if (m_ClientObjectsTree != null)
            {
                return;
            }
            var column = HierarchyItemInfo.totalColumn;

            m_ClientObjectsTree = EditorTable.CreateTable(column);
            for (int i = 0; i < column; i++)
            {
                m_ClientObjectsTree.SetColumnHeader(i, HierarchyItemInfo.GetColumnHeader(i));
            }
            m_ClientObjectsTree.OnSelectionChanged = OnSelectedClientObjectList;
            m_ClientObjectsTree.Reload();
        }
コード例 #2
0
        private void MsgSubObjects(RemoteDebugClientInfo client, string content)
        {
            var temp         = content.Split('|');
            var path         = temp[0];
            var name         = temp[1];
            var active       = bool.Parse(temp[2]);
            var parentActive = bool.Parse(temp[3]);

            //Debug.Log("MsgSubObjects:" + path + "," + name);
            if (!client.objectDic.ContainsKey(path))
            {
                var parent = new HierarchyItemInfo(path, path);
                parent.assetIcon       = IconStyles.iconGameObject;
                client.objectDic[path] = parent;
            }
            var child = new HierarchyItemInfo(name, path + "/" + name);

            child.itemDisabled           = !parentActive;
            child.assetIcon              = IconStyles.iconGameObject;
            client.objectDic[child.path] = child;
            client.objectDic[path].children.Add(child);
        }
コード例 #3
0
        private void MsgRootObjects(RemoteDebugClientInfo client, string info)
        {
            //Debug.Log("MsgRootObjects:" + info);
            var temp   = info.Split('|');
            var root   = temp[0];
            var name   = temp[1];
            var active = bool.Parse(temp[2]);

            if (!client.objectDic.ContainsKey(root))
            {
                var objInfo = new HierarchyItemInfo(root, root);
                objInfo.assetIcon      = EditorGUIUtility.FindTexture("BuildSettings.Editor.Small");
                client.objectDic[root] = objInfo;
                client.objectList.Add(objInfo);
            }
            var chdInfo = new HierarchyItemInfo(name, name);

            chdInfo.itemDisabled   = !active;
            chdInfo.assetIcon      = IconStyles.iconGameObject;
            client.objectDic[name] = chdInfo;
            client.objectDic[root].children.Add(chdInfo);
            m_IsClientObjectsDirty = true;
        }