MarkupAttribute
public struct MarkupAttributeInherits from System.ValueType
See also
Yarn.Markup.LineParser.ParseString
#Properties
#Length
public int Length { get; internal set; }Type Int32
#Name
public string Name { get; internal set; }Type String
#Position
public int Position { get; internal set; }Type Int32
#Properties
public IReadOnlyDictionary<string, MarkupValue> Properties { get; internal set; }Type IReadOnlyDictionary
#Methods
#Shift(int)
shift characters.public readonly MarkupAttribute Shift(int shift)Parameters
shiftintThe number of characters to shift by.
Returns MarkupAttribute: A new MarkupAttribute with an updated Position.
#ToString()
public override readonly string ToString()Returns String
#TryGetProperty(string, bool)
name from this
attribute, if present.public readonly bool TryGetProperty(string name, out bool result)Parameters
namestringThe name of the property.resultboolOn return, the property's value if found, orfalseif not.
Returns Boolean: true if a property named name was found; false
otherwise.
#TryGetProperty(string, float)
name from this
attribute, if present.public bool TryGetProperty(string name, out float result)Parameters
namestringThe name of the property.resultfloatOn return, the property's value if found, or zero if not.
Returns Boolean: true if a property named name was found; false
otherwise.
#TryGetProperty(string, int)
name from this
attribute, if present.public readonly bool TryGetProperty(string name, out int result)Parameters
namestringThe name of the property.resultintOn return, the property's value if found, or zero if not.
Returns Boolean: true if a property named name was found; false
otherwise.
#TryGetProperty(string, MarkupValue)
name from this
attribute, if present.public readonly bool TryGetProperty(string name, out MarkupValue result)Parameters
namestringThe name of the property.resultYarn.Markup.MarkupValueOn return, the property's value if found, or zero if not.
Returns Boolean: true if a property named name was found; false
otherwise.
#TryGetProperty(string, string?)
name from this
attribute, if present.public readonly bool TryGetProperty(string name, [NotNullWhen(true)] out string? result)Parameters
namestringThe name of the property.resultstringOn return, the property's value if found, ornullif not.
Returns Boolean: true if a property named name was found; false
otherwise.
Generated from Yarn Spinner for Unity 3.3.