Adventure Creator
1.79.1
An adventure game toolkit for Unity, by Chris Burton, ICEBOX Studios 2013-2022
|
Public Member Functions | |
HeldObjectData (DragBase _dragBase) | |
void | AttemptRelease (bool force) |
Attempts to release the object More... | |
void | Drag (Vector3 deltaCamera, Vector2 deltaInput, Vector2 inputPosition) |
Drags the held object More... | |
Properties | |
DragBase | DragObject [get] |
Vector3 | DragForce [get] |
bool | IgnoreDragState [get, set] |
bool | IgnoreBuiltInDragInput [get, set] |
int | TouchIndex [get, set] |
A data container class for information about how a draggable object is currently held
AC.HeldObjectData.HeldObjectData | ( | DragBase | _dragBase | ) |
<summaryThe default constructor
_dragBase | The object to drag |
void AC.HeldObjectData.AttemptRelease | ( | bool | force | ) |
Attempts to release the object
force | If True, the object will be released for certain. Otherwise, it will only be released if natural conditions mean it should be. |
void AC.HeldObjectData.Drag | ( | Vector3 | deltaCamera, |
Vector2 | deltaInput, | ||
Vector2 | inputPosition | ||
) |
Drags the held object
deltaCamera | The change in camera position since the last frame |
deltaInput | The change in input position since the last frame, in screen-space |
inputPosition | The input position this frame, in screen-space |
|
get |
The current force being applied to the object
|
get |
The object being dragged
|
getset |
If True, the object will not be moved by AC's built-in calls to the Drag function, allowing values to be set manually
|
getset |
If True, the object will not be released when the input or touch is released
|
getset |
The touch index to start dragging with, if on a touch-screen