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

A feedback used to pilot color springs More...

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

Public Attributes

override bool HasChannel => true
 
override bool CanForceInitialValue => true
 
MMSpringComponentBase TargetSpring
 the Color spring we want to pilot using this feedback. If you set one, only that spring will be targeted. If you don't, an event will be sent out to all springs matching the channel data info More...
 
float DeclaredDuration = 0f
 the duration for the player to consider. This won't impact your particle system, but is a way to communicate to the MMF Player the duration of this feedback. Usually you'll want it to match your actual particle system, and setting it can be useful to have this feedback work with holding pauses. More...
 
SpringCommands Command = SpringCommands.Bump
 the command to use on that spring More...
 
Color MoveToColor = MMColors.Aquamarine
 the new color this spring should move towards More...
 
Color BumpColor = MMColors.Orange
 the color to add to the spring's current velocity to disturb it and make it bump More...
 
Color MoveToRandomColorMin = MMColors.LawnGreen
 the min color from which to pick a random color in MoveToRandom mode More...
 
Color MoveToRandomColorMax = MMColors.MediumSeaGreen
 the max color from which to pick a random color in MoveToRandom mode More...
 
Color BumpRandomColorMin = MMColors.HotPink
 the min color from which to pick a random color in BumpRandom mode More...
 
Color BumpRandomColorMax = MMColors.Plum
 the max color from which to pick a random color in BumpRandom mode More...
 
bool OverrideDamping = false
 whether or not to override the current Damping value of the target spring(s) with the one specified below (NewDamping) More...
 
float NewDamping = 0.8f
 the new damping value to apply to the target spring(s) if OverrideDamping is true More...
 
bool OverrideFrequency = false
 whether or not to override the current Frequency value of the target spring(s) with the one specified below (NewFrequency) More...
 
float NewFrequency = 5f
 the new frequency value to apply to the target spring(s) if OverrideFrequency is true 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, triggers a spring event with the selected settings More...
 
override void CustomStopFeedback (Vector3 position, float feedbacksIntensity=1)
 On stop, triggers a spring stop event More...
 
override void CustomRestoreInitialValues ()
 On restore, triggers a spring RestoreInitialValue event More...
 

Protected Attributes

MMChannelData _eventChannelData
 

Properties

override float FeedbackDuration [get, set]
 sets the inspector color for this feedback More...
 

Additional Inherited Members

Detailed Description

A feedback used to pilot color springs

Member Function Documentation

◆ CustomPlayFeedback()

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

On Play, triggers a spring event with the selected settings

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

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

On restore, triggers a spring RestoreInitialValue event

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomStopFeedback()

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

On stop, triggers a spring stop event

Parameters
position
feedbacksIntensity

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ _eventChannelData

MMChannelData MoreMountains.Feedbacks.MMF_SpringColor._eventChannelData
protected

◆ BumpColor

Color MoreMountains.Feedbacks.MMF_SpringColor.BumpColor = MMColors.Orange

the color to add to the spring's current velocity to disturb it and make it bump

◆ BumpRandomColorMax

Color MoreMountains.Feedbacks.MMF_SpringColor.BumpRandomColorMax = MMColors.Plum

the max color from which to pick a random color in BumpRandom mode

◆ BumpRandomColorMin

Color MoreMountains.Feedbacks.MMF_SpringColor.BumpRandomColorMin = MMColors.HotPink

the min color from which to pick a random color in BumpRandom mode

◆ CanForceInitialValue

override bool MoreMountains.Feedbacks.MMF_SpringColor.CanForceInitialValue => true

◆ Command

SpringCommands MoreMountains.Feedbacks.MMF_SpringColor.Command = SpringCommands.Bump

the command to use on that spring

◆ DeclaredDuration

float MoreMountains.Feedbacks.MMF_SpringColor.DeclaredDuration = 0f

the duration for the player to consider. This won't impact your particle system, but is a way to communicate to the MMF Player the duration of this feedback. Usually you'll want it to match your actual particle system, and setting it can be useful to have this feedback work with holding pauses.

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_SpringColor.FeedbackTypeAuthorized = true
static

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

◆ HasChannel

override bool MoreMountains.Feedbacks.MMF_SpringColor.HasChannel => true

◆ MoveToColor

Color MoreMountains.Feedbacks.MMF_SpringColor.MoveToColor = MMColors.Aquamarine

the new color this spring should move towards

◆ MoveToRandomColorMax

Color MoreMountains.Feedbacks.MMF_SpringColor.MoveToRandomColorMax = MMColors.MediumSeaGreen

the max color from which to pick a random color in MoveToRandom mode

◆ MoveToRandomColorMin

Color MoreMountains.Feedbacks.MMF_SpringColor.MoveToRandomColorMin = MMColors.LawnGreen

the min color from which to pick a random color in MoveToRandom mode

◆ NewDamping

float MoreMountains.Feedbacks.MMF_SpringColor.NewDamping = 0.8f

the new damping value to apply to the target spring(s) if OverrideDamping is true

◆ NewFrequency

float MoreMountains.Feedbacks.MMF_SpringColor.NewFrequency = 5f

the new frequency value to apply to the target spring(s) if OverrideFrequency is true

◆ OverrideDamping

bool MoreMountains.Feedbacks.MMF_SpringColor.OverrideDamping = false

whether or not to override the current Damping value of the target spring(s) with the one specified below (NewDamping)

◆ OverrideFrequency

bool MoreMountains.Feedbacks.MMF_SpringColor.OverrideFrequency = false

whether or not to override the current Frequency value of the target spring(s) with the one specified below (NewFrequency)

◆ TargetSpring

MMSpringComponentBase MoreMountains.Feedbacks.MMF_SpringColor.TargetSpring

the Color spring we want to pilot using this feedback. If you set one, only that spring will be targeted. If you don't, an event will be sent out to all springs matching the channel data info

Property Documentation

◆ FeedbackDuration

override float MoreMountains.Feedbacks.MMF_SpringColor.FeedbackDuration
getset

sets the inspector color for this feedback

the duration of this feedback is the duration of the zoom


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