TopDown Engine v4.5
Loading...
Searching...
No Matches
MoreMountains.Feedbacks.MMF_CanvasGroupBlocksRaycasts Class Reference

This feedback will let you turn the BlocksRaycast parameter of a target CanvasGroup on or off on play. More...

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

Public Attributes

CanvasGroup TargetCanvasGroup
 the target canvas group we want to control the BlocksRaycasts parameter on
bool ShouldBlockRaycasts = true
 if this is true, on play, the target canvas group will block raycasts, if false it won't

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 we turn raycast block on or off.
override void CustomRestoreInitialValues ()
 On restore, we restore our initial state.

Protected Attributes

bool _initialState

Properties

override bool HasAutomatedTargetAcquisition [get]

Additional Inherited Members

Detailed Description

This feedback will let you turn the BlocksRaycast parameter of a target CanvasGroup on or off on play.

Member Function Documentation

◆ AutomateTargetAcquisition()

override void MoreMountains.Feedbacks.MMF_CanvasGroupBlocksRaycasts.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_CanvasGroupBlocksRaycasts.CustomPlayFeedback ( Vector3 position,
float feedbacksIntensity = 1::0f )
protected

On play we turn raycast block on or off.

Parameters
position
feedbacksIntensity

◆ CustomRestoreInitialValues()

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

On restore, we restore our initial state.

Reimplemented from MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ _initialState

bool MoreMountains.Feedbacks.MMF_CanvasGroupBlocksRaycasts._initialState
protected

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_CanvasGroupBlocksRaycasts.FeedbackTypeAuthorized = true
static

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

◆ ShouldBlockRaycasts

bool MoreMountains.Feedbacks.MMF_CanvasGroupBlocksRaycasts.ShouldBlockRaycasts = true

if this is true, on play, the target canvas group will block raycasts, if false it won't

◆ TargetCanvasGroup

CanvasGroup MoreMountains.Feedbacks.MMF_CanvasGroupBlocksRaycasts.TargetCanvasGroup

the target canvas group we want to control the BlocksRaycasts parameter on

Property Documentation

◆ HasAutomatedTargetAcquisition

override bool MoreMountains.Feedbacks.MMF_CanvasGroupBlocksRaycasts.HasAutomatedTargetAcquisition
get

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