(旧)コダフォンの日記ブログ(移転しました)

FC2ブログに移転しました。ここいる?

Unity

Unity 弾発射制限

自分用メモ using UnityEngine; using System.Collections; using System.Collections.Generic; using UnityEngine.UI; public class TamaSeigen : MonoBehaviour { public BulletScript bulletScript; RectTransform rt; public float life_time = 1.5f; fl…

Unity twitterに投稿する方法

https://qiita.com/keroxp/items/1397b88b71eab0e80156 Application.OpenURL("https://twitter.com/intent/tweet?text=hello&hashtags=way"); っぽい

Unity オブジェクトの有効化、無効化、表示、非表示

public GameObject clearText; void OnTriggerEnter2D (Collider2D col){ clearText.SetActive(true); } .SetActive(true)しましょう

Unity 数学関数

http://kan-kikuchi.hatenablog.com/entry/Mathf Mathf. をつけましょう

Unity yield コルーチン

https://qiita.com/kazz4423/items/73219068684e87adc87d

Unity 時間管理

http://unity2d.hateblo.jp/entry/2015/03/24/014409 時を支配しろ

Unity 弾幕っぽく

https://unity3d.com/jp/learn/tutorials/projects/2d-shooting-game/shooting-shots-from-the-player?playlist=46524 コルーチンとは

Unity シーン間で変数を共有する

https://qiita.com/YuwUnknown/items/afdc9cd01de7c559ba60 シーン間で変数を共有する

Unity BGMを流す 途中から流す ループさせる

http://www.shibuya24.info/entry/2015/08/04/115000 でも多少変更が必要

Unity 衝突判定 領域内判定

OnTriggerEnter2DとかOnCollisionEnter2Dの分かりやすいまとめ https://qiita.com/ppr007/items/8eee1de552601a8a8f1f

Unity 弾をプレイヤーに追尾させる

http://www.clrmemory.com/unity/homing-obj-script/ 2dで追尾させる方法。 Player = GameObject.Find ("Player"); んところ タグでも。 Player = GameObject.FindGameObjectWithTag("Player");

Unity19日目

Cannot modify a value type return value of `UnityEngine.Transform.position'. Consider storing the value in a temporary variable ってエラーが出る場合 http://mediamonster.blog.fc2.com/blog-entry-21.html newを使いましょう。 Sprite Rendererの…

Unity18日目

http://megumisoft.hatenablog.com/entry/2016/01/27/235940 Unityで背景UIを背面に固定する

Unity17日目

UnityのAnimatorを複製、コピーする場合は CTRL+Dです。

Unity15日目

Scene couldn't be loded because it has not been って出てきたとき http://d.hatena.ne.jp/a1yama1123/20120412/1334241971 UnassignedReferenceException: The Variable xxx of 'ooo' has not been assigned. って出てきたとき http://kagring.blog.fc2.c…

Unity7日目

http://hiyotama.hatenablog.com/entry/2015/06/12/153523 こいつあすげえや

Unity3日目

https://unityroom.com/games/codafon000 公開できた事実がまず重要なのじゃ。 やっと心置きなく作れるぞい WebGLは神 http://mediamonster.blog.fc2.com/blog-entry-26.html ビルドが全然終わらないときはGI(Global Illumination)を切りましょう。 http://f…

Unity1日目

https://github.com/unity3d-jp/FirstTutorial/wiki/3.%E3%82%AB%E3%83%A1%E3%83%A9%E3%82%92%E5%8B%95%E3%81%8B%E3%81%99 ここまで

Unity0日目