Property in YarnCommandAttribute


Override the state injector for this command only.

public string Injector { get; set; }


If not defined, will use the method marked by YarnStateInjectorAttribute on the class, or if that is not defined and the class subclasses UnityEngine.MonoBehaviour, using UnityEngine.GameObject.Find(System.String).

If none of those conditions are true, but the function is not static, an error will be thrown. However, if the function is indeed static, this parameter will be ignored.

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.