NodeDebugInfo
Contains debug information for a node in a Yarn file.
public class NodeDebugInfoInherits from System.Object
#Nested Types
- LineInfo structContains positional information about an instruction.
#Constructors
#NodeDebugInfo(string?, string)
Initialises a new instance of the NodeDebugInfo class.
public NodeDebugInfo(string? fileName, string nodeName)Parameters
fileNamestringThe file that the node was defined in.nodeNamestringThe name of the node.
#Properties
#FileName
Gets or sets the file that this DebugInfo was produced from.
public string? FileName { get; internal set; }Type String
#IsImplicit
Gets or sets a value indicating whether this node was created by the
compiler.
public bool IsImplicit { get; internal set; }Type Boolean
Nodes that exist in a .yarn file have an IsImplicit
value of
false. Nodes that are generated by the
compiler include smart variable implementations, and node group
'hub' nodes.#NodeName
Gets or sets the node that this DebugInfo was produced from.
public string NodeName { get; internal set; }Type String
#Range
#Methods
#GetLineInfo(int)
Gets a LineInfo object that describes the specified
instruction at the index
instructionNumber.public LineInfo GetLineInfo(int instructionNumber)Parameters
instructionNumberintThe index of the instruction to retrieve information for.
Returns LineInfo: A LineInfo object that describes the position
of the instruction.
Exceptions
System.ArgumentOutOfRangeExceptionThrown wheninstructionNumberis less than zero, or greater than the number of instructions present in the node.
Generated from Yarn Spinner for Unity 3.3.