LineProviderBehaviour

Class in Yarn.Unity

Inherits from MonoBehaviour

Summary

A MonoBehaviour that produces LocalizedLine s.

public abstract class LineProviderBehaviour : MonoBehaviour

Remarks

DialogueRunner s use a LineProviderBehaviour to get LocalizedLine s, which contain the localized information that DialogueViewBase classes use to present content to the player.

Subclasses of this abstract class may return subclasses of LocalizedLine . For example, AudioLineProvider returns an AudioLocalizedLine , which includes AudioClip ; views that make use of audio can then access this additional data.

Fields

Name
Description

Methods

Name
Description

Prepares and returns a LocalizedLine from the specified Yarn.Line .

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

Called by Unity when the LineProviderBehaviour has first appeared in the scene.

Properties

Name
Description

Gets a value indicating whether this line provider is ready to provide LocalizedLine objects. The default implementation returns true .

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.