Skip to content

TextStudioAppearanceMemory

ClassTextStudioTextStudio
public static class TextStudioAppearanceMemory

Accounts payload capacity, not Unity/driver object overhead or the process managed heap. Borrowed textures are reported once and are never owned or destroyed here.

GetStatistics(TextStudioAppearanceResourceKind)

Section titled “GetStatistics(TextStudioAppearanceResourceKind)”
public static TextStudioAppearanceMemorySnapshot GetStatistics(TextStudioAppearanceResourceKind kind)

Returns appearance payload and activity statistics for the supplied resource category.

Parameters

Name Type
kind TextStudio.TextStudioAppearanceResourceKind

Returns

TextStudio.TextStudioAppearanceMemorySnapshot

TrySetBudget(TextStudioAppearanceMemoryBudget)

Section titled “TrySetBudget(TextStudioAppearanceMemoryBudget)”
public static bool TrySetBudget(TextStudioAppearanceMemoryBudget budget)

Attempts to set the owned-payload budget, reclaiming unused resources when current allocations initially exceed the requested limits.

Parameters

Name Type
budget TextStudio.TextStudioAppearanceMemoryBudget

Returns

System.Boolean

public static void ResetStatistics()

Resets peak usage to current ownership, clears activity counters and the last rejection, and retains existing allocations.

public static TextStudioAppearanceMemoryBudget Budget { get; }

Returns

TextStudio.TextStudioAppearanceMemoryBudget

public static TextStudioAppearanceMemorySnapshot Statistics { get; }

Returns

TextStudio.TextStudioAppearanceMemorySnapshot

public static TextStudioAppearanceMemoryRejection LastRejection { get; }

Returns

TextStudio.TextStudioAppearanceMemoryRejection