Assets/Scripts/Player.cs(9,31): warning CS0108: `Player.light' hides inherited member `UnityEngine.Component.light'. Use the new keyword if hiding was intended

来源:3-2 静态组件介绍-Unity3D角色控制

Librix0

2016-07-26 17:22

Assets/Scripts/Player.cs(9,31): warning CS0108: `Player.light' hides inherited member `UnityEngine.Component.light'. Use the new keyword if hiding was intended

写回答 关注

2回答

  • 我能吃玻璃
    2018-03-09 22:55:25

    将你的变量 “light”换个名字

  • 杨柳大帝
    2016-08-09 11:24:11

    灯光问题

Unity3D快速入门

本课程为Unity 3D入门教程,快速学会用Unity开发游戏

145914 学习 · 326 问题

查看课程

相似问题