void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                StringBuilder buffer = Utility.GetBuffer("Requesting data from GameObject ");

                for (int i = 0; i < this.gameObjectInstanceIDs.Count; i++)
                {
                    if (i > 0)
                    {
                        buffer.Append(", ");
                    }

                    buffer.Append('"');
                    buffer.Append(unityData.GetGameObjectName(this.gameObjectInstanceIDs[i]));
                    buffer.Append('"');

                    if (Conf.DebugMode != Conf.DebugState.None)
                    {
                        buffer.Append(" (#");
                        buffer.Append(this.gameObjectInstanceIDs[i]);
                        buffer.Append(')');
                    }
                }

                buffer.Append('.');

                this.cachedLabel = Utility.ReturnBuffer(buffer);
            }

            GUILayout.Label(this.cachedLabel);
        }
示例#2
0
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = "Moving GameObject \"" + unityData.GetGameObjectName(this.instanceID) + "\" " + (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.instanceID + ")" : "") + " into \"" + unityData.GetGameObjectName(this.instanceIDParent) + "\" " + (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.instanceIDParent + ")" : "") + " at position \"" + this.siblingIndex + "\".";
            }

            GUILayout.Label(this.cachedLabel);
        }
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = string.Format("Invoking {0}{1}.{2}{3}.{4}",
                                                 unityData.GetGameObjectName(this.gameObjectInstanceID),
                                                 (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.gameObjectInstanceID + ')' : string.Empty),
                                                 unityData.GetBehaviourName(this.gameObjectInstanceID, this.componentInstanceID),
                                                 (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.componentInstanceID + ')' : string.Empty),
                                                 this.methodSignature);
            }

            GUILayout.Label(this.cachedLabel);
        }
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = "Deleting " + this.gameObjectInstanceIDs.Count + " GameObject";
            }

            this.foldout = GUILayout.Toggle(this.foldout, this.cachedLabel);
            if (this.foldout == true)
            {
                for (int i = 0; i < this.gameObjectInstanceIDs.Count; i++)
                {
                    GUILayout.Label(unityData.GetGameObjectName(this.gameObjectInstanceIDs[i]) + (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.gameObjectInstanceIDs[i] + ')' : string.Empty));
                }
            }
        }
示例#5
0
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = "Deleting " + this.componentInstanceIDs.Count + " Component";
            }

            this.foldout = GUILayout.Toggle(this.foldout, this.cachedLabel);
            if (this.foldout == true)
            {
                for (int i = 0; i < this.gameObjectInstanceIDs.Count; i++)
                {
                    GUILayout.Label(string.Format("{0}{1}.{2}{3}",
                                                  unityData.GetGameObjectName(this.gameObjectInstanceIDs[i]),
                                                  (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.gameObjectInstanceIDs[i] + ')' : string.Empty),
                                                  unityData.GetBehaviourName(this.gameObjectInstanceIDs[i], this.componentInstanceIDs[i]),
                                                  (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.componentInstanceIDs[i] + ')' : string.Empty)));
                }
            }
        }
示例#6
0
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                if (this.gameObjectInstanceIDs.Length > 0)
                {
                    StringBuilder buffer = Utility.GetBuffer("Watching GameObject ");

                    for (int i = 0; i < this.gameObjectInstanceIDs.Length; i++)
                    {
                        buffer.Append('"');
                        buffer.Append(unityData.GetGameObjectName(this.gameObjectInstanceIDs[i]));
                        buffer.Append('"');

                        if (Conf.DebugMode != Conf.DebugState.None)
                        {
                            buffer.Append(" (#");
                            buffer.Append(this.gameObjectInstanceIDs[i]);
                            buffer.Append(')');
                        }

                        buffer.Append(", ");
                    }

                    if (buffer.Length > 0)
                    {
                        buffer.Length -= 2;
                    }

                    buffer.Append('.');
                    this.cachedLabel = Utility.ReturnBuffer(buffer);
                }
                else
                {
                    this.cachedLabel = "Unwatching GameObject.";
                }
            }

            GUILayout.Label(this.cachedLabel);
        }