LineProviderBehaviour

Class in Yarn.Unity

Inherits from UnityEngine.MonoBehaviour

Summary

A UnityEngine.MonoBehaviour that produces LocalizedLine s, for use in Dialogue Views.

public abstract class LineProviderBehaviour : MonoBehaviour, ILineProvider

Remarks

DialogueRunner s use a LineProviderBehaviour to get LocalizedLine s, which contain the localized information that is presented to the player through dialogue views.

Methods

Name
Description

Removes all marker processors that handle markers named attributeName .

Signals to the line provider that lines with the provided line IDs may be presented shortly.

Adds a new marker processor to the line provider.

Properties

Name
Description

Gets the user's current locale identifier, as a BCP-47 code.

See Also

  • DialogueViewBase: Implements the Yarn Spinner 2 callback-based API for dialogue views using Yarn Spinner 3.

Last updated

Yarn Spinner® and Secret Lab® are trade marks of Secret Lab Pty. Ltd., and are used by Yarn Spinner Pty. Ltd. under license.