class MAGES::Analytics::AnalyticsManagedObject¶
Overview¶
An object that is managed by the analytics for collision and transform detection purposes. More…
class AnalyticsManagedObject: public MonoBehaviour { public: // properties float MovementThreshold; float RotationThreshold; int ReferenceCount; bool Track; UnityEvent> CollisionEntered; UnityEvent > CollisionStayed; UnityEvent > CollisionExited; UnityEvent > PositionChanged; UnityEvent > RotationChanged; UnityEvent FrameUpdated; Collision Collision; Collider Collider; };
Detailed Documentation¶
An object that is managed by the analytics for collision and transform detection purposes.
Properties¶
float MovementThreshold
Gets or sets the movement threshold for registering movements for the object.
float RotationThreshold
Gets or sets the rotation threshold for registering rotations for the object.
int ReferenceCount
Gets or sets the reference counter for the object.
bool Track
Gets or sets a value indicating whether this gameobject will be tracked in the data container or not.
UnityEvent> CollisionEntered
Gets or sets the event that gets called on collision enter. First arg is the other gameobjects name and the second is the a list with the currenlty active action names.
UnityEvent> CollisionStayed
Gets or sets the event that gets called on collision enter. First arg is the other gameobjects name and the second is the a list with the currenlty active action names.
UnityEvent> CollisionExited
Gets or sets the event that gets called on collision exit. First arg is the other gameobjects name and the second is the a list with the currenlty active action names.
UnityEvent> PositionChanged
Gets or sets the event that gets called when position has changed. First arg is the gameobjects name and the second is the a list with the currenlty active action names.
UnityEvent> RotationChanged
Gets or sets the event that gets called when rotation has changed. First arg is the gameobjects name and the second is the a list with the currenlty active action names.
UnityEvent FrameUpdated
Gets or sets the event that gets called every frame.
Collision Collision
Gets the collision info of the object. Valid for a frame, if no collision has happend this frame, its set to null.
Intended to be used only in AnalyticsManagedObject callbacks. Only valid for non trigger collisions (Use Collider for trigger collisions).
Collider Collider
Gets the collider info of the object. Valid for a frame, if no collision has happend this frame, its set to null.
Intended to be used only in AnalyticsManagedObject callbacks. Only valid for trigger collisions (Use Collision for non trigger collisions).