|
|
|
|
|
|
SerializedDataParameter m_EnvUpdatePeriod; |
|
|
|
SerializedDataParameter m_IncludeSunInBaking; |
|
|
|
|
|
|
|
protected uint m_CommonUIElementsMask = 0xFFFFFFFF; |
|
|
|
|
|
|
|
public override void OnEnable() |
|
|
|
{ |
|
|
|
var o = new PropertyFetcher<SkySettings>(serializedObject); |
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
protected void CommonSkySettingsGUI(uint uiElementMask = 0xFFFFFFFF) |
|
|
|
protected void CommonSkySettingsGUI() |
|
|
|
if ((uiElementMask & (uint)SkySettingsUIElement.Exposure) != 0) |
|
|
|
if ((m_CommonUIElementsMask & (uint)SkySettingsUIElement.Exposure) != 0) |
|
|
|
if ((uiElementMask & (uint)SkySettingsUIElement.Multiplier) != 0) |
|
|
|
if ((m_CommonUIElementsMask & (uint)SkySettingsUIElement.Multiplier) != 0) |
|
|
|
if ((uiElementMask & (uint)SkySettingsUIElement.Rotation) != 0) |
|
|
|
if ((m_CommonUIElementsMask & (uint)SkySettingsUIElement.Rotation) != 0) |
|
|
|
if ((uiElementMask & (uint)SkySettingsUIElement.UpdateMode) != 0) |
|
|
|
if ((m_CommonUIElementsMask & (uint)SkySettingsUIElement.UpdateMode) != 0) |
|
|
|
{ |
|
|
|
PropertyField(m_EnvUpdateMode); |
|
|
|
if (!m_EnvUpdateMode.value.hasMultipleDifferentValues && m_EnvUpdateMode.value.intValue == (int)EnvironementUpdateMode.Realtime) |
|
|
|
|
|
|
EditorGUI.indentLevel--; |
|
|
|
} |
|
|
|
} |
|
|
|
if ((uiElementMask & (uint)SkySettingsUIElement.IncludeSunInBaking) != 0) |
|
|
|
if ((m_CommonUIElementsMask & (uint)SkySettingsUIElement.IncludeSunInBaking) != 0) |
|
|
|
PropertyField(m_IncludeSunInBaking); |
|
|
|
} |
|
|
|
} |