TopDown Engine v4.5
Loading...
Searching...
No Matches
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

Transform ObjectToParent
 the object we want to change the parent of
Transform NewParent
 the object ObjectToParent should now be parented to after playing this feedback
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

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 AutomateTargetAcquisition ()
 A method meant to be implemented per feedback letting you specify what happens (usually setting a target)
override void CustomPlayFeedback (Vector3 position, float feedbacksIntensity=1.0f)
 On Play, changes the parent of the target transform.

Properties

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

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 )
protected

On Play, changes the parent of the target transform.

Parameters
position
feedbacksIntensity

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

◆ 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

Property Documentation

◆ HasAutomatedTargetAcquisition

override bool MoreMountains.Feedbacks.MMF_SetParent.HasAutomatedTargetAcquisition
get

sets the inspector color for this feedback


The documentation for this class was generated from the following file:
  • H:/Code/MoreMountains/topdownengine/Assets/TopDownEngine/ThirdParty/MoreMountains/MMFeedbacks/MMFeedbacks/Feedbacks/MMF_SetParent.cs