mirror of
https://github.com/mob-sakai/UIEffect.git
synced 2026-11-19 17:22:37 +08:00
@@ -1602,6 +1602,15 @@ namespace Coffee.UIEffects
|
||||
}
|
||||
}
|
||||
|
||||
public void Clear()
|
||||
{
|
||||
m_SamplingScale = 1;
|
||||
m_AllowToModifyMeshShape = true;
|
||||
m_CustomRoot = null;
|
||||
|
||||
LoadPreset(UIEffectPreset.GetDefaultPreset());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Load preset settings.
|
||||
/// </summary>
|
||||
|
||||
@@ -8,6 +8,19 @@ namespace Coffee.UIEffects
|
||||
[ExecuteAlways]
|
||||
public class UIEffectPreset : ScriptableObject
|
||||
{
|
||||
internal static UIEffectPreset s_DefaultPreset;
|
||||
|
||||
internal static UIEffectPreset GetDefaultPreset()
|
||||
{
|
||||
if (!s_DefaultPreset)
|
||||
{
|
||||
s_DefaultPreset = CreateInstance<UIEffectPreset>();
|
||||
s_DefaultPreset.hideFlags = HideFlags.HideAndDontSave;
|
||||
}
|
||||
|
||||
return s_DefaultPreset;
|
||||
}
|
||||
|
||||
public ToneFilter m_ToneFilter = ToneFilter.None;
|
||||
[Range(0, 1)] public float m_ToneIntensity = 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user