Inheritance #
- AudioServer
- CameraServer
- ClassDB
- DisplayServer
- EditorFileSystemDirectory
- EditorInterface
- EditorPaths
- EditorSelection
- EditorUndoRedoManager
- EditorVCSInterface
- Engine
- EngineDebugger
- FramebufferCacheRD
- GDExtensionManager
- Geometry2D
- Geometry3D
- IP
- Input
- InputMap
- JNISingleton
- JSONRPC
- JavaClassWrapper
- JavaScriptBridge
- MainLoop (1)
- Marshalls
- MovieWriter
- NativeMenu
- NavigationMeshGenerator
- NavigationServer2D
- NavigationServer3D
- Node (21)
- OS
- OpenXRExtensionWrapperExtension
- OpenXRInteractionProfileMetadata
- Performance
- PhysicsDirectBodyState2D (1)
- PhysicsDirectBodyState3D (1)
- PhysicsDirectSpaceState2D (1)
- PhysicsDirectSpaceState3D (1)
- PhysicsServer2D (1)
- PhysicsServer2DManager
- PhysicsServer3D (1)
- PhysicsServer3DManager
- PhysicsServer3DRendering
ServerHandler
- ProjectSettings
- RefCounted (121)
- RenderData (2)
- RenderSceneData (2)
- RenderingDevice
- RenderingServer
- ResourceLoader
- ResourceSaver
- ResourceUID
- ScriptLanguage (1)
- ShaderIncludeDB
- TextServerManager
- ThemeDB
- TileData
- Time
- TranslationServer
- TreeItem
- UndoRedo
- UniformSetCacheRD
- WorkerThreadPool
- XRServer
- XRVRS
- AESContext
- AStar2D
- AStar3D
- AStarGrid2D
- AudioEffectInstance (1)
- AudioSample
- AudioSamplePlayback
- AudioStreamPlayback (5)
- CameraFeed
- CharFXTransform
- ConfigFile
- Crypto
- DTLSServer
- DirAccess
- ENetConnection
- EditorContextMenuPlugin
- EditorDebuggerPlugin
- EditorDebuggerSession
- EditorExportPlatform (6)
- EditorExportPlugin
- EditorExportPreset
- EditorFeatureProfile
- EditorFileSystemImportFormatSupportQuery
- EditorInspectorPlugin
- EditorResourceConversionPlugin
- EditorResourcePreviewGenerator
- EditorResourceTooltipPlugin
- EditorSceneFormatImporter (4)
- EditorScenePostImport
- EditorScenePostImportPlugin
- EditorScript
- EditorTranslationParserPlugin
- EncodedObjectAsID
- EngineProfiler
- Expression
- FileAccess
- GLTFObjectModelProperty
- HMACContext
- HTTPClient
- HashingContext
- ImageFormatLoader (1)
- JavaClass
- JavaObject
- JavaScriptObject
- KinematicCollision2D
- KinematicCollision3D
- Lightmapper (1)
- MeshConvexDecompositionSettings
- MeshDataTool
- MultiplayerAPI (2)
- Mutex
- NavigationPathQueryParameters2D
- NavigationPathQueryParameters3D
- NavigationPathQueryResult2D
- NavigationPathQueryResult3D
- Node3DGizmo (1)
- OggPacketSequencePlayback
- OpenXRAPIExtension
- PCKPacker
- PackedDataContainerRef
- PacketPeer (8)
- PhysicsPointQueryParameters2D
- PhysicsPointQueryParameters3D
- PhysicsRayQueryParameters2D
- PhysicsRayQueryParameters3D
- PhysicsShapeQueryParameters2D
- PhysicsShapeQueryParameters3D
- PhysicsTestMotionParameters2D
- PhysicsTestMotionParameters3D
- PhysicsTestMotionResult2D
- PhysicsTestMotionResult3D
- RDAttachmentFormat
- RDFramebufferPass
- RDPipelineColorBlendState
- RDPipelineColorBlendStateAttachment
- RDPipelineDepthStencilState
- RDPipelineMultisampleState
- RDPipelineRasterizationState
- RDPipelineSpecializationConstant
- RDSamplerState
- RDShaderSource
- RDTextureFormat
- RDTextureView
- RDUniform
- RDVertexAttribute
- RandomNumberGenerator
- RegEx
- RegExMatch
- RenderSceneBuffers (2)
- RenderSceneBuffersConfiguration
- Resource (103)
- ResourceFormatLoader
- ResourceFormatSaver
- ResourceImporter (16)
- SceneState
- SceneTreeTimer
- Semaphore
- SkinReference
- StreamPeer (5)
- SurfaceTool
- TCPServer
- TLSOptions
- TextLine
- TextParagraph
- TextServer (1)
- Thread
- TranslationDomain
- TriangleMesh
- Tween
- Tweener (5)
- UDPServer
- UPNP
- UPNPDevice
- WeakRef
- WebRTCPeerConnection (1)
- XMLParser
- XRInterface (4)
- XRPose
- XRTracker (2)
- ZIPPacker
- ZIPReader
- Animation
- AnimationLibrary
- AnimationNode (6)
- AnimationNodeStateMachinePlayback
- AnimationNodeStateMachineTransition
- AudioBusLayout
- AudioEffect (17)
- AudioStream (10)
- BitMap
- BoneMap
- ButtonGroup
- CameraAttributes (2)
- ColorPalette
- Compositor
- CompositorEffect
- CryptoKey
- Curve
- Curve2D
- Curve3D
- EditorNode3DGizmoPlugin
- EditorSettings
- Environment
- Font (3)
- GDExtension
- GLTFAccessor
- GLTFAnimation
- GLTFBufferView
- GLTFCamera
- GLTFDocument (1)
- GLTFDocumentExtension (1)
- GLTFLight
- GLTFMesh
- GLTFNode
- GLTFPhysicsBody
- GLTFPhysicsShape
- GLTFSkeleton
- GLTFSkin
- GLTFSpecGloss
- GLTFState (1)
- GLTFTexture
- GLTFTextureSampler
- Gradient
- Image
- ImporterMesh
- InputEvent (6)
- JSON
- LabelSettings
- LightmapGIData
- Material (9)
- Mesh (4)
- MeshLibrary
- MissingResource
- MultiMesh
- NavigationMesh
- NavigationMeshSourceGeometryData2D
- NavigationMeshSourceGeometryData3D
- NavigationPolygon
- Noise (1)
- Occluder3D (5)
- OccluderPolygon2D
- OggPacketSequence
- OpenXRAction
- OpenXRActionMap
- OpenXRActionSet
- OpenXRBindingModifier (2)
- OpenXRHapticBase (1)
- OpenXRIPBinding
- OpenXRInteractionProfile
- PackedDataContainer
- PackedScene
- PhysicsMaterial
- PolygonPathFinder
- RDShaderFile
- RDShaderSPIRV
- RichTextEffect
- SceneReplicationConfig
- Script (3)
- Shader (1)
- ShaderInclude
- Shape2D (8)
- Shape3D (9)
- Shortcut
- SkeletonModification2D (7)
- SkeletonModificationStack2D
- SkeletonProfile (1)
- Skin
- Sky
- SpriteFrames
- StyleBox (4)
- SyntaxHighlighter (2)
- Texture (3)
- Theme
- TileMapPattern
- TileSet
- TileSetSource (2)
- Translation (1)
- VideoStream (1)
- VideoStreamPlayback
- VisualShaderNode (62)
- VoxelGIData
- World2D
- World3D
- X509Certificate
Table of contents
-
var accessor_type = TYPE_SCALAR -
var buffer_view: int = -1 -
var byte_offset: int = 0 -
var component_type: int = 0 -
var count: int = 0 -
var max: PackedFloat64Array = PackedFloat64Array() -
var min: PackedFloat64Array = PackedFloat64Array() -
var normalized: bool = false -
var sparse_count: int = 0 -
var sparse_indices_buffer_view: int = 0 -
var sparse_indices_byte_offset: int = 0 -
var sparse_indices_component_type: int = 0 -
var sparse_values_buffer_view: int = 0 -
var sparse_values_byte_offset: int = 0 -
var type: int -
const TYPE_SCALAR = 0 enum GLTFAccessorType -
const TYPE_VEC2 = 1 enum GLTFAccessorType -
const TYPE_VEC3 = 2 enum GLTFAccessorType -
const TYPE_VEC4 = 3 enum GLTFAccessorType -
const TYPE_MAT2 = 4 enum GLTFAccessorType -
const TYPE_MAT3 = 5 enum GLTFAccessorType -
const TYPE_MAT4 = 6 enum GLTFAccessorType -
const COMPONENT_TYPE_NONE = 0 enum GLTFComponentType -
const COMPONENT_TYPE_SIGNED_BYTE = 5120 enum GLTFComponentType -
const COMPONENT_TYPE_UNSIGNED_BYTE = 5121 enum GLTFComponentType -
const COMPONENT_TYPE_SIGNED_SHORT = 5122 enum GLTFComponentType -
const COMPONENT_TYPE_UNSIGNED_SHORT = 5123 enum GLTFComponentType -
const COMPONENT_TYPE_SIGNED_INT = 5124 enum GLTFComponentType -
const COMPONENT_TYPE_UNSIGNED_INT = 5125 enum GLTFComponentType -
const COMPONENT_TYPE_SINGLE_FLOAT = 5126 enum GLTFComponentType -
const COMPONENT_TYPE_DOUBLE_FLOAT = 5130 enum GLTFComponentType -
const COMPONENT_TYPE_HALF_FLOAT = 5131 enum GLTFComponentType -
const COMPONENT_TYPE_SIGNED_LONG = 5134 enum GLTFComponentType -
const COMPONENT_TYPE_UNSIGNED_LONG = 5135 enum GLTFComponentType -
enum GLTFAccessorType -
enum GLTFComponentType
GLTFAccessor #
is_refcounted, is_instantiable, resource, core, not_builtin_classes
Represents a glTF accessor.
GLTFAccessor is a data structure representing a glTF accessor that would be found in the "accessors" array. A buffer is a blob of binary data. A buffer view is a slice of a buffer. An accessor is a typed interpretation of the data in a buffer view.
Most custom data stored in glTF does not need accessors, only buffer views (see GLTFBufferView). Accessors are for more advanced use cases such as interleaved mesh data encoded for the GPU.
Members #
var accessor_type = TYPE_SCALAR#
The glTF accessor type as an enum. Possible values are 0 for "SCALAR", 1 for "VEC2", 2 for "VEC3", 3 for "VEC4", 4 for "MAT2", 5 for "MAT3", and 6 for "MAT4".
var buffer_view: int = -1#
The index of the buffer view this accessor is referencing. If -1, this accessor is not referencing any buffer view.
var byte_offset: int = 0#
The offset relative to the start of the buffer view in bytes.
var component_type: int = 0#
The glTF component type as an enum. See GLTFComponentType for possible values. Within the core glTF specification, a value of 5125 or "UNSIGNED_INT" must not be used for any accessor that is not referenced by mesh.primitive.indices.
var count: int = 0#
The number of elements referenced by this accessor.
var max: PackedFloat64Array = PackedFloat64Array()#
Maximum value of each component in this accessor.
var min: PackedFloat64Array = PackedFloat64Array()#
Minimum value of each component in this accessor.
var normalized: bool = false#
Specifies whether integer data values are normalized before usage.
var sparse_count: int = 0#
Number of deviating accessor values stored in the sparse array.
var sparse_indices_buffer_view: int = 0#
The index of the buffer view with sparse indices. The referenced buffer view MUST NOT have its target or byteStride properties defined. The buffer view and the optional byteOffset MUST be aligned to the componentType byte length.
var sparse_indices_byte_offset: int = 0#
The offset relative to the start of the buffer view in bytes.
var sparse_indices_component_type: int = 0#
The indices component data type as an enum. Possible values are 5121 for "UNSIGNED_BYTE", 5123 for "UNSIGNED_SHORT", and 5125 for "UNSIGNED_INT".
var sparse_values_buffer_view: int = 0#
The index of the bufferView with sparse values. The referenced buffer view MUST NOT have its target or byteStride properties defined.
var sparse_values_byte_offset: int = 0#
The offset relative to the start of the bufferView in bytes.
var type: int#
The glTF accessor type as an enum. Use accessor_type instead.
Methods #
Annotations #
Constants #
const TYPE_SCALAR = 0 enum GLTFAccessorType#
Accessor type "SCALAR". For the glTF object model, this can be used to map to a single float, int, or bool value, or a float array.
const TYPE_VEC2 = 1 enum GLTFAccessorType#
Accessor type "VEC2". For the glTF object model, this maps to "float2", represented in the glTF JSON as an array of two floats.
const TYPE_VEC3 = 2 enum GLTFAccessorType#
Accessor type "VEC3". For the glTF object model, this maps to "float3", represented in the glTF JSON as an array of three floats.
const TYPE_VEC4 = 3 enum GLTFAccessorType#
Accessor type "VEC4". For the glTF object model, this maps to "float4", represented in the glTF JSON as an array of four floats.
const TYPE_MAT2 = 4 enum GLTFAccessorType#
Accessor type "MAT2". For the glTF object model, this maps to "float2x2", represented in the glTF JSON as an array of four floats.
const TYPE_MAT3 = 5 enum GLTFAccessorType#
Accessor type "MAT3". For the glTF object model, this maps to "float3x3", represented in the glTF JSON as an array of nine floats.
const TYPE_MAT4 = 6 enum GLTFAccessorType#
Accessor type "MAT4". For the glTF object model, this maps to "float4x4", represented in the glTF JSON as an array of sixteen floats.
const COMPONENT_TYPE_NONE = 0 enum GLTFComponentType#
Component type "NONE". This is not a valid component type, and is used to indicate that the component type is not set.
const COMPONENT_TYPE_SIGNED_BYTE = 5120 enum GLTFComponentType#
Component type "BYTE". The value is 0x1400 which comes from OpenGL. This indicates data is stored in 1-byte or 8-bit signed integers. This is a core part of the glTF specification.
const COMPONENT_TYPE_UNSIGNED_BYTE = 5121 enum GLTFComponentType#
Component type "UNSIGNED_BYTE". The value is 0x1401 which comes from OpenGL. This indicates data is stored in 1-byte or 8-bit unsigned integers. This is a core part of the glTF specification.
const COMPONENT_TYPE_SIGNED_SHORT = 5122 enum GLTFComponentType#
Component type "SHORT". The value is 0x1402 which comes from OpenGL. This indicates data is stored in 2-byte or 16-bit signed integers. This is a core part of the glTF specification.
const COMPONENT_TYPE_UNSIGNED_SHORT = 5123 enum GLTFComponentType#
Component type "UNSIGNED_SHORT". The value is 0x1403 which comes from OpenGL. This indicates data is stored in 2-byte or 16-bit unsigned integers. This is a core part of the glTF specification.
const COMPONENT_TYPE_SIGNED_INT = 5124 enum GLTFComponentType#
Component type "INT". The value is 0x1404 which comes from OpenGL. This indicates data is stored in 4-byte or 32-bit signed integers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including KHR_interactivity.
const COMPONENT_TYPE_UNSIGNED_INT = 5125 enum GLTFComponentType#
Component type "UNSIGNED_INT". The value is 0x1405 which comes from OpenGL. This indicates data is stored in 4-byte or 32-bit unsigned integers. This is a core part of the glTF specification.
const COMPONENT_TYPE_SINGLE_FLOAT = 5126 enum GLTFComponentType#
Component type "FLOAT". The value is 0x1406 which comes from OpenGL. This indicates data is stored in 4-byte or 32-bit floating-point numbers. This is a core part of the glTF specification.
const COMPONENT_TYPE_DOUBLE_FLOAT = 5130 enum GLTFComponentType#
Component type "DOUBLE". The value is 0x140A which comes from OpenGL. This indicates data is stored in 8-byte or 64-bit floating-point numbers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including KHR_interactivity.
const COMPONENT_TYPE_HALF_FLOAT = 5131 enum GLTFComponentType#
Component type "HALF_FLOAT". The value is 0x140B which comes from OpenGL. This indicates data is stored in 2-byte or 16-bit floating-point numbers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including KHR_interactivity.
const COMPONENT_TYPE_SIGNED_LONG = 5134 enum GLTFComponentType#
Component type "LONG". The value is 0x140E which comes from OpenGL. This indicates data is stored in 8-byte or 64-bit signed integers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including KHR_interactivity.
const COMPONENT_TYPE_UNSIGNED_LONG = 5135 enum GLTFComponentType#
Component type "UNSIGNED_LONG". The value is 0x140F which comes from OpenGL. This indicates data is stored in 8-byte or 64-bit unsigned integers. This is NOT a core part of the glTF specification, and may not be supported by all glTF importers. May be used by some extensions including KHR_interactivity.
Constructors #
Enums #
GLTFAccessorType#
enum GLTFAccessorType {
TYPE_SCALAR = 0,
TYPE_VEC2 = 1,
TYPE_VEC3 = 2,
TYPE_VEC4 = 3,
TYPE_MAT2 = 4,
TYPE_MAT3 = 5,
TYPE_MAT4 = 6,
}GLTFComponentType#
enum GLTFComponentType {
COMPONENT_TYPE_NONE = 0,
COMPONENT_TYPE_SIGNED_BYTE = 5120,
COMPONENT_TYPE_UNSIGNED_BYTE = 5121,
COMPONENT_TYPE_SIGNED_SHORT = 5122,
COMPONENT_TYPE_UNSIGNED_SHORT = 5123,
COMPONENT_TYPE_SIGNED_INT = 5124,
COMPONENT_TYPE_UNSIGNED_INT = 5125,
COMPONENT_TYPE_SINGLE_FLOAT = 5126,
COMPONENT_TYPE_DOUBLE_FLOAT = 5130,
COMPONENT_TYPE_HALF_FLOAT = 5131,
COMPONENT_TYPE_SIGNED_LONG = 5134,
COMPONENT_TYPE_UNSIGNED_LONG = 5135,
}