ArgumentException: The Thing You Want To Instantiate Is Null.
来源:互联网 发布:php判断移动端和pc端 编辑:程序博客网 时间:2024/06/01 09:38
原文地址:https://support.unity3d.com/hc/en-us/articles/206351293-ArgumentException-The-thing-you-want-to-instantiate-is-null-
症状
- 我在Console窗口得到了如下所示的错误信息:
error ArgumentException: The thing that you want to instantiate is null. Unity Engine.Object.CheckNullArgument (System.Object arg, System.String.Message)
原因
引起这个错误的原因是你使用的脚本尝试实例化一个没有引用到prefab的GameObject。
解决方案
你需要通过Inspector检视面板或某个脚本,给那个你想实例化的GameObject赋予引用。
通过Inspector面板:
通过脚本:
0 0
- ArgumentException: The Thing You Want To Instantiate Is Null.
- Too often.things you want have the most is the one thing you can't have
- PHP入门Demo(只为前端了解)When you really want to know a thing, You will see is really very simple.
- 72.You want to enable archiving on your database. Presently, the database is running in NOARCHIVELOG
- It seems that the port 3306 is already in use.aer you sure you want to use this port
- 158.You want to create a role to meet these requirements: 1: The role is to be protected from unauth
- DO YOU WANT TO SELL SUGAR WATER OR DO YOU WANT TO CHANGE THE WORLD?
- 47 You want to use RMAN to create compressed backups. Which statement is true about the compression
- Spyder is already running. If you want to open a new instance, please pass to it the --new-instance
- mac下Genymotion添加虚拟设备提示 The file is corrupt. Do you want to download the file again?解决方法
- 44.Your database is functional with a peak load for the last one hour. You want to preserve the perf
- To see the people you want to see
- How to switch to the shell you want
- eclipse创建Adnroid虚拟机提示:XXXX目录.avd is in the way. Use --force if you want to overwrite.
- 70.You want to display only those product names with their list prices where the list price is at le
- ccah-500 第37题 You want to clean up this list by removing jobs where the State is KILLED
- So You Want To Enter The Game Industry?
- So you want to program the web with FSharp?
- collection和map
- echarts属性设置
- 前端面试题搜集之三——CSS
- LSGO:团队学习模式“社群化”讨论!
- 使用webpack编译TypeScript,自动编译,自动刷新
- ArgumentException: The Thing You Want To Instantiate Is Null.
- java运行机制——程序是怎么跑起来的?
- 创建存储过程并调用
- C++编译链接的那些小事
- grafana 页面左上角显示红色叹号
- spdk 编译
- android:layout_weight的真实含义
- iframe 子父窗口中js相互调用
- [Vijos1418] 公司聚会