This site is for Yarn Spinner v1, and won't be updated. Go to the current site.

Library Class

A collection of functions that can be called from Yarn programs.

public class Library

Remarks

You do not create instances of this class yourself. The Dialogue class creates one of its own, which you can access via the library property.

Methods

Name Description
DeregisterFunction(String) Removes a function from the Library.
FunctionExists(String) Gets a value indicating whether this Library contains a function named name.
GetFunction(String) Returns a FunctionInfo with a given name.
ImportLibrary(Library) Loads functions from another Library.
RegisterFunction(String, Int32, Function) Registers a new function that returns a value, which can be called from a Yarn program.
RegisterFunction(String, Int32, ReturningFunction) Registers a new function that returns a value, which can be called from a Yarn program.

See Also

Source

Defined in YarnSpinner/Library.cs, line 164.