Class DynamicAtlasSettings
Contains the settings used by the dynamic atlas system.
Namespace: UnityEngine.UIElements
Syntax
public class DynamicAtlasSettings : object
Properties
activeFilters
Defines the filters that the dynamic atlas system uses to exclude textures from the texture atlas.
Declaration
public DynamicAtlasFilters activeFilters { get; set; }
Property Value
Type | Description |
---|---|
DynamicAtlasFilters |
Remarks
When you assign a delegate to the atlas's custom filter, activeFilters is passed to the custom filter.
customFilter
When a delegate is assigned, the dynamic atlas system calls it to determine whether or not a texture can be added to the atlas.
Declaration
public DynamicAtlasCustomFilter customFilter { get; set; }
Property Value
Type | Description |
---|---|
DynamicAtlasCustomFilter |
defaultFilters
Default filters for a dynamic atlas.
Declaration
public static DynamicAtlasFilters defaultFilters { get; }
Property Value
Type | Description |
---|---|
DynamicAtlasFilters |
defaults
Specifies default values used to initialize the structure.
Declaration
public static DynamicAtlasSettings defaults { get; }
Property Value
Type | Description |
---|---|
DynamicAtlasSettings |
maxAtlasSize
Specifies the maximum size (width/height) of the atlas texture, in pixels. This value must be a power of two, and must be greater than or equal to minAtlasSize.
Declaration
public int maxAtlasSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
maxSubTextureSize
Specifies the maximum size (width/height) of a texture that can be added to the atlas. When activeFilters contains Size, textures larger than this size are excluded from the atlas. Otherwise, this value is not used.
Declaration
public int maxSubTextureSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
minAtlasSize
Specifies the minimum size (width/height) of the atlas texture, in pixels. This value must be a power of two, and must be greater than 0 and less than or equal to maxAtlasSize.
Declaration
public int minAtlasSize { get; set; }
Property Value
Type | Description |
---|---|
Int32 |