Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.