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

A feedback used to change the parent of a transform More...

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

Public Attributes

override bool HasAutomatedTargetAcquisition => true
 sets the inspector color for this feedback More...
 
Transform ObjectToParent
 the object we want to change the parent of More...
 
Transform NewParent
 the object ObjectToParent should now be parented to after playing this feedback More...
 
bool WorldPositionStays = true
 if true, the parent-relative position, scale and rotation are modified such that the object keeps the same world space position, rotation and scale as before 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 AutomateTargetAcquisition ()
 A method meant to be implemented per feedback letting you specify what happens (usually setting a target) More...
 
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play, changes the parent of the target transform More...
 

Additional Inherited Members

Detailed Description

A feedback used to change the parent of a transform

Member Function Documentation

◆ AutomateTargetAcquisition()

override void MoreMountains.Feedbacks.MMF_SetParent.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.

◆ CustomPlayFeedback()

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

On Play, changes the parent of the target transform

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_SetParent.FeedbackTypeAuthorized = true
static

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

◆ HasAutomatedTargetAcquisition

override bool MoreMountains.Feedbacks.MMF_SetParent.HasAutomatedTargetAcquisition => true

sets the inspector color for this feedback

◆ NewParent

Transform MoreMountains.Feedbacks.MMF_SetParent.NewParent

the object ObjectToParent should now be parented to after playing this feedback

◆ ObjectToParent

Transform MoreMountains.Feedbacks.MMF_SetParent.ObjectToParent

the object we want to change the parent of

◆ WorldPositionStays

bool MoreMountains.Feedbacks.MMF_SetParent.WorldPositionStays = true

if true, the parent-relative position, scale and rotation are modified such that the object keeps the same world space position, rotation and scale as before


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