IdaJS
    Preparing search index...

    Type Alias UserTextFunction

    UserTextFunction: () => UserText

    A function that returns a UserText entity.

    Can be passed instead of UserText to provide dynamic text content, that depends on some conditions.

    This is not needed in the life handlers, since there you already can use text.update on every call to change the text dynamically.

    This is useful for the text zones on the scene, since the text zone can be only setup with the text ID once in the SceneEvents.afterLoadScene event, but then it returns the same text always. To make it more dynamic (for example, display a randomized text), create a text entity with this function instead.

    Type Declaration