Cesium for Unity 1.15.2
Loading...
Searching...
No Matches
CesiumMetadata.cs
Go to the documentation of this file.
1using Reinterop;
2using System;
3using UnityEngine;
4
5namespace CesiumForUnity
6{
10 [ReinteropNativeImplementation("CesiumForUnityNative::CesiumMetadataImpl", "CesiumMetadataImpl.h")]
11 [AddComponentMenu("")]
12 [IconAttribute("Packages/com.cesium.unity/Editor/Resources/Cesium-24x24.png")]
13 [Obsolete("Retrieve metadata using the CesiumModelMetadata component attached to a tile instead.")]
14 public partial class CesiumMetadata : MonoBehaviour
15 {
16 private void OnEnable()
17 {
18 Debug.LogWarning("CesiumMetadata component is deprecated. Retrieve metadata using the CesiumModelMetadata component of a tile object.");
19 }
20
31 public partial CesiumFeature[] GetFeatures(Transform transform, int triangleIndex);
32 }
33}
Allows access to a particular feature of CesiumMetadata.
Provides access to the metadata attached to features in a Cesium3DTileset.
partial CesiumFeature[] GetFeatures(Transform transform, int triangleIndex)
Gets the features corresponding to a particular triangle in a tile.