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

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

281. 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

282. 进度条组件 · LayaAir3.3 · 引擎文档 · 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

283. 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

284. 打开新窗口被拦截,同样的方法用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

285. 引用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

286. 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

287. 组件属性的代码使用 · LayaAir3.3 · 引擎文档 · 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

288. 救命啊,遇到苹果爸爸 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

289. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · 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

290. 角色控制器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...roperty } = Laya; @regClass() export default class DirectMove extends Laya.Script { declare owner: Laya.Sprite3D; private characterController: Laya.CharacterController; onAwake(): void { // 获取 角色控制器 组件并赋值给 characterController this.characterController = this.owner.getCompone...

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