Feel 5.9.1
The best way to improve your game's feel and make it extra juicy
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMF_Fog Class Reference

This feedback will let you animate the density, color, end and start distance of your scene's fog. More...

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

Public Types

enum  Modes { OverTime , Instant }
 the possible modes for this feedback More...

Public Attributes

Modes Mode = Modes.OverTime
 whether the feedback should affect the sprite renderer instantly or over a period of time
float Duration = 2f
 how long the sprite renderer should change over time
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
bool ModifyFogDensity = true
 whether or not to modify the fog's density
MMTweenType DensityCurve = new MMTweenType(new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.3f, 1f), new Keyframe(1, 0)))
 a curve to use to animate the fog's density over time
float DensityRemapZero = 0.01f
 the value to remap the fog's density curve zero value to
float DensityRemapOne = 0.05f
 the value to remap the fog's density curve one value to
float DensityInstantChange
 the value to change the fog's density to when in instant mode
bool ModifyStartDistance = true
 whether or not to modify the fog's start distance
MMTweenType StartDistanceCurve = new MMTweenType(new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.3f, 1f), new Keyframe(1, 0)))
 a curve to use to animate the fog's start distance over time
float StartDistanceRemapZero = 0f
 the value to remap the fog's start distance curve zero value to
float StartDistanceRemapOne = 0f
 the value to remap the fog's start distance curve one value to
float StartDistanceInstantChange
 the value to change the fog's start distance to when in instant mode
bool ModifyEndDistance = true
 whether or not to modify the fog's end distance
MMTweenType EndDistanceCurve = new MMTweenType(new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.3f, 1f), new Keyframe(1, 0)))
 a curve to use to animate the fog's end distance over time
float EndDistanceRemapZero = 0f
 the value to remap the fog's end distance curve zero value to
float EndDistanceRemapOne = 300f
 the value to remap the fog's end distance curve one value to
float EndDistanceInstantChange
 the value to change the fog's end distance to when in instant mode
bool ModifyColor = true
 whether or not to modify the fog's color
Gradient ColorOverTime
 the colors to apply to the sprite renderer over time
Color InstantColor
 the color to move to in instant mode

Static Public Attributes

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

Protected Member Functions

override void CustomInitialization (MMF_Player owner)
 This method describes all custom initialization processes the feedback requires, in addition to the main Initialization method.
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play we change the values of our fog.
virtual IEnumerator FogSequence (float intensityMultiplier)
 This coroutine will modify the values on the fog settings.
virtual void SetFogValues (float time, float intensityMultiplier)
 Sets the various values on the fog on a specified time (between 0 and 1)
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 Stops this feedback.
override void CustomRestoreInitialValues ()
 On restore, we put our object back at its initial position.

Protected Attributes

Coroutine _coroutine
Color _initialColor
float _initialStartDistance
float _initialEndDistance
float _initialDensity
Color _initialInstantColor
float _initialInstantStartDistance
float _initialInstantEndDistance
float _initialInstantDensity

Properties

override bool HasRandomness [get]
 sets the inspector color for this feedback
override bool HasCustomInspectors [get]
override float FeedbackDuration [get, set]
 the duration of this feedback is the duration of the sprite renderer, or 0 if instant

Additional Inherited Members

Detailed Description

This feedback will let you animate the density, color, end and start distance of your scene's fog.

Member Enumeration Documentation

◆ Modes

the possible modes for this feedback

Enumerator
OverTime 
Instant 

Member Function Documentation

◆ CustomInitialization()

override void MoreMountains.Feedbacks.MMF_Fog.CustomInitialization ( MMF_Player owner)
protectedvirtual

This method describes all custom initialization processes the feedback requires, in addition to the main Initialization method.

Parameters
owner

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomPlayFeedback()

override void MoreMountains.Feedbacks.MMF_Fog.CustomPlayFeedback ( Vector3 position,
float feedbacksIntensity = 1::0f )
protected

On Play we change the values of our fog.

Parameters
position
feedbacksIntensity

◆ CustomRestoreInitialValues()

override void MoreMountains.Feedbacks.MMF_Fog.CustomRestoreInitialValues ( )
protectedvirtual

On restore, we put our object back at its initial position.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

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

Stops this feedback.

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ FogSequence()

virtual IEnumerator MoreMountains.Feedbacks.MMF_Fog.FogSequence ( float intensityMultiplier)
protectedvirtual

This coroutine will modify the values on the fog settings.

Returns

◆ SetFogValues()

virtual void MoreMountains.Feedbacks.MMF_Fog.SetFogValues ( float time,
float intensityMultiplier )
protectedvirtual

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

Parameters
time

Member Data Documentation

◆ _coroutine

Coroutine MoreMountains.Feedbacks.MMF_Fog._coroutine
protected

◆ _initialColor

Color MoreMountains.Feedbacks.MMF_Fog._initialColor
protected

◆ _initialDensity

