Search Results for

    Show / Hide Table of Contents

    Class ScriptingEvents

    The helper utility for binding and invoking scripting events (eg. used by Visual Scripting).

    Inheritance
    ScriptingEvents
    Assembly: FlaxEngine.dll
    File: Engine/Scripting/Events.h
    Syntax
    public class ScriptingEvents

    Fields

    Event

    The action called when any scripting event occurs. Can be used to invoke scripting code that binded to this particular event.

    Delegate parameters: event caller instance (null for static events), event invocation parameters list, event type, event name.

    Declaration
    public static Delegate<ScriptingObject* , Span<Variant>, ScriptingTypeHandle, StringView> Event
    Field Value
    Delegate<ScriptingObject , Span<Variant>, ScriptingTypeHandle, StringView>

    EventsTable

    Global table for registered event binder methods (key is pair of type and event name, value is method that takes instance with event, object to bind and flag to bind or unbind).

    Key: pair of event type, event name. Value: event binder function with parameters: event caller instance (null for static events), object to bind, true to bind/false to unbind.

    Declaration
    public static Dictionary<Pair<ScriptingTypeHandle, StringView>, void(*)(ScriptingObject* , void* , bool)> EventsTable
    Field Value
    Dictionary<Pair<ScriptingTypeHandle, StringView>, void()(ScriptingObject , void , bool)>

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat