ActionExtensions
Provides a series of extensions and helper methods reflection types and their T:Yarn.Shared.Action (and related) forms.
public static class ActionExtensionsInherits 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
methodMethodInfoThe 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
typeTypeThe 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
typeTypeThe type to convert
Returns YarnSpecialType: the converted YarnSpecialType
Generated from Yarn Spinner for Unity 3.3.