• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,057 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)

281. 关于.ui文件生成的ts类如何正确使用这个.ui皮肤,自动生成的代码有误 [ 64%]

...I页面吧?刚打开你的项目并没有在index.html文件中看到<script src="js/ui/layaUI.max.all.js"></script>这一行代码(UI的js引用) 你回到UI编辑模式下导出下UI,然后重新运行项目就好了 新建的UI示例项目是有ui引用的例子,...

来源: Laya_社区 发布时间: 20180323

282. Laya.Browser.window.wx 找不到这个对象 [ 64%]

...什么文件。 lock_neo • 2018-06-03 11:51 文件的话,引入了<script type="text/javascript" src="libs/laya.wxmini.js"></script>,这个,然后在开始的时候进行了Laya.MiniAdpter.init(true);,接着就尝试console.log(Laya.Browser.window.wx); 是未定...

来源: Laya_社区 发布时间: 20180602

283. 进度条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ProgressBar }) public progressBar: Laya.ProgressBar; @property({ type: Laya.Text }) public loadText: Laya.Text; //组件被激活后执行,此时所有节点和组件均...

来源: Laya3.0_文档 发布时间: 20251010

284. LayaAir开发笔记(1)五十音图连连看 [ 64%]

...title> </head> <body bgcolor="gainsboro"> </body> <script src="libs/laya.core.js"></script> <script src="linkgame.js"></script> </html> 再建立个linkgame.js,用下列代码进行初始化。个人建议把窗口初始化成16:9的,否则全...

来源: Laya_社区 发布时间: 20160623

285. 打开新窗口被拦截,同样的方法用egret和其他h5工程都没有问题 [ 64%]

...www.baidu.com"; goToNewWindow(url); } 这是index.html的js方法 <script> function goToNewWindow(payurl) { var a = $("<a href='"+payurl+"' target='_blank'>click</a>").get(0); console.log("aaa",a); var e = document.createEvent('MouseEvents'); e.in...

来源: Laya_社区 发布时间: 20180321

286. 引用3d物理引擎失败,有文件丢失 Laya3D._physics3D.btVector3 找不到 [ 64%]

.../bin/js/bundle.js:51762:26)     index.html 已经有引用了    <script type="text/javascript" src="libs/laya.physics3D.js"></script>  2018-10-14 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ...

来源: Laya_社区 发布时间: 20181014

287. as hello world 背景还是黑色 [ 64%]

...:none;overflow-x:hidden;overflow-y:hidden;background-color: #000;'> <script src='LayaSample.max.js' loader='laya'></script> </body> </html> 背景没有赋值成黑色 2017-07-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...

来源: Laya_社区 发布时间: 20170711

288. 组件属性的代码使用 · LayaAir3.4 · 引擎文档 · LAYABOX [ 63%]

...所示: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type : Laya.Sprite}) public spr: Laya.Sprite; onAwake(): void { this.spr.size(512, 313); //设置Sprite大小 this.spr.loadImage("atlas/comp/image.png"); //添加纹理 } } 效果如...

来源: Laya3.0_文档 发布时间: 20251010

289. 救命啊,遇到苹果爸爸 Guideline 2.5.2 [ 62%]

...r:, performSelector:, method_exchangeImplementations(), and running remote scripts in order to change app behavior and/or call SPI, based on the contents of the downloaded script. Even if the remote resource is not intentionally malicious, it could easily be hijacked via a Man In The Middle (MiTM) a...

来源: Laya_社区 发布时间: 20191104

290. 多行输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

..., property } = Laya; @regClass() export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方...

来源: Laya3.0_文档 发布时间: 20251010