Created
February 21, 2020 19:51
-
-
Save xizhang/d6cba283b5481c1eb5a202d14a063820 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Zoom slider: linear zoom effect | |
fun updateZoomSlider(percentage: Float) { | |
// percentage [0.0f .. 1.0f] | |
cameraControl.setLinearZoom(percentage) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment