Day 28. 解掉bug了

啊..败给旅游燃烧殆尽症候群了,昨天晚上不小心睡着,忘记设闹钟,再醒来就已经过12点了QwQ

 
 

解bug

UnassignedReferenceException: The variable panel of LineRendererSettings has not been assigned.
You probably need to assign the panel variable of the LineRendererSettings script in the inspector.
UnityEngine.GameObject.GetComponent[T] () (at /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/GameObject.bindings.cs:28)
LineRendererSettings.Start () (at Assets/LineRendererSettings.cs:30)

他说我没有把panel变数赋值给LineRendererSettings.cs

 
 
 

这个是因为我在Day 25. VR菜单3,对这句话只理解了一半:

Left-click and drag the panel from your Hierarchy window into the slot on the LineRendererSettings script on your Capsule (Figure 21).

 
中文的傻瓜理解应该是:

  1. Add LineRendererSettings script on your Capsule完後
  2. 才是drag the panel from your Hierarchy window into the slot on the LineRendererSettings script on your Capsule

 
 
 
恩!这样bug就没了

 
 

Q:为什麽属於UI的canvas要放在3D object的cube下?

 
 

参考:
https://ithelp.ithome.com.tw/articles/10280153
https://learn.unity.com/tutorial/creating-a-vr-menu-2019-2#6036dc27edbc2a50f848a701


<<:  【Day 28】- 这个验证码有点难破解(应对反爬虫技术-验证码篇)

>>:  初学者跪着学JavaScript Day28 : 学迭代,学习不等待

LiteX/VexRiscv 简介与使用 (一) 太初有光

虽然之前musl-libc的部份尚有pthread的canceling point仍有bug,但是撑...

NIST与云相关的准则

-云计算概念参考模型(来源:NIST) NIST SP 500-291v1(云路线图) NIST ...

Day28 Java 注解

●Java 自定义注解 创建自定义注解类似於编写接口,不同之处在於interface关键字以@符号为...

Day16-JDK堆栈跟踪工具:jstack(一)

jstack介绍 jstack 全名:JVM Stack Trace,用於打印虚拟机当前进程的线程快...

Day-2 我也...可以跟电脑娘说话吗

我也...可以跟电脑娘说话吗 tags: IT铁人 首篇不会给大家太多压力,简单介绍我们写出来的程序...