CompressedTexture3D
Imported Texture3D volume from .ctex3d.
CompressedTexture3D stores a volume prepared by the 3D importer. The checked 16×8 atlas split into two horizontal slices became an 8×8×2 volume without mipmaps. It is not a Texture2DArray: depth is a volume coordinate. Use ResourceLoader for the source atlas’s project path and Load for the internal .ctex3d.
LoadPath invokes the same Load without returning Error; GetLoadPath identifies the last successfully read imported file. Direct Load does not change ResourcePath. Reload preserves RID and emits Changed. GetData reads slice images; editing a returned Image does not upload it back to the resource.
Two-slice Lossless import, dimensions, GetData and reload were checked on Windows/Vulkan. Mipmapped volumes, VRAM/Basis/Lossy, all formats, shader sampling, performance and visual quality were not tested. Supply the matching import type rather than relying only on Inspector’s file-filter extension.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
CompressedTexture3DConstructor
public CompressedTexture3D();Creates an unloaded volume texture with zero dimensions and empty LoadPath. GetRid can create a placeholder; load a valid imported .ctex3d before using the volume.
Properties1
LoadPathProperty
public string LoadPath { get; set; }Reading returns the imported path; assigning invokes Load but the setter does not return its Error. Call Load explicitly to handle the result. Expects .ctex3d, not a source PNG/JPEG. Do not base asset identity on changeable hashed import-cache paths.
Methods2
GetLoadPathstring
public string GetLoadPath();Returns the last successfully read imported-file path. Not necessarily the source PNG ResourcePath and not a new image import.
stringStored imported-file path, or empty before loading.
LoadError
public Error Load(string path);Reads imported-file data .ctex3d and updates this instance’s GPU data. Does not import arbitrary images: load ordinary project PNG/JPEG assets through ResourceLoader. Successful reload preserves the RID and emits Changed even for the same path. Does not reassign ResourcePath. Check the returned Error and diagnostics.
| Name | Type | Default |
|---|---|---|
path | string | — |
pathExisting matching imported-file path .ctex3d; not a source PNG path.
ErrorResult Error. Check Error.Ok and resource state; this is not a visual-quality test.