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

This feedback lets you control video players in all sorts of ways (Play, Pause, Toggle, Stop, Prepare, StepForward, StepBackward, SetPlaybackSpeed, SetDirectAudioVolume, SetDirectAudioMute, GoToFrame, ToggleLoop) More...

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

Public Types

enum  VideoActions {
  VideoActions.Play, VideoActions.Pause, VideoActions.Toggle, VideoActions.Stop,
  VideoActions.Prepare, VideoActions.StepForward, VideoActions.StepBackward, VideoActions.SetPlaybackSpeed,
  VideoActions.SetDirectAudioVolume, VideoActions.SetDirectAudioMute, VideoActions.GoToFrame, VideoActions.ToggleLoop
}
 

Public Attributes

override bool HasAutomatedTargetAcquisition => true
 sets the inspector color for this feedback More...
 
VideoPlayer TargetVideoPlayer
 the Video Player to control with this feedback More...
 
VideoActions VideoAction = VideoActions.Pause
 the Video Player to control with this feedback More...
 
long TargetFrame = 10
 the frame at which to jump when in GoToFrame mode More...
 
float PlaybackSpeed = 2f
 the new playback speed (between 0 and 10) More...
 
int TrackIndex = 0
 the track index on which to control volume More...
 
float Volume = 1f
 the new volume for the specified track, between 0 and 1 More...
 
bool Mute = true
 whether to mute the track or not when that feedback plays 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 apply the selected command to our target video player More...
 

Additional Inherited Members

Detailed Description

This feedback lets you control video players in all sorts of ways (Play, Pause, Toggle, Stop, Prepare, StepForward, StepBackward, SetPlaybackSpeed, SetDirectAudioVolume, SetDirectAudioMute, GoToFrame, ToggleLoop)

Member Enumeration Documentation

◆ VideoActions

Enumerator
Play 
Pause 
Toggle 
Stop 
Prepare 
StepForward 
StepBackward 
SetPlaybackSpeed 
SetDirectAudioVolume 
SetDirectAudioMute 
GoToFrame 
ToggleLoop 

Member Function Documentation

◆ AutomateTargetAcquisition()

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

On play we apply the selected command to our target video player

Parameters
position
feedbacksIntensity

Implements MoreMountains.Feedbacks.MMF_Feedback.

Member Data Documentation

◆ FeedbackTypeAuthorized

bool MoreMountains.Feedbacks.MMF_VideoPlayer.FeedbackTypeAuthorized = true
static

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

◆ HasAutomatedTargetAcquisition

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

sets the inspector color for this feedback

◆ Mute

bool MoreMountains.Feedbacks.MMF_VideoPlayer.Mute = true

whether to mute the track or not when that feedback plays

◆ PlaybackSpeed

float MoreMountains.Feedbacks.MMF_VideoPlayer.PlaybackSpeed = 2f

the new playback speed (between 0 and 10)

◆ TargetFrame

long MoreMountains.Feedbacks.MMF_VideoPlayer.TargetFrame = 10

the frame at which to jump when in GoToFrame mode

◆ TargetVideoPlayer

VideoPlayer MoreMountains.Feedbacks.MMF_VideoPlayer.TargetVideoPlayer

the Video Player to control with this feedback

◆ TrackIndex

int MoreMountains.Feedbacks.MMF_VideoPlayer.TrackIndex = 0

the track index on which to control volume

◆ VideoAction

VideoActions MoreMountains.Feedbacks.MMF_VideoPlayer.VideoAction = VideoActions.Pause

the Video Player to control with this feedback

◆ Volume

float MoreMountains.Feedbacks.MMF_VideoPlayer.Volume = 1f

the new volume for the specified track, between 0 and 1


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