TextStudioAppearanceMemory
public static class TextStudioAppearanceMemoryAccounts payload capacity, not Unity/driver object overhead or the process managed heap. Borrowed textures are reported once and are never owned or destroyed here.
Methods
Section titled “Methods”
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
ResetStatistics()
Section titled “ResetStatistics()”public static void ResetStatistics()Resets peak usage to current ownership, clears activity counters and the last rejection, and retains existing allocations.
Properties
Section titled “Properties”
Budget
Section titled “Budget”public static TextStudioAppearanceMemoryBudget Budget { get; }Returns
TextStudio.TextStudioAppearanceMemoryBudget
Statistics
Section titled “Statistics”public static TextStudioAppearanceMemorySnapshot Statistics { get; }Returns
TextStudio.TextStudioAppearanceMemorySnapshot
LastRejection
Section titled “LastRejection”public static TextStudioAppearanceMemoryRejection LastRejection { get; }Returns
TextStudio.TextStudioAppearanceMemoryRejection