Ejemplo n.º 1
0
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedGUI == null)
            {
                this.cachedGUI = string.Format("Changing Material \"{0}\"{1} with Shader \"{2}\"{3}.",
                                               unityData.GetResourceName(typeof(Material), this.instanceID),
                                               (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.instanceID + ")" : string.Empty),
                                               unityData.GetResourceName(typeof(Shader), this.shaderInstanceID),
                                               (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.shaderInstanceID + ")" : string.Empty));
            }

            GUILayout.Label(this.cachedGUI);
        }
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = "Resetting Camera settings on \"" + unityData.GetResourceName(typeof(Camera), this.cameraID) + '"' + (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.cameraID + ")." : ".");
            }

            GUILayout.Label(this.cachedLabel);
        }
Ejemplo n.º 3
0
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = "Requesting data from Material \"" + unityData.GetResourceName(typeof(Material), this.materialInstanceID) + (Conf.DebugMode != Conf.DebugState.None ? "\" (#" + this.materialInstanceID + ")." : "\".");
            }

            GUILayout.Label(this.cachedLabel);
        }
Ejemplo n.º 4
0
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = "Raycasting Camera \"" + unityData.GetResourceName(typeof(Camera), this.cameraID) + '"' + (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.cameraID + ')' : string.Empty) + " at viewport (" + this.viewportX + " ; " + this.viewportY + ").";
            }

            GUILayout.Label(this.cachedLabel);
        }
Ejemplo n.º 5
0
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = "Requesting " + this.type.Name + " \"" + unityData.GetResourceName(this.type, this.instanceID) + '"' + (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.instanceID + ")." : ".");
            }

            GUILayout.Label(this.cachedLabel);
        }
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = string.Format("Updating Material {0}.{1}{2}.",
                                                 unityData.GetResourceName(typeof(Material), this.instanceID),
                                                 this.propertyName,
                                                 (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.instanceID + ")" : string.Empty));
            }

            GUILayout.Label(this.cachedLabel);
        }
Ejemplo n.º 7
0
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = string.Format("Adding Component \"{0}\" to {1}{2}.",
                                                 this.componentType,
                                                 unityData.GetResourceName(typeof(GameObject), this.gameObjectInstanceID),
                                                 (Conf.DebugMode != Conf.DebugState.None ? " (#" + this.gameObjectInstanceID + ")" : string.Empty));
            }

            GUILayout.Label(this.cachedLabel);
        }
Ejemplo n.º 8
0
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                if (this.materialInstanceIDs.Length > 0)
                {
                    StringBuilder buffer = Utility.GetBuffer("Watching Material ");

                    for (int i = 0; i < this.materialInstanceIDs.Length; i++)
                    {
                        buffer.Append('"');
                        buffer.Append(unityData.GetResourceName(typeof(Material), this.materialInstanceIDs[i]));
                        buffer.Append('"');

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

                        buffer.Append(", ");
                    }

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

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

            GUILayout.Label(this.cachedLabel);
        }
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = "Sticking ghost Camera to \"" + (this.isGameObject == false ? unityData.GetResourceName(typeof(Transform), this.instanceID) : unityData.GetResourceName(typeof(GameObject), this.instanceID)) + (Conf.DebugMode != Conf.DebugState.None ? "\" (#" + this.instanceID + ")." : "\".");
            }

            GUILayout.Label(this.cachedLabel);
        }
Ejemplo n.º 10
0
        void IGUIPacket.OnGUI(IUnityData unityData)
        {
            if (this.cachedLabel == null)
            {
                this.cachedLabel = "Picking ghost Camera at the position of Camera \"" + unityData.GetResourceName(typeof(Camera), this.cameraID) + (Conf.DebugMode != Conf.DebugState.None ? "\" (#" + this.cameraID + ")." : "\".");
            }

            GUILayout.Label(this.cachedLabel);
        }