单项选择题
Unity中关于Public类型的变量,说法错误的是()。
A.public变量是全局变量
B.public变量可以在Inspector面板上显示
C.public变量可以在Inspector面板上修改,测试脚本程序运行效果
D.public变量不可以在Inspector面板上显示
点击查看答案&解析
相关考题
-
单项选择题
通过Transform类使物体沿z轴正方向移动5米/秒的语句,正确的是()。
A.transform.Translate(0,0,5)
B.transform.Translate(0,0,5*Time.deltaTime)
C.transform.Translate(0,0,-5*Time.deltaTime)
D.transform.Translate(0,-5,0) -
单项选择题
transform组件中Rotation对应的是Transform类中的()属性。
A.localRotation
B.Rotation
C.localEulerAngles
D.EulerAngles -
单项选择题
Vector3.up对应的xyz坐标的值为()。
A.(0,0,0)
B.(0,1,0)
C.(1,0,0)
D.(0,-1,0)
