Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumFeatureIdTexture.cs
Go to the documentation of this file.
1using Reinterop;
2using System;
3using UnityEngine;
4
5namespace CesiumForUnity
6{
28
35 [ReinteropNativeImplementation("CesiumForUnityNative::CesiumFeatureIdTextureImpl", "CesiumFeatureIdTextureImpl.h")]
37 {
42 {
43 get; internal set;
44 }
45
46 internal CesiumFeatureIdTexture()
47 {
48 this.type = CesiumFeatureIdSetType.Texture;
49 this.status = CesiumFeatureIdTextureStatus.ErrorInvalidTexture;
50 this.CreateImplementation();
51 }
52
60 public partial Int64 GetFeatureIdForUV(Vector2 uv);
61
63 public override partial Int64 GetFeatureIdForVertex(Int64 vertexIndex);
64
66 public override partial Int64 GetFeatureIdFromRaycastHit(RaycastHit hitInfo);
67 }
68}
Represents a feature ID set from a glTF primitive.
Represents a feature ID texture from a glTF primitive.
partial Int64 GetFeatureIdForUV(Vector2 uv)
Gets the feature ID corresponding to the pixel specified by the UV texture coordinates.
override partial Int64 GetFeatureIdFromRaycastHit(RaycastHit hitInfo)
Gets the feature ID from the feature ID set using the given raycast hit.This returns a more accurate ...
override partial Int64 GetFeatureIdForVertex(Int64 vertexIndex)
Gets the feature ID associated with a given vertex.The feature ID can be used with a CesiumPropertyTa...
CesiumFeatureIdTextureStatus status
The status of this feature ID texture.
CesiumFeatureIdSetType
The type of a feature ID set.
@ Valid
The feature ID attribute is valid.
CesiumFeatureIdTextureStatus
Reports the status of a CesiumFeatureIdTexture.
@ ErrorInvalidTextureAccess
The feature ID texture is being read in an invalid way – for example, trying to read nonexistent imag...
@ ErrorInvalidTexture
The feature ID texture cannot be found in the glTF, or the texture itself has errors.