TopDown Engine v4.3
MoreMountains.Feedbacks.MMF_RectTransformPivot Class Reference

This feedback lets you control the position of a RectTransform's pivot over time More...

Inheritance diagram for MoreMountains.Feedbacks.MMF_RectTransformPivot:
MoreMountains.Feedbacks.MMF_FeedbackBase MoreMountains.Feedbacks.MMF_Feedback

Public Attributes

RectTransform TargetRectTransform
 the RectTransform whose position you want to control over time More...
 
MMTweenType SpeedCurve = new MMTweenType(new AnimationCurve(new Keyframe(0, 0), new Keyframe(1, 1)))
 The curve along which to evaluate the position of the RectTransform's pivot. More...
 
Vector2 RemapZero = Vector2.zero
 the position to remap the curve's 0 to, randomized between its min and max - put the same value in both min and max if you don't want any randomness More...
 
Vector2 RemapOne = Vector2.one
 the position to remap the curve's 1 to, randomized between its min and max - put the same value in both min and max if you don't want any randomness More...
 

Protected Member Functions

override void AutomateTargetAcquisition ()
 A method meant to be implemented per feedback letting you specify what happens (usually setting a target) More...
 
override void FillTargets ()
 Fills our list of targets, meant to be extended More...
 

Properties

override bool HasAutomatedTargetAcquisition [get]
 sets the inspector color for this feedback More...
 
override bool CanForceInitialValue [get]
 

Additional Inherited Members

 the possible modes for this feedback More...

Detailed Description

This feedback lets you control the position of a RectTransform's pivot over time

Member Function Documentation

◆ AutomateTargetAcquisition()

override void MoreMountains.Feedbacks.MMF_RectTransformPivot.AutomateTargetAcquisition ( )
protectedvirtual

A method meant to be implemented per feedback letting you specify what happens (usually setting a target)

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

◆ FillTargets()

override void MoreMountains.Feedbacks.MMF_RectTransformPivot.FillTargets ( )
protectedvirtual

Fills our list of targets, meant to be extended

Implements MoreMountains.Feedbacks.MMF_FeedbackBase.

Member Data Documentation

◆ RemapOne

Vector2 MoreMountains.Feedbacks.MMF_RectTransformPivot.RemapOne = Vector2.one

the position to remap the curve's 1 to, randomized between its min and max - put the same value in both min and max if you don't want any randomness

◆ RemapZero

Vector2 MoreMountains.Feedbacks.MMF_RectTransformPivot.RemapZero = Vector2.zero

the position to remap the curve's 0 to, randomized between its min and max - put the same value in both min and max if you don't want any randomness

◆ SpeedCurve

MMTweenType MoreMountains.Feedbacks.MMF_RectTransformPivot.SpeedCurve = new MMTweenType(new AnimationCurve(new Keyframe(0, 0), new Keyframe(1, 1)))

The curve along which to evaluate the position of the RectTransform's pivot.

◆ TargetRectTransform

RectTransform MoreMountains.Feedbacks.MMF_RectTransformPivot.TargetRectTransform

the RectTransform whose position you want to control over time

Property Documentation

◆ CanForceInitialValue

override bool MoreMountains.Feedbacks.MMF_RectTransformPivot.CanForceInitialValue
get

◆ HasAutomatedTargetAcquisition

override bool MoreMountains.Feedbacks.MMF_RectTransformPivot.HasAutomatedTargetAcquisition
get

sets the inspector color for this feedback


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