float MoreMountains.Feedbacks.MMF_Fog._initialDensity
protected

◆ _initialEndDistance

float MoreMountains.Feedbacks.MMF_Fog._initialEndDistance
protected

◆ _initialInstantColor

Color MoreMountains.Feedbacks.MMF_Fog._initialInstantColor
protected

◆ _initialInstantDensity

float MoreMountains.Feedbacks.MMF_Fog._initialInstantDensity
protected

◆ _initialInstantEndDistance

float MoreMountains.Feedbacks.MMF_Fog._initialInstantEndDistance
protected

◆ _initialInstantStartDistance

float MoreMountains.Feedbacks.MMF_Fog._initialInstantStartDistance
protected

◆ _initialStartDistance

float MoreMountains.Feedbacks.MMF_Fog._initialStartDistance
protected

◆ AllowAdditivePlays

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

◆ ColorOverTime

Gradient MoreMountains.Feedbacks.MMF_Fog.ColorOverTime

the colors to apply to the sprite renderer over time

◆ DensityCurve

MMTweenType MoreMountains.Feedbacks.MMF_Fog.DensityCurve = new MMTweenType(new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.3f, 1f), new Keyframe(1, 0)))

a curve to use to animate the fog's density over time

◆ DensityInstantChange

float MoreMountains.Feedbacks.MMF_Fog.DensityInstantChange

the value to change the fog's density to when in instant mode

◆ DensityRemapOne

float MoreMountains.Feedbacks.MMF_Fog.DensityRemapOne = 0.05f

the value to remap the fog's density curve one value to

◆ DensityRemapZero

float MoreMountains.Feedbacks.MMF_Fog.DensityRemapZero = 0.01f

the value to remap the fog's density curve zero value to

◆ Duration

float MoreMountains.Feedbacks.MMF_Fog.Duration = 2f

how long the sprite renderer should change over time

◆ EndDistanceCurve

MMTweenType MoreMountains.Feedbacks.MMF_Fog.EndDistanceCurve = new MMTweenType(new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.3f, 1f), new Keyframe(1, 0)))

a curve to use to animate the fog's end distance over time

◆ EndDistanceInstantChange

float MoreMountains.Feedbacks.MMF_Fog.EndDistanceInstantChange

the value to change the fog's end distance to when in instant mode

◆ EndDistanceRemapOne

float MoreMountains.Feedbacks.MMF_Fog.EndDistanceRemapOne = 300f

the value to remap the fog's end distance curve one value to

◆ EndDistanceRemapZero

float MoreMountains.Feedbacks.MMF_Fog.EndDistanceRemapZero = 0f

the value to remap the fog's end distance curve zero value to

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_Fog.FeedbackTypeAuthorized = true
static

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

◆ InstantColor

Color MoreMountains.Feedbacks.MMF_Fog.InstantColor

the color to move to in instant mode

◆ Mode

Modes MoreMountains.Feedbacks.MMF_Fog.Mode = Modes.OverTime

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

◆ ModifyColor

bool MoreMountains.Feedbacks.MMF_Fog.ModifyColor = true

whether or not to modify the fog's color

◆ ModifyEndDistance

bool MoreMountains.Feedbacks.MMF_Fog.ModifyEndDistance = true

whether or not to modify the fog's end distance

◆ ModifyFogDensity

bool MoreMountains.Feedbacks.MMF_Fog.ModifyFogDensity = true

whether or not to modify the fog's density

◆ ModifyStartDistance

bool MoreMountains.Feedbacks.MMF_Fog.ModifyStartDistance = true

whether or not to modify the fog's start distance

◆ StartDistanceCurve

MMTweenType MoreMountains.Feedbacks.MMF_Fog.StartDistanceCurve = new MMTweenType(new AnimationCurve(new Keyframe(0, 0), new Keyframe(0.3f, 1f), new Keyframe(1, 0)))

a curve to use to animate the fog's start distance over time

◆ StartDistanceInstantChange

float MoreMountains.Feedbacks.MMF_Fog.StartDistanceInstantChange

the value to change the fog's start distance to when in instant mode

◆ StartDistanceRemapOne

float MoreMountains.Feedbacks.MMF_Fog.StartDistanceRemapOne = 0f

the value to remap the fog's start distance curve one value to

◆ StartDistanceRemapZero

float MoreMountains.Feedbacks.MMF_Fog.StartDistanceRemapZero = 0f

the value to remap the fog's start distance curve zero value to

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_Fog.FeedbackDuration
getset

the duration of this feedback is the duration of the sprite renderer, or 0 if instant

◆ HasCustomInspectors

override bool MoreMountains.Feedbacks.MMF_Fog.HasCustomInspectors
get

◆ HasRandomness

override bool MoreMountains.Feedbacks.MMF_Fog.HasRandomness
get

sets the inspector color for this feedback


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/feel/Assets/Feel/MMFeedbacks/MMFeedbacksForThirdParty/MMTools/Feedbacks/MMF_Fog.cs