Tessalator Posted May 20, 2021 Share Posted May 20, 2021 (edited) I'm having trouble finding a way to use .track in C#. The doc's have an example in C++ that references a `Unigine::Tracker` namespace and a Track object, but there is no equivalent namespace in C#. I couldn't find a Track class anywhere in the SDK. I found a post the said something about having to call tracker in Unigine Script, but no example. Is there an intent to provide a `Track` class in C#? I'm looking for an example of playing a track from C# please, or a C# wrapper class if someone has one they can share. Edited May 20, 2021 by Tessalator Link to comment
karpych11 Posted May 21, 2021 Share Posted May 21, 2021 Hello, Now the tracker functions are available only from Unigine Script, but you can try using the C# wrapper. Tracker component needs to be added to the world, and in the Tracker Wrapper Usc field specify the wrapper file. You can also add the necessary files with tracks, and then refer to them by name or identifier. This wrapper provides access to adding / removing tracks and setting the time. tracker_wrapper.h Tracker.cs 1 Link to comment
Tessalator Posted May 21, 2021 Author Share Posted May 21, 2021 HI karpych11. Thanks for that. I don't quite have it working yet but it's loading and running. I haven't had a lot of time to spend with it though. Just wanted to say thanks. 1 Link to comment
Recommended Posts