Infinite Runner Engine v1.9
Public Types | Public Attributes | Static Public Attributes | Protected Member Functions | Protected Attributes | Properties | List of all members
MoreMountains.Feedbacks.MMF_ImageAlpha Class Reference

This feedback will let you change the alpha of a target sprite renderer over time. More...

Inheritance diagram for MoreMountains.Feedbacks.MMF_ImageAlpha:
MoreMountains.Feedbacks.MMF_Feedback

Public Types

enum  Modes { OverTime , Instant , ToDestination }
 sets the inspector color for this feedback More...
 

Public Attributes

Image BoundImage
 the Image to affect when playing the feedback More...
 
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...
 
float InstantAlpha = 1f
 the alpha to move to in instant mode More...
 
MMTweenType Curve = new MMTweenType(MMTween.MMTweenCurve.EaseInCubic)
 the curve to use when interpolating towards the destination alpha More...
 
float CurveRemapZero = 0f
 the value to which the curve's 0 should be remapped More...
 
float CurveRemapOne = 1f
 the value to which the curve's 1 should be remapped More...
 
float DestinationAlpha = 1f
 the alpha to aim towards when in ToDestination mode More...
 

Static Public Attributes

static bool FeedbackTypeAuthorized = true
 a static bool used to disable all feedbacks of this type at once More...
 

Protected Member Functions

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 SetAlpha (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...
 
virtual void Turn (bool status)
 Turns the sprite renderer on or off More...
 

Protected Attributes

Coroutine _coroutine
 
Color _imageColor
 
float _initialAlpha
 

Properties

override float? FeedbackDuration [getset]
 the duration of this feedback is the duration of the Image, or 0 if instant More...
 

Additional Inherited Members

Detailed Description

This feedback will let you change the alpha of a target sprite renderer over time.

Member Enumeration Documentation

◆ Modes

sets the inspector color for this feedback

the possible modes for this feedback

Enumerator
OverTime 
Instant 
ToDestination 

Member Function Documentation

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_ImageAlpha.CustomPlayFeedback ( Vector3  position,
float  feedbacksIntensity = 1.0f 
)
protectedvirtual

On Play we turn our Image on and start an over time coroutine if needed

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

override void MoreMountains.Feedbacks.MMF_ImageAlpha.CustomStopFeedback ( Vector3  position,
float  feedbacksIntensity = 1 
)
protectedvirtual

Turns the sprite renderer off on stop

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ ImageSequence()

virtual IEnumerator MoreMountains.Feedbacks.MMF_ImageAlpha.ImageSequence ( )
protectedvirtual

This coroutine will modify the values on the Image

Returns

◆ SetAlpha()

virtual void MoreMountains.Feedbacks.MMF_ImageAlpha.SetAlpha ( float  time)
protectedvirtual

Sets the various values on the sprite renderer on a specified time (between 0 and 1)

Parameters
time

◆ Turn()

virtual void MoreMountains.Feedbacks.MMF_ImageAlpha.Turn ( bool  status)
protectedvirtual

Turns the sprite renderer on or off

Parameters
status

Member Data Documentation

◆ _coroutine

Coroutine MoreMountains.Feedbacks.MMF_ImageAlpha._coroutine
protected

◆ _imageColor

Color MoreMountains.Feedbacks.MMF_ImageAlpha._imageColor
protected

◆ _initialAlpha

float MoreMountains.Feedbacks.MMF_ImageAlpha._initialAlpha
protected

◆ AllowAdditivePlays

bool MoreMountains.Feedbacks.MMF_ImageAlpha.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

◆ BoundImage

Image MoreMountains.Feedbacks.MMF_ImageAlpha.BoundImage

the Image to affect when playing the feedback

◆ Curve

MMTweenType MoreMountains.Feedbacks.MMF_ImageAlpha.Curve = new MMTweenType(MMTween.MMTweenCurve.EaseInCubic)

the curve to use when interpolating towards the destination alpha

◆ CurveRemapOne

float MoreMountains.Feedbacks.MMF_ImageAlpha.CurveRemapOne = 1f

the value to which the curve's 1 should be remapped

◆ CurveRemapZero

float MoreMountains.Feedbacks.MMF_ImageAlpha.CurveRemapZero = 0f

the value to which the curve's 0 should be remapped

◆ DestinationAlpha

float MoreMountains.Feedbacks.MMF_ImageAlpha.DestinationAlpha = 1f

the alpha to aim towards when in ToDestination mode

◆ Duration

float MoreMountains.Feedbacks.MMF_ImageAlpha.Duration = 0.2f

how long the Image should change over time

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_ImageAlpha.FeedbackTypeAuthorized = true
static

a static bool used to disable all feedbacks of this type at once

◆ InstantAlpha

float MoreMountains.Feedbacks.MMF_ImageAlpha.InstantAlpha = 1f

the alpha to move to in instant mode

◆ Mode

Modes MoreMountains.Feedbacks.MMF_ImageAlpha.Mode = Modes.OverTime

whether the feedback should affect the Image instantly or over a period of time

Property Documentation

◆ FeedbackDuration

override float? MoreMountains.Feedbacks.MMF_ImageAlpha.FeedbackDuration
getset

the duration of this feedback is the duration of the Image, or 0 if instant


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