Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumForUnity.CesiumPropertyArray Class Reference

Represents an array value from a property in glTF metadata. More...

Properties

CesiumMetadataValueType elementValueType [get, set]
 The value type of the elements in the array.
 
Int64 length [get]
 Gets the number of elements in the array.
 
CesiumMetadataValue this[Int64 index] [get]
 Retrieves an element from the array as a CesiumMetadataValue.
 

Detailed Description

Represents an array value from a property in glTF metadata.

The values belong to one of the supported property types in EXT_structural_metadata.

Definition at line 9 of file CesiumPropertyArray.cs.

Property Documentation

◆ elementValueType

CesiumMetadataValueType CesiumForUnity.CesiumPropertyArray.elementValueType
getset

The value type of the elements in the array.

Some of these types are not accessible from Unity, but can be converted to a close-fitting type.

Definition at line 27 of file CesiumPropertyArray.cs.

◆ length

Int64 CesiumForUnity.CesiumPropertyArray.length
get

Gets the number of elements in the array.

Returns 0 if the elements have an unknown type.

Definition at line 36 of file CesiumPropertyArray.cs.

◆ this[Int64 index]

CesiumMetadataValue CesiumForUnity.CesiumPropertyArray.this[Int64 index]
get

Retrieves an element from the array as a CesiumMetadataValue.

The value can then be retrieved as a specific C# or Unity type.

If the index is out-of-bounds, this returns a bogus CesiumMetadataValue of an unknown type.

Parameters
indexThe desired index
Returns
The element as a CesiumMetadataValue.

Definition at line 50 of file CesiumPropertyArray.cs.


The documentation for this class was generated from the following file: