mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-19 17:22:37 +08:00
feat: UIEffectReplica.flip has been deprecated
This commit is contained in:
@@ -14,7 +14,6 @@ namespace Coffee.UIEffects.Editors
|
||||
private SerializedProperty _useTargetTransform;
|
||||
private SerializedProperty _samplingScale;
|
||||
private SerializedProperty _allowToModifyMeshShape;
|
||||
private SerializedProperty _flip;
|
||||
private SerializedProperty _customRoot;
|
||||
private Editor _uiEffectEditor;
|
||||
|
||||
@@ -24,7 +23,6 @@ namespace Coffee.UIEffects.Editors
|
||||
_useTargetTransform = serializedObject.FindProperty("m_UseTargetTransform");
|
||||
_samplingScale = serializedObject.FindProperty("m_SamplingScale");
|
||||
_allowToModifyMeshShape = serializedObject.FindProperty("m_AllowToModifyMeshShape");
|
||||
_flip = serializedObject.FindProperty("m_Flip");
|
||||
_customRoot = serializedObject.FindProperty("m_CustomRoot");
|
||||
}
|
||||
|
||||
@@ -64,7 +62,6 @@ namespace Coffee.UIEffects.Editors
|
||||
|
||||
EditorGUILayout.PropertyField(_samplingScale);
|
||||
EditorGUILayout.PropertyField(_allowToModifyMeshShape);
|
||||
EditorGUILayout.PropertyField(_flip);
|
||||
|
||||
if (_target.objectReferenceValue)
|
||||
{
|
||||
|
||||
@@ -19,9 +19,6 @@ namespace Coffee.UIEffects
|
||||
[SerializeField]
|
||||
protected RectTransform m_CustomRoot = null;
|
||||
|
||||
[SerializeField]
|
||||
protected Flip m_Flip = 0;
|
||||
|
||||
private UIEffect _currentTarget;
|
||||
|
||||
public UIEffect target
|
||||
@@ -82,16 +79,7 @@ namespace Coffee.UIEffects
|
||||
}
|
||||
}
|
||||
|
||||
public override Flip flip
|
||||
{
|
||||
get => m_Flip;
|
||||
set
|
||||
{
|
||||
if (m_Flip == value) return;
|
||||
m_Flip = value;
|
||||
SetVerticesDirty();
|
||||
}
|
||||
}
|
||||
public override Flip flip => target ? target.flip : 0;
|
||||
|
||||
public override float actualSamplingScale => Mathf.Clamp(m_SamplingScale, 0.01f, 100);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user