internal ProfilerOverlayInternal(Camera camera)
        {
            IntPtr ptr = IntPtr.Zero;

            if (camera != null)
            {
                ptr = camera.GetCachedPtr();
            }

            Internal_CreateInstance(this, ptr);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Updates the main camera, in case it changes. This is only relevant if the GUI widget is not rendering to a
        /// specific camera.
        /// </summary>
        /// <param name="camera">New main camera.</param>
        internal void UpdateMainCamera(Camera camera)
        {
            IntPtr cameraPtr = IntPtr.Zero;

            if (camera != null)
            {
                cameraPtr = camera.GetCachedPtr();
            }

            Internal_UpdateMainCamera(mCachedPtr, cameraPtr);
        }