Unity GetComponent gets the base class — not the derived

前端 未结 0 1619
半阙折子戏
半阙折子戏 2020-12-13 08:12

Class B inherits from Class A.

I call: GetComponent.SomeFunction();

Class B is on the component, and it overrides SomeFunction()

相关标签:
回答
  • 消灭零回复
提交回复
热议问题