YarnFunctionAttribute

Class in Yarn.Unity

Inherits from YarnActionAttribute

Summary

Marks the method as a function to be registered with the running instance's library.

public class YarnFunctionAttribute : YarnActionAttribute

Remarks

See Library.RegisterFunction(string, Delegate) and the generic overloads for what is and is not valid.

This will throw an error if you attempt to add a function that has more than 16 parameters, as that is the largest overload that Func<TResult> etc has.

Properties

NameDescription

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.