PlaceholderTextureLayered
Shared dimensions and layers for array and cubemap placeholders.
Base type for PlaceholderTexture2DArray, PlaceholderCubemap and PlaceholderCubemapArray. Construct the concrete type you need. Size stores layer dimensions; Layers is a separate metadata count. Defaults are Size=(1,1), Layers=1; choosing a cubemap type does not create six source images.
GetFormat() returns Rgb8, HasMipmaps() false and GetLayerData() null. The resource describes kind and dimensions rather than original pixels. Size emits Changed and retains an existing placeholder RID. Layers changes without Changed: a listener to that signal alone will miss a layer-count-only edit.
These contracts and RID stability were checked for all three concrete types on Windows/Vulkan. User boundary validation, actual cube-face contents, shader drawing and visual quality were not established.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Properties2
LayersProperty
public int Layers { get; set; }Metadata layer count, initially 1 even on directly constructed PlaceholderCubemap and PlaceholderCubemapArray. The current setter does not emit Changed or upload images. This proves neither cube-face availability nor valid pixel-array contents; the Inspector range is not data validation.
SizeProperty
public Vector2I Size { get; set; }Layer metadata size, initially (1,1). Editing emits Changed and preserves the placeholder RID without creating layer data. One size describes all layers; use positive components.
Methods3
GetSizeVector2I
public Vector2I GetSize();Returns current metadata dimensions without reading pixels.
Vector2IMetadata dimensions, not the amount of returned image data.
SetLayersvoid
public void SetLayers(int layers);Metadata layer count, initially 1 even on directly constructed PlaceholderCubemap and PlaceholderCubemapArray. The current setter does not emit Changed or upload images. This proves neither cube-face availability nor valid pixel-array contents; the Inspector range is not data validation.
| Name | Type | Default |
|---|---|---|
layers | int | — |
layersMetadata layer count, initially 1 even on directly constructed PlaceholderCubemap and PlaceholderCubemapArray. The current setter does not emit Changed or upload images. This proves neither cube-face availability nor valid pixel-array contents; the Inspector range is not data validation.
SetSizevoid
public void SetSize(Vector2I size);Layer metadata size, initially (1,1). Editing emits Changed and preserves the placeholder RID without creating layer data. One size describes all layers; use positive components.
| Name | Type | Default |
|---|---|---|
size | Vector2I | — |
sizeLayer metadata size, initially (1,1). Editing emits Changed and preserves the placeholder RID without creating layer data. One size describes all layers; use positive components.