All pages
Powered by GitBook
1 of 2

Loading...

Loading...

YarnParameterAttribute

Class in Yarn.Unity

Inherits from Attribute

Summary

Yarn parameter.

public class YarnParameterAttribute : Attribute

Properties

Name
Description

Injector

The custom injector for this parameter.

Injector

Property in YarnParameterAttribute

Summary

The custom injector for this parameter.

public string Injector { get; set; }

Remarks

Similar to .

If this is not defined on a parameter, or if the injector is not static or doesn't exist, or returns a type that is not assignable to the parameter's type, then it will be use the default method, which is to search for the game object name, and search for the target component type on that object.

Injector