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);
        }
Ejemplo n.º 2
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)));
                }
            }
        }