Quantcast
Channel: Cocos中文社区 - 最新帖子
Viewing all articles
Browse latest Browse all 495283

用text文本创建Component不能拉到编辑器上面!

$
0
0

你好,能不能说的具体一些。你是说你创建了一份 .txt 文件,然后在里头书写 Component,然后希望拉到编辑器上面么?

首先,创建的文件需要是 .js 文件。
其次,这份 js 文件需要拖到 assets 目录夹中,这样才能正确导入
最后,从 assets 目录夹中选中这份 js 文件拖动到 Inspector 中就可以为选中的节点创建 Component 了

这里并没有 bug 吧,请静下心来尝试一下。


Viewing all articles
Browse latest Browse all 495283

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>