Class FilterBase
Base class for all derived filter classes
Assembly: ChocDino.UIFX.dllβ
Declaration
[ExecuteInEditMode]
[RequireComponent(typeof(CanvasRenderer))]
[HelpURL("https://www.chocdino.com/products/unity-assets/")]
public abstract class FilterBase : UIBehaviour, IMaterialModifier, IMeshModifier
Inheritance: System.Object
-> UnityEngine.Object
-> UnityEngine.Component
-> UnityEngine.Behaviour
-> UnityEngine.MonoBehaviour
-> UnityEngine.EventSystems.UIBehaviour
Derived:
ChocDino.UIFX.GlowFilter
Implements:
UnityEngine.UI.IMaterialModifier
, UnityEngine.UI.IMeshModifier
Propertiesβ
Strengthβ
How much of the maximum effect to apply. Range [0..1] Default is 1.0
Declaration
public float Strength { get; set; }
Methodsβ
ForceUpdate(bool)β
Forces the filter to update. Usually this happens automatically, but in some cases you may want to force an update.
Declaration
public void ForceUpdate(bool force = false)
Parametersβ
Type | Name |
---|---|
System.Boolean | force |
ResolveToTexture()β
Resolves to a final sRGB straight-alpha texture suitable for display or saving to image file.
Declaration
public RenderTexture ResolveToTexture()
Returnsβ
UnityEngine.RenderTexture
SaveToPNG(string)β
Resolve the filter output to a sRGB texture and write it to a PNG file
Declaration
public bool SaveToPNG(string path)
Returnsβ
System.Boolean
Parametersβ
Type | Name |
---|---|
System.String | path |
Implementsβ
UnityEngine.UI.IMaterialModifier
UnityEngine.UI.IMeshModifier