Pardon our dust! Docs for Yarn Spinner for Unity 3.2 and Yarn Spinner for Godot C# are on docs.yarnspinner.dev (the old docs site). Docs for Yarn Spinner for Unity 3.3 (pre-release, out ASAP), Yarn Spinner for Godot GDScript and Yarn Spinner for Unreal Engine (work in progress) are on /docs/ (the new docs site).

ActionExtensions

Provides a series of extensions and helper methods reflection types and their T:Yarn.Shared.Action (and related) forms.
public static class ActionExtensions

Inherits from System.Object

These are mostly used when performing any runtime analysis and invocation of actions as opposed to the compiletime analysis and invocation.

#Methods

#FullMethodName(MethodInfo)

Given a reflection method info returns a full form string form of the method name
public static string FullMethodName(this MethodInfo method)

Parameters

  • methodMethodInfo
    The methodinfo to convert

Returns String: A string equivalent of the method

#GlobalMethodName(MethodInfo)

Given a reflection method info returns the string global string form of the method name The methodinfo to convert
public static string GlobalMethodName(this MethodInfo methodInfo)

Parameters

  • methodInfoMethodInfo

Returns String: A string equivalent of the method

#ToNamedType(Type)

Converts a runtime Type into a Yarn NamedType
public static NamedType ToNamedType(this Type type)

Parameters

  • typeType
    The type to be converted

Returns NamedType: The Yarn NamedType equivalent

#ToSpecialType(Type)

Given a Type converts it into the Yarn.Shared.YarnSpecialType equivalent
public static YarnSpecialType ToSpecialType(this Type type)

Parameters

  • typeType
    The type to convert

Returns YarnSpecialType: the converted YarnSpecialType

Generated from Yarn Spinner for Unity 3.3.