/// <summary>
        /// Constructs a new set of GUI elements for inspecting the screen space reflections settings object.
        /// </summary>
        /// <param name="settings">Initial values to assign to the GUI elements.</param>
        /// <param name="layout">Layout to append the GUI elements to.</param>
        public ScreenSpaceReflectionsSettingsGUI(ScreenSpaceReflectionsSettings settings, GUILayout layout)
        {
            this.settings = settings;

            enabledField.OnChanged      += x => { this.settings.Enabled = x; MarkAsModified(); ConfirmModify(); };
            qualityField.OnChanged      += x => { this.settings.Quality = (uint)x; MarkAsModified(); ConfirmModify(); };
            intensityField.OnChanged    += x => { this.settings.Intensity = x; MarkAsModified(); ConfirmModify(); };
            maxRoughnessField.OnChanged += x => { this.settings.MaxRoughness = x; MarkAsModified(); ConfirmModify(); };

            qualityField.Step = 1.0f;

            layout.AddElement(enabledField);
            layout.AddElement(qualityField);
            layout.AddElement(intensityField);
            layout.AddElement(maxRoughnessField);
        }
Esempio n. 2
0
 private static extern void Internal_setscreenSpaceReflections(IntPtr thisPtr, ScreenSpaceReflectionsSettings value);
 internal static extern void Internal_GetScreenSpaceReflections(IntPtr obj, out ScreenSpaceReflectionsSettings resultAsRef);
 internal static extern void Internal_SetScreenSpaceReflections(IntPtr obj, ref ScreenSpaceReflectionsSettings value);
Esempio n. 5
0
 private static extern void Internal_ScreenSpaceReflectionsSettings(ScreenSpaceReflectionsSettings managedInstance);