mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-19 17:22:37 +08:00
feat: the Sampling Scale property should remain unchanged when loading a preset
close #292
This commit is contained in:
@@ -80,7 +80,7 @@ namespace Coffee.UIEffects.Editors
|
||||
private SerializedProperty _gradationScale;
|
||||
private SerializedProperty _gradationRotation;
|
||||
|
||||
private bool _expandOthers;
|
||||
private bool _expandOthers = true;
|
||||
private SerializedProperty _allowToModifyMeshShape;
|
||||
|
||||
private void OnEnable()
|
||||
@@ -186,7 +186,6 @@ namespace Coffee.UIEffects.Editors
|
||||
{
|
||||
EditorGUI.indentLevel++;
|
||||
EditorGUILayout.PropertyField(_samplingIntensity);
|
||||
EditorGUILayout.PropertyField(_samplingScale);
|
||||
EditorGUI.indentLevel--;
|
||||
}
|
||||
|
||||
@@ -334,6 +333,7 @@ namespace Coffee.UIEffects.Editors
|
||||
_expandOthers = EditorGUILayout.BeginFoldoutHeaderGroup(_expandOthers, "Others");
|
||||
if (_expandOthers)
|
||||
{
|
||||
EditorGUILayout.PropertyField(_samplingScale);
|
||||
EditorGUILayout.PropertyField(_allowToModifyMeshShape);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -919,7 +919,6 @@ namespace Coffee.UIEffects
|
||||
|
||||
m_SamplingFilter = preset.m_SamplingFilter;
|
||||
m_SamplingIntensity = preset.m_SamplingIntensity;
|
||||
m_SamplingScale = preset.m_SamplingScale;
|
||||
|
||||
m_TransitionFilter = preset.m_TransitionFilter;
|
||||
m_TransitionRate = preset.m_TransitionRate;
|
||||
|
||||
Reference in New Issue
Block a user