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

This feedback will let you control the RaycastTarget parameter of a target image, turning it on or off on play More...

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

Public Attributes

override bool HasAutomatedTargetAcquisition => true
 
Image TargetImage
 the target Image we want to control the RaycastTarget parameter on More...
 
bool ShouldBeRaycastTarget = true
 if this is true, when played, the target image will become a raycast target 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 we turn raycastTarget on or off More...
 
override void CustomRestoreInitialValues ()
 On restore, we restore our initial state More...
 

Protected Attributes

bool _initialState
 

Additional Inherited Members

Detailed Description

This feedback will let you control the RaycastTarget parameter of a target image, turning it on or off on play

Member Function Documentation

◆ AutomateTargetAcquisition()

override void MoreMountains.Feedbacks.MMF_ImageRaycastTarget.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_ImageRaycastTarget.CustomPlayFeedback ( Vector3  position,
float  feedbacksIntensity = 1.0f 
)
protectedvirtual

On play we turn raycastTarget on or off

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

◆ CustomRestoreInitialValues()

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

On restore, we restore our initial state

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ _initialState

bool MoreMountains.Feedbacks.MMF_ImageRaycastTarget._initialState
protected

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_ImageRaycastTarget.FeedbackTypeAuthorized = true
static

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

◆ HasAutomatedTargetAcquisition

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

◆ ShouldBeRaycastTarget

bool MoreMountains.Feedbacks.MMF_ImageRaycastTarget.ShouldBeRaycastTarget = true

if this is true, when played, the target image will become a raycast target

◆ TargetImage

Image MoreMountains.Feedbacks.MMF_ImageRaycastTarget.TargetImage

the target Image we want to control the RaycastTarget parameter on


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