[過去ログ]
【3Dゲームエンジン】Unity質問スレッド30 [無断転載禁止]©2ch.net (1002レス)
【3Dゲームエンジン】Unity質問スレッド30 [無断転載禁止]©2ch.net http://mevius.5ch.net/test/read.cgi/gamedev/1500412168/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
必死チェッカー(本家)
(べ)
自ID
レス栞
あぼーん
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
758: 名前は開発中のものです。 [sage] 2017/08/22(火) 23:41:23.22 ID:ZYqSKZvD 質問です。 using System.Collections; using System.Collections.Generic; using UnityEngine; public class NewBehaviourScript : MonoBehaviour { GameObject[] button; public int numButtons; // Use this for initialization void Start () { button = GameObject.FindGameObjectsWithTag ("button"); for (int i = 0; i < numButtons; i++) { Debug.Log (button [i]); } } } これでindexoutofrangeexceptionが出るのですが、配列で宣言してるので理解できません。 ほかのシーンではこれとほとんど同じスクリプトが動いてます。 http://mevius.5ch.net/test/read.cgi/gamedev/1500412168/758
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.034s