Feel  4.3
The best way to improve your game's feel and make it extra juicy
MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBackgroundColor Class Reference

This feedback will let you change the background color of an element on a target UI Document More...

Inheritance diagram for MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBackgroundColor:
MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitColorBase MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit MoreMountains.Feedbacks.MMF_Feedback

Protected Member Functions

override void ApplyColor (Color newColor)
 
override Color GetInitialColor ()
 
- Protected Member Functions inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitColorBase
override void CustomInitialization (MMF_Player owner)
 On init we turn the Image off if needed More...
 
virtual void HandleApplyInitialColors ()
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we turn our Image on and start an over time coroutine if needed More...
 
virtual IEnumerator ImageSequence ()
 This coroutine will modify the values on the Image More...
 
virtual void SetImageValues (float time)
 Sets the various values on the sprite renderer on a specified time (between 0 and 1) More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 Turns the sprite renderer off on stop More...
 
override void CustomRestoreInitialValues ()
 On restore, we restore our initial state More...
 
- Protected Member Functions inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
override void AutomateTargetAcquisition ()
 A method meant to be implemented per feedback letting you specify what happens (usually setting a target) More...
 
virtual void PerformQuery ()
 Performs the query and sets _visualElements with the result More...
 
virtual void HandleMarkDirty (VisualElement element)
 

Additional Inherited Members

- Public Types inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitColorBase
enum  Modes { Modes.OverTime, Modes.Instant }
 the possible modes for this feedback More...
 
- Public Types inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
enum  QueryModes { QueryModes.Name, QueryModes.Class }
 
- Public Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitColorBase
override bool HasChannel => true
 
Modes Mode = Modes.OverTime
 whether the feedback should affect the Image instantly or over a period of time More...
 
float Duration = 0.2f
 how long the Image should change over time More...
 
bool AllowAdditivePlays = false
 if this is true, calling that feedback will trigger it, even if it's in progress. If it's false, it'll prevent any new Play until the current one is over More...
 
bool ModifyColor = true
 whether or not to modify the color of the image More...
 
Gradient ColorOverTime
 the colors to apply to the Image over time More...
 
Color InstantColor
 the color to move to in instant mode More...
 
bool ApplyInitialColorToGradientStart = false
 if this is true, the initial color will be applied to the gradient start More...
 
bool ApplyInitialColorToGradientEnd = false
 if this is true, the initial color will be applied to the gradient end More...
 
bool ApplyInitialColorsOnPlay = true
 if this is true, the initial color will be applied to the gradient start and end on play More...
 
- Public Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
override bool HasAutomatedTargetAcquisition => true
 sets the inspector color for this feedback More...
 
UIDocument TargetDocument
 the UI document on which to make modifications More...
 
QueryModes QueryMode = QueryModes.Name
 the way to perform the query, either via element name or via class More...
 
string Query = "ButtonA"
 the query to perform (replace this with your own element name or class) More...
 
bool MarkDirty = false
 whether to mark the UI document dirty after the operation. Set this to true when making a change that requires a repaint such as when using generateVisualContent to render a mesh and the mesh data has now changed. More...
 
- Static Public Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once More...
 
- Protected Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitColorBase
Coroutine _coroutine
 
Color _initialColor
 
- Protected Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
List< VisualElement > _visualElements = new List<VisualElement>()
 
- Properties inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitColorBase
override float? FeedbackDuration [get, set]
 the duration of this feedback is whatever value's been defined for it More...
 

Detailed Description

This feedback will let you change the background color of an element on a target UI Document

Member Function Documentation

◆ ApplyColor()

override void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBackgroundColor.ApplyColor ( Color  newColor)
protectedvirtual

◆ GetInitialColor()

override Color MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBackgroundColor.GetInitialColor ( )
protectedvirtual

The documentation for this class was generated from the following file: