Table of Contents

Class ScriptableEvent

Namespace
Gasimo.Subtitles
Assembly
Gasimo.Subtitler.dll

Object which you can bind custom events to. Use it by creating an ScriptableObject for every instance of events you want to use. To subscribe, use onEventRaised. To raise, use Raise(). Subtitles automatically calls Raise() when you attach instance of this class to a Subtitle line.

[CreateAssetMenu(fileName = "ScriptableEvent", menuName = "Gasimo/Subtitler/ScriptableEvent")]
[Serializable]
public class ScriptableEvent : ScriptableObject
Inheritance
Object
ScriptableObject
ScriptableEvent

Fields

onEventRaised

public UnityAction onEventRaised

Field Value

UnityAction

Methods

Raise()

Invokes events subscribed to onEventRaised.

public void Raise()