CesiumGS / cesium-unity

Bringing the 3D geospatial ecosystem to Unity
https://cesium.com/platform/cesium-for-unity/
Apache License 2.0
347 stars 83 forks source link

Warnings in CesiumSamplesRequiresMagicLeap.cs #448

Closed kring closed 5 months ago

kring commented 6 months ago

This is actually an issue in the Samples project, but I'm writing it here because it'll be less likely to be overlooked.

There are some new warnings in CesiumSamplesRequiresMagicLeap.cs, quite possible only when the Magic Leap SDK isn't installed:

Assets\CesiumForUnitySamples\Scripts\CesiumSamplesRequiresMagicLeap.cs(39,25): warning CS0414: The field 'CesiumSamplesRequiresMagicLeap._waitingForReturnToEditMode' is assigned but its value is never used Assets\CesiumForUnitySamples\Scripts\CesiumSamplesRequiresMagicLeap.cs(41,24): warning CS0414: The field 'CesiumSamplesRequiresMagicLeap._idx' is assigned but its value is never used

Maybe just need to move these inside an ifdef or something?