Skip to content

TextStudio2DStyleCompiler

ClassTextStudioTextStudio
public static class TextStudio2DStyleCompiler

Compiles persistent 2D style assets into one shared backend-neutral plan.

Compile(TextStudio2DStyleAsset, TextStudio2DCompileContext)

Section titled “Compile(TextStudio2DStyleAsset, TextStudio2DCompileContext)”
public static CompiledTextStudio2DStyle Compile(TextStudio2DStyleAsset style, TextStudio2DCompileContext context)

Compiles a style asset and its inherited layers for the supplied renderer capabilities and compilation limits.

Parameters

Name Type
style TextStudio.TextStudio2DStyleAsset
context TextStudio.TextStudio2DCompileContext

Returns

TextStudio.CompiledTextStudio2DStyle

public static CompiledTextStudio2DStyle Compile(in TextStudio2DStyleSettings settings)

Compiles component-owned settings through the same appearance pipeline as assets.

Parameters

Name Type
settings TextStudio.TextStudio2DStyleSettings

Returns

TextStudio.CompiledTextStudio2DStyle

Compile(in TextStudio2DStyleSettings, TextStudio2DCompileContext)

Section titled “Compile(in TextStudio2DStyleSettings, TextStudio2DCompileContext)”
public static CompiledTextStudio2DStyle Compile(in TextStudio2DStyleSettings settings, TextStudio2DCompileContext context)

Compiles component-owned style settings for the supplied renderer capabilities and compilation limits.

Parameters

Name Type
settings TextStudio.TextStudio2DStyleSettings
context TextStudio.TextStudio2DCompileContext

Returns

TextStudio.CompiledTextStudio2DStyle

public static CompiledTextStudio2DStyle Compile(TextStudio2DStyleAsset style)

Compiles a style asset and its inherited layers using the full renderer capability context.

Parameters

Name Type
style TextStudio.TextStudio2DStyleAsset

Returns

TextStudio.CompiledTextStudio2DStyle

ClassifyChanges(CompiledTextStudio2DStyle, CompiledTextStudio2DStyle)

Section titled “ClassifyChanges(CompiledTextStudio2DStyle, CompiledTextStudio2DStyle)”
public static TextStudioStackChange ClassifyChanges(CompiledTextStudio2DStyle previous, CompiledTextStudio2DStyle current)

Classifies the invalidation required when changing from one compiled appearance program to another.

Parameters

Name Type
previous TextStudio.CompiledTextStudio2DStyle
current TextStudio.CompiledTextStudio2DStyle

Returns

TextStudio.TextStudioStackChange

ComputeDependencyRevision(TextStudio2DStyleAsset)

Section titled “ComputeDependencyRevision(TextStudio2DStyleAsset)”
public static ulong ComputeDependencyRevision(TextStudio2DStyleAsset style)

Computes a revision hash from a style, its inherited base styles, and their referenced paint dependencies.

Parameters

Name Type
style TextStudio.TextStudio2DStyleAsset

Returns

System.UInt64