Rotate 3d сamera object with touch or mouse pointer extrnsion #1260
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This extension allows you to rotate the 3D camera object using touch or the mouse cursor, you can make nice controls for mobile 3D projects or complement your existing one for variety.
How to use the extension
Add a new action, select the object from which the camera is looking, select the action "Rotate 3d сamera object with touch or mouse" specify the 2D layer on which the mouse or touch will move, for example "UI", specify the part of the screen on which the mouse or touch will move, for example "Right half", specify the camera rotation smoothing level, for example 4, finished.
Checklist
What tier of review do you aim for your extension?
Community (Unreviewed)
Example file
RotateCameraObject3DExample.zip
Extension file
RotateCameraObject3DExtension.zip