Things to prepare before development
Required packages
- ARFoundation
- ARCore XR Plugin
- ARKit XR Plugin
Unity Editor (Sample Scene)
- Import the LiGSDK-X.X.X.unitypackage SDK file.
- Refer to (or open) the following two Scene files
- LiGSDK / Demo / SearchLight (Scaning Page)
- LiGSDK / Demo / ARDemo (AR Page)
- LiGSDK / Demo / DeviceNotSupported (Not supported)
iOS building
We are referencing LiGSDK through CocoaPods.
So please switch to iOS from Build Settings directly and execute Build.
Open the *.xcworkspace file in the directory when finished.
Then run the App in Xcode.
After that, if the version is updated, please run pod update.
Android building
Switch to Android from Build Settings directly and execute Build.
LiGSDK Process
- Initialization in Awake()(see SetupSDK()), the program will check the API Key/Secret value and check if the device supports LigTag.
- After initialization, the program will call OnDriverReady(), which is the best place to run Search() immediately.
- After starting Search(), the scanning result will call OnReporting EventHandler.(Please perform the actual operation.)
- Stop() to stop scaning.
Exception
DriverFailed() is called if there is an error during LiGSDK usage.