![]() |
KudanAR - Unity
1.6.0
|
Inherits MonoBehaviour.
Public Member Functions | |
void | AddTrackable (byte[] data, string id) |
Adds a single trackable to the tracker from image data, names it with the given string, and applies any settings. This method uses the default values for whether this trackable should use extended tracking or auto-cropping. More... | |
void | AddTrackable (byte[] data, string id, bool extensible) |
Adds a single trackable to the tracker from image data, names it with the given string, and sets whether the trackable should utilise extended tracking or auto-cropping. More... | |
void | AddTrackableSet (string pathToFile, string ID) |
Adds a .KARMarker data set to the tracker with a given name. More... | |
void | StartTracking () |
Start tracking with this tracker. More... | |
void | StopTracking () |
Stop tracking with this tracker. More... | |
void | ChangeTrackingMethod (TrackingMethodBase newTrackingMethod) |
Changes the current tracking method to the given tracking method. More... | |
void | ArbiTrackStart (Vector3 position, Quaternion orientation) |
Start ArbiTrack on the current platform. More... | |
void | ArbiTrackStop () |
Stop ArbiTrack and return to placement mode. More... | |
bool | ArbiTrackIsTracking () |
Checks if arbitrary tracking is currently running. More... | |
void | FloorPlaceGetPose (out Vector3 position, out Quaternion orientation) |
Gets the current position and orientation of the floor, relative to the device. More... | |
void | ArbiTrackGetPose (out Vector3 position, out Quaternion orientation) |
Gets the current position and orientation of the markerless driver being tracked. More... | |
bool | HasActiveTrackingData () |
Determines whether or not the tracker is currently detecting a trackable. More... | |
void | SetArbiTrackFloorHeight (float floorHeight) |
Sets the position of the floor plane that ArbiTrack uses as a reference for tracking. More... | |
bool | StartLineRendering () |
Starts line rendering. More... | |
void | takeScreenshot () |
Takes a screenshot of the camera feed and any projected objects, without any UI. More... | |
Public Attributes | |
string | _EditorAPIKey = string.Empty |
The license key used to run the plugin in the Editor. By registering an account on the Kudan website, you can claim one free key for personal use. NOTE: This key is separate from the API Key checked on iOS and Android builds. Use _APIKey for those platforms. More... | |
string | _APIKey = string.Empty |
The API License key used to run the plugin on mobile platforms. Development keys can be obtained from https://wiki.kudan.eu/Development_License_Keys. In order to publish an app using the Kudan plugin to the app store, a license is required. Publish keys can be bought at https://www.kudan.eu/pricing/. More... | |
TrackingMethodBase | _defaultTrackingMethod |
The default tracking method used by the tracker when the app starts. More... | |
TrackingMethodBase[] | _trackingMethods |
Array of all tracking methods that can be used by the tracker. More... | |
bool | _useFrontFacingCameraOnMobile |
Setting this to true gets the front-facing camera instead of defaulting to the back-facing camera. NOTE: This only applies to mobile devices. In the Editor use the WebCamID instead. More... | |
bool | _markerRecoveryMode |
Whether or not Marker Recovery Mode is enabled. This feature allows for quick re-detection of a marker after it has been lost. It is also easier to re-detect the marker from shallower angles and greater distances. More... | |
bool | _markerExtensibility |
Whether the markers should be used with Extensibility turned on. Please note this should only be used with stationary markers. That means that if your marker at all moves, you should not use this mode. Extended Tracking and Detection is a feature where trackables can be extended by automatically creating new markers from the surrounding scene. This means that after being expanded, trackables can be detected and tracked from much further away. Enabling this feature will use slightly more memory space. More... | |
int | _maxToTrack |
Set the maximum number of trackables which can be tracked at the same time. More... | |
bool | _makePersistent = true |
Whether or not to make this tracker persist between scenes. More... | |
bool | _startOnEnable = true |
Whether or not to initialise this tracker when it is loaded. More... | |
bool | _applyProjection = true |
Whether or not to apply the projection matrix of the tracker to the camera. More... | |
Camera | _renderingCamera |
The camera to apply the projection matrix to. If left blank, this will use the main camera. More... | |
Renderer | _background |
Reference to the Mesh Renderer component of the object the camera texture is being drawn to. More... | |
bool | _displayDebugGUI = true |
Whether or not to display the debug GUI. More... | |
int | _debugGUIScale = 1 |
Overall size of the debug GUI on the screen. More... | |
Shader | _debugFlatShader |
The debug shader. More... | |
Protected Attributes | |
TrackerBase | _trackerPlugin |
Reference to the tracker class, which interfaces between Unity and the native frameworks. More... | |
Trackable[] | _lastDetectedTrackables |
Array containing all trackables that were detected in the previous frame. More... | |
Properties | |
TrackerBase | Interface [get] |
Gets the interface exposing the Kudan API for those that need scripting control. More... | |
TrackingMethodBase | CurrentTrackingMethod [get] |
Gets the current tracking method. More... | |
|
inline |
Adds a single trackable to the tracker from image data, names it with the given string, and applies any settings. This method uses the default values for whether this trackable should use extended tracking or auto-cropping.
true
, if trackable was successfully added to the tracker, false
otherwise.data | The array of image data. |
id | A name applied to the trackable to identify it in the tracker while the app is running. |
|
inline |
Adds a single trackable to the tracker from image data, names it with the given string, and sets whether the trackable should utilise extended tracking or auto-cropping.
true
, if trackable was successfully added to the tracker, false
otherwise.data | The array of image data. |
id | A name applied to the trackable to identify it in the tracker while the app is running. |
extensible | If set to true the loaded trackable will use extended tracking. |
|
inline |
Adds a .KARMarker data set to the tracker with a given name.
true<c>/c>, if the data set was successfully added to the tracker, false
otherwise.
pathToFile | The filepath pointing to the data set. |
id | A string used to identify the data set while the app is running. |
|
inline |
Gets the current position and orientation of the markerless driver being tracked.
position | The position of the markerless transform driver. |
orientation | The orientation of the markerless transform driver. |
|
inline |
Checks if arbitrary tracking is currently running.
true<c>/c>, if ArbiTrack is running false
if not.
|
inline |
Start ArbiTrack on the current platform.
position | Position to start tracking at. |
orientation | Orientation to start tracking at. |
|
inline |
Stop ArbiTrack and return to placement mode.
|
inline |
Changes the current tracking method to the given tracking method.
newTrackingMethod | New tracking method. |
|
inline |
Gets the current position and orientation of the floor, relative to the device.
position | Position of the floor, relative to the camera. |
orientation | Orientation of the floor, relative to the camera. |
|
inline |
Determines whether or not the tracker is currently detecting a trackable.
true
if the tracker tracked at least one trackable this frame, false
otherwise.
|
inline |
Sets the position of the floor plane that ArbiTrack uses as a reference for tracking.
floorHeight | How far from the camera the floor is positioned. |
|
inline |
Starts line rendering.
true
, if line rendering was started, false
otherwise.
|
inline |
Start tracking with this tracker.
|
inline |
Stop tracking with this tracker.
|
inline |
Takes a screenshot of the camera feed and any projected objects, without any UI.
string Kudan.AR.KudanTracker._APIKey = string.Empty |
The API License key used to run the plugin on mobile platforms. Development keys can be obtained from https://wiki.kudan.eu/Development_License_Keys. In order to publish an app using the Kudan plugin to the app store, a license is required. Publish keys can be bought at https://www.kudan.eu/pricing/.
bool Kudan.AR.KudanTracker._applyProjection = true |
Whether or not to apply the projection matrix of the tracker to the camera.
Renderer Kudan.AR.KudanTracker._background |
Reference to the Mesh Renderer component of the object the camera texture is being drawn to.
Shader Kudan.AR.KudanTracker._debugFlatShader |
The debug shader.
int Kudan.AR.KudanTracker._debugGUIScale = 1 |
Overall size of the debug GUI on the screen.
TrackingMethodBase Kudan.AR.KudanTracker._defaultTrackingMethod |
The default tracking method used by the tracker when the app starts.
bool Kudan.AR.KudanTracker._displayDebugGUI = true |
Whether or not to display the debug GUI.
string Kudan.AR.KudanTracker._EditorAPIKey = string.Empty |
The license key used to run the plugin in the Editor. By registering an account on the Kudan website, you can claim one free key for personal use. NOTE: This key is separate from the API Key checked on iOS and Android builds. Use _APIKey for those platforms.
|
protected |
Array containing all trackables that were detected in the previous frame.
bool Kudan.AR.KudanTracker._makePersistent = true |
Whether or not to make this tracker persist between scenes.
bool Kudan.AR.KudanTracker._markerExtensibility |
Whether the markers should be used with Extensibility turned on. Please note this should only be used with stationary markers. That means that if your marker at all moves, you should not use this mode. Extended Tracking and Detection is a feature where trackables can be extended by automatically creating new markers from the surrounding scene. This means that after being expanded, trackables can be detected and tracked from much further away. Enabling this feature will use slightly more memory space.
bool Kudan.AR.KudanTracker._markerRecoveryMode |
Whether or not Marker Recovery Mode is enabled. This feature allows for quick re-detection of a marker after it has been lost. It is also easier to re-detect the marker from shallower angles and greater distances.
NOTE: The Recovery Mode uses slightly more CPU power while tracking.
int Kudan.AR.KudanTracker._maxToTrack |
Set the maximum number of trackables which can be tracked at the same time.
Camera Kudan.AR.KudanTracker._renderingCamera |
The camera to apply the projection matrix to. If left blank, this will use the main camera.
bool Kudan.AR.KudanTracker._startOnEnable = true |
Whether or not to initialise this tracker when it is loaded.
|
protected |
Reference to the tracker class, which interfaces between Unity and the native frameworks.
TrackingMethodBase [] Kudan.AR.KudanTracker._trackingMethods |
Array of all tracking methods that can be used by the tracker.
bool Kudan.AR.KudanTracker._useFrontFacingCameraOnMobile |
Setting this to true gets the front-facing camera instead of defaulting to the back-facing camera. NOTE: This only applies to mobile devices. In the Editor use the WebCamID instead.
|
get |
Gets the current tracking method.
|
get |
Gets the interface exposing the Kudan API for those that need scripting control.