Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumFeatureIdAttribute.cs
Go to the documentation of this file.
1using Reinterop;
2using System;
3using UnityEngine;
4
5namespace CesiumForUnity
6{
26
33 [ReinteropNativeImplementation("CesiumForUnityNative::CesiumFeatureIdAttributeImpl", "CesiumFeatureIdAttributeImpl.h")]
35 {
40 {
41 get; internal set;
42 }
43
45 {
46 this.type = CesiumFeatureIdSetType.Attribute;
47 this.status = CesiumFeatureIdAttributeStatus.ErrorInvalidAttribute;
48 this.CreateImplementation();
49 }
50
52 public override partial Int64 GetFeatureIdForVertex(Int64 vertexIndex);
53
55 public override Int64 GetFeatureIdFromRaycastHit(RaycastHit hitInfo)
56 {
58 return this.GetFeatureIdForVertex(vertex);
59 }
60 }
61}
Represents a feature ID attribute from a glTF primitive.
override partial Int64 GetFeatureIdForVertex(Int64 vertexIndex)
Gets the feature ID associated with a given vertex.The feature ID can be used with a CesiumPropertyTa...
CesiumFeatureIdAttributeStatus status
The status of this feature ID attribute.
override Int64 GetFeatureIdFromRaycastHit(RaycastHit hitInfo)
Gets the feature ID from the feature ID set using the given raycast hit.This returns a more accurate ...
Represents a feature ID set from a glTF primitive.
Represents the EXT_mesh_features of a glTF primitive in a Cesium3DTileset.
static int GetFirstVertexFromHitTriangle(RaycastHit hitInfo)
Given a successful raycast hit, finds the index of the first vertex from the hit triangle.
CesiumFeatureIdSetType
The type of a feature ID set.
CesiumFeatureIdAttributeStatus
Reports the status of a CesiumFeatureIdAttribute.
@ Valid
The feature ID attribute is valid.
@ ErrorInvalidAccessor
The feature ID attribute uses an invalid accessor in the glTF.
@ ErrorInvalidAttribute
The feature ID attribute does not exist in the glTF primitive.