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

This feedback will let you set the visibility of an element on a target UI Document More...

Inheritance diagram for MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitVisible:
MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit MoreMountains.Feedbacks.MMF_Feedback

Public Types

enum  Modes { Modes.Set, Modes.Toggle }
 
- Public Types inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
enum  QueryModes { QueryModes.Name, QueryModes.Class }
 

Public Attributes

Modes Mode = Modes.Set
 the selected mode (set : sets the object visible or not, toggle : toggles the object's visibility) More...
 
bool Visible = false
 whether to set the object visible (true) or not More...
 
- Public Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase
override bool HasCustomInspectors => true
 
- 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...
 

Protected Member Functions

override void SetValue ()
 
override void SetValue (bool newValue)
 
override bool GetInitialValue ()
 
- Protected Member Functions inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase
override void CustomInitialization (MMF_Player owner)
 On init we store our initial value More...
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we change our text's alpha More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 Stops the animation if needed More...
 
override void CustomRestoreInitialValues ()
 On restore, we put our object back at its initial position 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

- 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_UIToolkitBoolBase
bool _initialValue
 
- Protected Attributes inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkit
List< VisualElement > _visualElements = new List<VisualElement>()
 
- Properties inherited from MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitBoolBase
override float FeedbackDuration [get]
 the duration of this feedback is the duration of the color transition, or 0 if instant More...
 

Detailed Description

This feedback will let you set the visibility of an element on a target UI Document

Member Enumeration Documentation

◆ Modes

Member Function Documentation

◆ GetInitialValue()

override bool MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitVisible.GetInitialValue ( )
protectedvirtual

◆ SetValue() [1/2]

override void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitVisible.SetValue ( )
protectedvirtual

◆ SetValue() [2/2]

override void MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitVisible.SetValue ( bool  newValue)
protectedvirtual

Member Data Documentation

◆ Mode

Modes MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitVisible.Mode = Modes.Set

the selected mode (set : sets the object visible or not, toggle : toggles the object's visibility)

◆ Visible

bool MoreMountains.FeedbacksForThirdParty.MMF_UIToolkitVisible.Visible = false

whether to set the object visible (true) or not


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