|
|
|
|
|
|
|
|
|
|
public readonly GUIContent[] LightmapBakeTypeTitles = { new GUIContent("Realtime"), new GUIContent("Mixed"), new GUIContent("Baked") }; |
|
|
|
public readonly int[] LightmapBakeTypeValues = { (int)LightmapBakeType.Realtime, (int)LightmapBakeType.Mixed, (int)LightmapBakeType.Baked }; |
|
|
|
} |
|
|
|
class AdditionalStyles |
|
|
|
{ |
|
|
|
static AdditionalStyles s_AdditionalStyles; |
|
|
|
|
|
|
|
// Should match same colors in GizmoDrawers.cpp!
|
|
|
|
internal static Color kGizmoLight = new Color(254 / 255f, 253 / 255f, 136 / 255f, 128 / 255f); |
|
|
|
internal static Color kGizmoDisabledLight = new Color(135 / 255f, 116 / 255f, 50 / 255f, 128 / 255f); |
|
|
|
|
|
|
|
private bool TypeIsSame { get { return !typeProp.hasMultipleDifferentValues; } } |
|
|
|
private bool ShadowTypeIsSame { get { return !shadowsTypeProp.hasMultipleDifferentValues; } } |
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private bool IsShadowEnabled { get { return shadowsTypeProp.intValue != 0; } } |
|
|
|
|
|
|
|
private bool RealtimeShadowsWarningValue |
|
|
|
|
|
|
if (s_Styles == null) |
|
|
|
s_Styles = new Styles(); |
|
|
|
|
|
|
|
if (s_AdditionalStyles == null) |
|
|
|
s_AdditionalStyles = new AdditionalStyles(); |
|
|
|
|
|
|
|
serializedObject.Update(); |
|
|
|
|
|
|
|
// Update AnimBool options. For properties changed they will be smoothly interpolated.
|
|
|
|
|
|
|
// Cookie size also requires directional light
|
|
|
|
using (var group = new EditorGUILayout.FadeGroupScope(animShowRuntimeOptions.faded * animShowDirOptions.faded)) |
|
|
|
if (group.visible) DrawCookieSize(); |
|
|
|
|
|
|
|
|
|
|
|
DrawRenderMode(); |
|
|
|
DrawCullingMask(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (RealtimeShadowsWarningValue || BakingWarningValue) |
|
|
|
{ |
|
|
|
EditorGUILayout.HelpBox(s_AdditionalStyles.ShadowsNotSupportedWarning.text, MessageType.Warning); |
|
|
|
EditorGUILayout.HelpBox(s_Styles.ShadowsNotSupportedWarning.text, MessageType.Warning); |
|
|
|
} |
|
|
|
|
|
|
|
EditorGUILayout.Space(); |
|
|
|