[Unreal]请问引擎类继承,有什么方法能从生产的BP再找回对应的JS类对象? #1438
Answered
by
chexiongsheng
watsonsong
asked this question in
Q&A
-
RT,有时候从BP的引用变量等地方可能拿到一个引擎类继承的对象,也就是生成在Content/Blueprints/TypeScript下面的BP以及他们的子类。 虽然可以把要访问的方法或者属性都暴露成蓝图变量,但如果纯JS访问是否会更高效一些在已知蓝图一定是一个JS对象的情况下。 |
Beta Was this translation helpful? Give feedback.
Answered by
chexiongsheng
Jul 18, 2023
Replies: 2 comments 2 replies
-
直接as似乎在报错,例如 直接as的话ts的类型检查会报错,还是说其实JS层面可以直接转换使用? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
as any as MyClass