Skip to content

Instantly share code, notes, and snippets.

@todorok1
Created April 16, 2018 07:56
Show Gist options
  • Save todorok1/d6e5fff0611eabdf5929c10343ccc347 to your computer and use it in GitHub Desktop.
Save todorok1/d6e5fff0611eabdf5929c10343ccc347 to your computer and use it in GitHub Desktop.
Unityチュートリアル・カメラの追従とズームイン・ズームアウトさせるスクリプト。
public void OnChangedMagnifyValue(){
// Sliderの値を拡大率に反映
magnify = (int)zoomSlider.value;
// ZoomTextに文字列を設定
zoomText.text = zoomTextPrefix + magnify.ToString() + zoomTextSuffix;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment