[過去ログ] 【ゲームエンジン】Unityなんでも質問スレpart12 (1002レス)
上下前次1-新
抽出解除 必死チェッカー(本家) (べ) 自ID レス栞 あぼーん
このスレッドは過去ログ倉庫に格納されています。
次スレ検索 歴削→次スレ 栞削→次スレ 過去ログメニュー
544: 2023/12/08(金)00:30 ID:NwGBSXPg(1) AAS
public static GameObject MyInstantiate (this GameObject original, Vector3 position, Quaternion rotation, MonoBehaviour targetComponent, int val) {
GameObject instantiatedObject = GameObject.Instantiate (original, position, rotation);
// 指定されたコンポーネントが存在するか確認
MonoBehaviour[] components = instantiatedObject.GetComponents<MonoBehaviour> ();
foreach (MonoBehaviour component in components) {
if (component != null && component.GetType () == targetComponent.GetType ()) {
// Int型のpublic変数があるか確認
省9
上下前次1-新書関写板覧索設栞歴
スレ情報 赤レス抽出 画像レス抽出 歴の未読スレ AAサムネイル
ぬこの手 ぬこTOP 0.031s