This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
internal static int LogarithmicIntSlider(Rect position, string label, int sliderValue, int leftValue, int rightValue, int logbase, int textFieldMin, int textFieldMax)
internal static int LogarithmicIntSlider(Rect position, GUIContent label, int sliderValue, int leftValue, int rightValue, int logbase, int textFieldMin, int textFieldMax)
internal static int LogarithmicIntSlider(Rect position, GUIContent label, int sliderValue, int leftValue, int rightValue, GUIStyle textfieldStyle, int logbase, int textFieldMin, int textFieldMax)
{
int id = GUIUtility.GetControlID(s_SliderHash, FocusType.Keyboard, position);
Rect controlRect = PrefixLabel(position, id, label);
Rect dragZone = LabelHasContent(label) ? EditorGUIUtility.DragZoneRect(position) : new Rect(); // Ensure dragzone is empty when we have no label
internal static int LogarithmicIntSlider(string label, int value, int leftValue, int rightValue, int logbase, int textFieldMin, int textFieldMax, params GUILayoutOption[] options)
internal static int LogarithmicIntSlider(GUIContent label, int value, int leftValue, int rightValue, int logbase, int textFieldMin, int textFieldMax, params GUILayoutOption[] options)
{
Rect r = s_LastRect = GetSliderRect(true, options);
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
readonlystringm_UploadArtifactsDefaultToolip="Queues the upload of the current revision of all Artifacts present in the project. Only revisions not found on the Accelerator are uploaded.";
readonlystringm_UploadShaderCacheDefaultToolip="Queues the upload of all Shaders, and their variants, from the Unity Shader Cache. Only shaders and/or variants not found on the Accelerator are uploaded.";
readonlystringm_UploadAllRevisionsDefaultToolip="Queues upload of all revisions of every Artifact in the project. Only revisions not found on the Accelerator are uploaded.";
readonlystringm_DisabledSettingPrefix="Uploading is currently disabled in Project Settings.";
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Resolution/Aspect ratio menu for the GameView, with an optional toggle for low-resolution aspect ratios
internalclassGameViewSizeMenu:FlexibleMenu
{
staticclassStyles
{
publicstaticGUIContentvSyncToggleContent= EditorGUIUtility.TrTextContent("VSync (Game view only)","Enable VSync only for the game view while in playmode.");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// To avoid complexity of combinations of settings (e.g., tex1 is rescaled to POT with mipmap enabled, tex2 is NPOT with mipmap disabled, then all is fine but we would still get warnings)
// we only show the warnings for a single texture (or a group with the same values)
c= EditorGUIUtility.TrTextContent("NPOT textures are not fully supported on WebGL1. On these devices, mipmapping will be disabled.");
elseif(buildTarget== BuildTarget.Android)
c= EditorGUIUtility.TrTextContent("Some Android devices running on OpenGLES2 may not support NPOT textures. If this is the case, mipmapping will be disabled.");
else
c= EditorGUIUtility.TrTextContent("Some devices running on OpenGLES2 may not support NPOT textures. If this is the case, mipmapping will be disabled.");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -38,6 +39,11 @@ public override void OnInspectorGUI()
serializedObject.ApplyModifiedProperties();
}
privatevoidOnFocus()
{
m_Editor.ClampMaxRanges();
}
}
internalclassSharedLightingSettingsEditor
Expand DownExpand Up
@@ -69,6 +75,7 @@ internal class SharedLightingSettingsEditor
SerializedPropertym_CompAOExponentDirect;
SerializedPropertym_LightmapCompression;
SerializedPropertym_LightmapMaxSize;
SerializedPropertym_LightmapSizeFixed;
SerializedPropertym_BakeBackend;
// pvr
SerializedPropertym_PVRSampleCount;
Expand DownExpand Up
@@ -193,7 +200,6 @@ static class Styles
publicstaticreadonlyGUIContentmixedLightsLabel= EditorGUIUtility.TrTextContent("Mixed Lighting","Bake Global Illumination for mixed lights and static objects. May bake both direct and/or indirect lighting based on settings. Only static objects are blocking and bouncing light, dynamic objects receive baked lighting via light probes.");
publicstaticreadonlyGUIContentgeneralLightmapLabel= EditorGUIUtility.TrTextContent("Lightmapping Settings","Settings that apply to both Global Illumination modes (Precomputed Realtime and Baked).");
publicstaticreadonlyGUIContentinternalLabel= EditorGUIUtility.TrTextContent("Internal Settings","Internal only settings. ");
publicstaticreadonlyGUIContentnoRealtimeGIInSM2AndGLES2= EditorGUIUtility.TrTextContent("Realtime Global Illumination is not supported on SM2.0 hardware nor when using GLES2.0.");
publicstaticreadonlyGUIContentforceWhiteAlbedo= EditorGUIUtility.TrTextContent("Force White Albedo","Force white albedo during lighting calculations.");
publicstaticreadonlyGUIContentforceUpdates= EditorGUIUtility.TrTextContent("Force Updates","Force continuous updates of runtime indirect lighting calculations.");
publicstaticreadonlyGUIContentlightmapResolution= EditorGUIUtility.TrTextContent("Lightmap Resolution","Sets the resolution in texels used per unit for objects lit by baked global illumination. The higher this value is, the more time the Editor needs to bake lighting.");
publicstaticreadonlyGUIContentpadding= EditorGUIUtility.TrTextContent("Lightmap Padding","Sets the separation in texels between shapes in the baked lightmap.");
publicstaticreadonlyGUIContentlightmapMaxSize= EditorGUIUtility.TrTextContent("Max Lightmap Size","Sets the max size of the full lightmap Texture in pixels. Values are squared, so a setting of 1024 can produce a 1024x1024 pixel sized lightmap.");
publicstaticreadonlyGUIContentlightmapSizeFixed= EditorGUIUtility.TrTextContent("Fixed Lightmap Size","Forces all lightmap textures to use the same size. These can be no larger than Max Lightmap Size.");
publicstaticreadonlyGUIContentlightmapCompression= EditorGUIUtility.TrTextContent("Lightmap Compression","Compresses baked lightmaps created using this Lighting Settings Asset. Lower quality compression reduces memory and storage requirements, at the cost of more visual artifacts. Higher quality compression requires more memory and storage, but provides better visual results.");
publicstaticreadonlyGUIContenttiledBaking= EditorGUIUtility.TrTextContent("Tiled baking","Determines the tiled baking mode. Auto: Memory status triggers tiling. If Auto is not enabled, bakes may fail. Disabled: Never use tiling.");
publicstaticreadonlyGUIContentambientOcclusion= EditorGUIUtility.TrTextContent("Ambient Occlusion","Specifies whether to include ambient occlusion or not in the baked lightmap result. Enabling this results in simulating the soft shadows that occur in cracks and crevices of objects when light is reflected onto them.");
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters