File → BuildSettings をおす
変更したいプラットフォームを選択 → SwitchPlatform をおします
※iPhoneで出力したい場合は、iPhone、Androidで出力したい場合はAndroidを選択します
※それぞれのビルドサポートをダウンロードしていない場合はする必要があります
これからプログラミングを始める子にまず見てほしいブログ
投稿日:2019年6月22日 更新日:
File → BuildSettings をおす
変更したいプラットフォームを選択 → SwitchPlatform をおします
※iPhoneで出力したい場合は、iPhone、Androidで出力したい場合はAndroidを選択します
※それぞれのビルドサポートをダウンロードしていない場合はする必要があります
執筆者:getabako
関連記事
チュートリアルの内容 3D空間を走り回り、弾を飛ばして敵を倒すゲームを作ります。 今回やること プレイヤーの移動 アニメーションの遷移 カメラの追従 事前に準備するもの プレイヤー(待機アニメーション …
AR もくじ Vuforiaの設定 Unityの設定 Vuforiaの設定 アカウント登録 こちらよりVufolliaのサイトにいきます 右上のRegisterをおします 名前や会社名(何でもいいです …
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
using System.Collections; using System.Collections.Generic; using UnityEngine; public class BlockCreate : MonoBehaviour { private Vector3 clickPosition; public GameObject cube; // Start is called before the first frame update void Start() { cube.tag = "Ground"; } // Update is called once per frame void Update() { Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition); RaycastHit hit = new RaycastHit(); if (Input.GetMouseButtonDown(0)) { Debug.DrawRay(ray.origin, ray.direction * 1000, Color.red, 3, false); if (Physics.Raycast(ray, out hit)) { Instantiate(cube, hit.point, Quaternion.identity); } } } } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.SceneManagement;//シーンの呼び出しをする際に追記する public class CallGame : MonoBehaviour { // Update is called once per frame void Update () { if (Input.GetMouseButtonDown (0)) {//マウスがおされたら SceneManager.LoadScene ("Main");//Mainの部分には呼び出したいシーンの名前を入れる } } } |
Scratch → Unity対応表を使って迷路ゲームを作ってみよう
今回作るゲーム 今回やることの説明 こんな感じの迷路ゲームを作っていきます。 今回はキャラの移動を実装していきます。 それ以外の要素はパッケージに入っているので、 パッケージのPlayerスクリプトに …
2020/11/07
Web初心者でも大丈夫!!Webページを公開するまでの最低限の手順
2020/09/18
blenderでアニメーションの歪みを修正する【blender2.8】