C# Class Cutscene, silverscreen

Inheritance: MonoBehaviour
Afficher le fichier Open project: mminer/silverscreen Class Usage Examples

Méthodes publiques

Свойство Type Description
duration float
inPoint float
outPoint float
player GameObject
stopPlayer bool
subtitlePosition Rect
subtitleStyle GUIStyle

Méthodes publiques

Méthode Description
AddTrack ( Cutscene, type ) : CutsceneTrack,

Attaches a new track component to the cutscene.

DisableAudio ( ) : void

Keeps all child audio sources from playing once the game starts.

DisableCameras ( ) : void

Turns off all child cameras so that they don't display before the cutscene starts.

DisableOtherCameras ( Camera exemptCam ) : void

Turns off all child cameras except for the one specified.

NewActor ( AnimationClip anim, GameObject go ) : CutsceneActor

Creates a new CutsceneActor object and attaches it to a new game object as a child of the Shots game object.

NewAudio ( AudioClip clip ) : CutsceneAudio

Creates a new CutsceneAudio object and attaches it to a new game object as a child of the Audio game object.

NewShot ( ) : CutsceneShot

Creates a new CutsceneShot object and attaches it to a new game object as a child of the Shots game object.

NewSubtitle ( string dialog ) : CutsceneSubtitle

Creates a new CutsceneSubtitle object and attaches it to the Subtitles game object.

OnDrawGizmos ( ) : void

Visually shows the cutscene in the scene view.

OnGUI ( ) : void
PauseCutscene ( ) : void

Pauses the cutscene.

PlayActor ( CutsceneClip clip ) : void

Plays the specified actor.

PlayAudio ( CutsceneClip clip ) : void

Plays the specified audio.

PlayCutscene ( ) : void

Starts playing the cutscene.

PlayShot ( CutsceneClip clip ) : void

Shows the specified shot.

PlaySubtitle ( CutsceneClip clip ) : void

Displays the specified subtitle.

SceneFinish ( ) : void

Called when the scene ends.

SceneStart ( ) : void

Called when the scene starts.

SetupMasterAnimationClip ( ) : void

Sets the in and out points of the master animation clip.

SetupTrackAnimationClips ( ) : void

Adds each track's animation clip to the main animation.

Start ( ) : void
StopSubtitle ( ) : void

Stops all subtitles from displaying by setting the current subtitle to null.

UnknownFunction ( CutsceneClip clip ) : void

Called when the clip type is unknown.

For debugging only; ideally this will never be called.

Private Methods

Méthode Description
StopActor ( CutsceneActor actor, float duration ) : IEnumerator

Stops the actor from playing at its out point.

StopAudio ( AudioSource aud, float duration ) : IEnumerator

Stops the audio from playing at its out point.

StopShot ( Camera cam, float duration ) : IEnumerator

Stops the shot from playing at its out point.

StopSubtitle ( float duration ) : IEnumerator

Stops the subtitle from displaying at its out point.

Method Details

AddTrack() public méthode

Attaches a new track component to the cutscene.
public AddTrack ( Cutscene, type ) : CutsceneTrack,
type Cutscene,
Résultat CutsceneTrack,

DisableAudio() public méthode

Keeps all child audio sources from playing once the game starts.
public DisableAudio ( ) : void
Résultat void

DisableCameras() public méthode

Turns off all child cameras so that they don't display before the cutscene starts.
public DisableCameras ( ) : void
Résultat void

DisableOtherCameras() public méthode

Turns off all child cameras except for the one specified.
public DisableOtherCameras ( Camera exemptCam ) : void
exemptCam Camera The camera to stay enabled.
Résultat void

NewActor() public méthode

Creates a new CutsceneActor object and attaches it to a new game object as a child of the Shots game object.
public NewActor ( AnimationClip anim, GameObject go ) : CutsceneActor
anim AnimationClip
go GameObject
Résultat CutsceneActor

NewAudio() public méthode

Creates a new CutsceneAudio object and attaches it to a new game object as a child of the Audio game object.
public NewAudio ( AudioClip clip ) : CutsceneAudio
clip AudioClip The audio clip to be attached the CutsceneAudio object.
Résultat CutsceneAudio

NewShot() public méthode

Creates a new CutsceneShot object and attaches it to a new game object as a child of the Shots game object.
public NewShot ( ) : CutsceneShot
Résultat CutsceneShot

NewSubtitle() public méthode

Creates a new CutsceneSubtitle object and attaches it to the Subtitles game object.
public NewSubtitle ( string dialog ) : CutsceneSubtitle
dialog string The dialog to be displayed.
Résultat CutsceneSubtitle

OnDrawGizmos() public méthode

Visually shows the cutscene in the scene view.
public OnDrawGizmos ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

PauseCutscene() public méthode

Pauses the cutscene.
public PauseCutscene ( ) : void
Résultat void

PlayActor() public méthode

Plays the specified actor.
public PlayActor ( CutsceneClip clip ) : void
clip CutsceneClip
Résultat void

PlayAudio() public méthode

Plays the specified audio.
public PlayAudio ( CutsceneClip clip ) : void
clip CutsceneClip
Résultat void

PlayCutscene() public méthode

Starts playing the cutscene.
public PlayCutscene ( ) : void
Résultat void

PlayShot() public méthode

Shows the specified shot.
public PlayShot ( CutsceneClip clip ) : void
clip CutsceneClip
Résultat void

PlaySubtitle() public méthode

Displays the specified subtitle.
public PlaySubtitle ( CutsceneClip clip ) : void
clip CutsceneClip
Résultat void

SceneFinish() public méthode

Called when the scene ends.
public SceneFinish ( ) : void
Résultat void

SceneStart() public méthode

Called when the scene starts.
public SceneStart ( ) : void
Résultat void

SetupMasterAnimationClip() public méthode

Sets the in and out points of the master animation clip.
public SetupMasterAnimationClip ( ) : void
Résultat void

SetupTrackAnimationClips() public méthode

Adds each track's animation clip to the main animation.
public SetupTrackAnimationClips ( ) : void
Résultat void

Start() public méthode

public Start ( ) : void
Résultat void

StopSubtitle() public méthode

Stops all subtitles from displaying by setting the current subtitle to null.
public StopSubtitle ( ) : void
Résultat void

UnknownFunction() public méthode

Called when the clip type is unknown.
For debugging only; ideally this will never be called.
public UnknownFunction ( CutsceneClip clip ) : void
clip CutsceneClip
Résultat void

Property Details

duration public_oe property

public float duration
Résultat float

inPoint public_oe property

public float inPoint
Résultat float

outPoint public_oe property

public float outPoint
Résultat float

player public_oe property

public GameObject player
Résultat GameObject

stopPlayer public_oe property

public bool stopPlayer
Résultat bool

subtitlePosition public_oe property

public Rect subtitlePosition
Résultat Rect

subtitleStyle public_oe property

public GUIStyle subtitleStyle
Résultat GUIStyle