Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumPropertyArray.cs
Go to the documentation of this file.
1using System;
2
3namespace CesiumForUnity
4{
9 public class CesiumPropertyArray
10 {
11 internal CesiumMetadataValue[] values { get; set; }
12
13 internal CesiumPropertyArray()
14 {
15 this.values = new CesiumMetadataValue[0];
16 }
17
19 {
20 this.values = values;
21 }
22
28 {
29 get; internal set;
30 }
31
37 {
38 get { return this.values.LongLength; }
39 }
40
50 public CesiumMetadataValue this[Int64 index]
51 {
52 get
53 {
54 if (index < 0 || index >= this.length)
55 {
56 return new CesiumMetadataValue();
57 }
58
59 return values[index];
60 }
61 }
62
63 }
64}
Represents a value from a property in glTF metadata.
Represents an array value from a property in glTF metadata.
CesiumMetadataValueType elementValueType
The value type of the elements in the array.
Int64 length
Gets the number of elements in the array.
Represents the value type of a metadata value or property, akin to the property types in EXT_structur...