Skip to content

TextStudioReactionRecipe

StructTextStudioTextStudio
public struct TextStudioReactionRecipe

Renderer-neutral reaction configuration selected by a host or behavior profile.

public TextStudioReactionSource Source

Returns

TextStudio.TextStudioReactionSource

public string BuiltInPresetId

Returns

System.String

public TextStudioReactionAsset CustomAsset

Returns

TextStudio.TextStudioReactionAsset

public TextStudioReactionLayer[] InlineLayers

Returns

TextStudio.TextStudioReactionLayer[]

public static TextStudioReactionRecipe BuiltIn(string presetId)

Creates a built-in recipe reference, using the default preset when the supplied identifier is empty.

Parameters

Name Type
presetId System.String

Returns

TextStudio.TextStudioReactionRecipe

public static TextStudioReactionRecipe Custom(TextStudioReactionAsset asset)

Creates a reaction recipe referencing the supplied custom asset.

Parameters

Name Type
asset TextStudio.TextStudioReactionAsset

Returns

TextStudio.TextStudioReactionRecipe

Inline(TextStudioReactionLayer[], int, uint)

Section titled “Inline(TextStudioReactionLayer[], int, uint)”
public static TextStudioReactionRecipe Inline(TextStudioReactionLayer[] layers, int capacity = 64, uint seed = 1)

Creates an inline recipe from the supplied layer array, clamping response capacity and normalizing its seed.

Parameters

Name Type
layers TextStudio.TextStudioReactionLayer[]
capacity System.Int32
seed System.UInt32

Returns

TextStudio.TextStudioReactionRecipe

public bool Equals(TextStudioReactionRecipe other)

Parameters

Name Type
other TextStudio.TextStudioReactionRecipe

Returns

System.Boolean

public override bool Equals(object obj)

Parameters

Name Type
obj System.Object

Returns

System.Boolean

public override int GetHashCode()

Returns

System.Int32

public int InlineCapacity { get; }

Returns

System.Int32

public uint InlineSeed { get; }

Returns

System.UInt32

public uint Seed { get; }

Returns

System.UInt32

public static TextStudioReactionRecipe None { get; }

Returns

TextStudio.TextStudioReactionRecipe