Hi,
I want to build an app in Unity where the user can input the lat longitude of a position where the user wants to explore and on the input competition, the user is transported to the specified location. Where can I find the documentation of Cesium components and their methods to program from C# scripts?
Thank you for your time.
What I mean is where I can find this documentation, https://cesium.com/learn/ion-sdk/ref-doc/ , but for Unity.
We unfortunately don’t have HTML reference documentation like that yet. There’s an issue to add it:
opened 08:41PM - 03 Apr 23 UTC
documentation
We're getting a lot of questions on the forum about how to do simple things that… should be apparent from our public API. We already have XML documentation for all public files and functions, but these comments don't translate to the assembly file, so people don't see it when they use it in their own code. For example, if you write `CesiumWgs84Ellipsoid.GetRadii()` in your code, there are no comments when you hover over it:
![image](https://user-images.githubusercontent.com/32226860/229622526-f57d2349-1f77-41c7-999e-067735782673.png)
There are also no comments when you ctrl-click it:
<img src="https://global.discourse-cdn.com/cesium/original/2X/b/b614a777a9e768c10d2e986a6792a1e5c6aa5da8.png"/>
(This is taken from the [forum](https://community.cesium.com/t/waiting-for-the-sales-team/23109/24).)
Is there a way we can make documentation more obvious? Or since we use doxygen for Cesium for Unreal, maybe we can use it here too? Haven't looked into it, but [according to this forum thread](
https://forum.unity.com/threads/tools-to-write-a-documentation-file-for-your-users.471265/) it works for C#.
In the meantime, the source code itself has extensive comments on the classes and methods, so you can take a look at those:
For example, to do flights to a particular location, check out the CesiumFlyToController
, especially the “FlyTo…” methods:
/// <see cref="CesiumFlyToController.flyToAltitudeProfileCurve"/>,
/// <see cref="CesiumFlyToController.flyToProgressCurve"/>,
/// <see cref="CesiumFlyToController.flyToMaximumAltitudeCurve"/>,
/// <see cref="CesiumFlyToController.flyToDuration"/>, and
/// <see cref="CesiumFlyToController.flyToGranularityDegrees"/>.
/// </remarks>
/// <param name="destination">The longitude (x), latitude (y), and height (z) of the destination.</param>
/// <param name="yawAtDestination">The yaw of the controller at the destination.</param>
/// <param name="pitchAtDestination">The pitch of the controller at the destination.</param>
/// <param name="canInterruptByMoving">Whether the flight can be interrupted with movement inputs.</param>
public void FlyToLocationLongitudeLatitudeHeight(
double3 destination,
float yawAtDestination,
float pitchAtDestination,
bool canInterruptByMoving)
{
double3 destinationECEF =
CesiumWgs84Ellipsoid.LongitudeLatitudeHeightToEarthCenteredEarthFixed(destination);
this.FlyToLocationEarthCenteredEarthFixed(
destinationECEF,