大约有 478 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
Laya_社区(254) Laya_示例(61) Laya3.0_api(38) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(18)
...保对象能够被作为垃圾回收: //创建一个Sprite实例 var sp:Laya.Sprite = new Laya.Sprite(); //将sp内部引用设置为null sp.destroy(); 当对象设置为null,不会立即将其从内存中删除。只有系统认为内存足够低时,垃圾回收器才会运行。内存分配...
来源: Laya3.0_文档 发布时间: 20251010
...his.lastMouseY = NaN; this.yawPitchRoll = new Laya.Vector3(); // //实例化一个四元素 this.tempRotationZ = new Laya.Quaternion(); //鼠标是否按下默认为没有按下 this.isMouseDown = false; //旋转速...
来源: Laya_社区 发布时间: 20170810
...一系列虚方法。详细使用可以去API中查看([地址](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=3D&class=laya.d3.component.Script3D)),在3D世界的开发中脚本类会在很多地方被使用,该组件将会在后面的脚本篇中详细的讲解,在本...
来源: Laya2.0_文档 发布时间: 20210714
LayaAir引擎 socket大型项目回调 /** * 创建时间 2017/04/16 */ module PomeloLaya{ export class Pomelo{ static DEBUG:boolean = true; static EVENT_IO_ERROR:string = "io-error"; static EVENT_CLOSE:string = "close"; static EVENT_KICK:string = "onKick"; static EVENT_HEART_BEAT_TIMEOUT:string = ...
来源: Laya_社区 发布时间: 20180119
...码】加载dom音频报错,怎么回事? 官网例子:https://ldc.layabox.com/doc/?nav=zh-as-3-4-1 其中,加载dom音频报错,怎么回事? package{import laya.events.Event;import laya.net.HttpRequest;import laya.net.Loader;import laya.utils.Browser; public class Main{private var Aud...
来源: Laya_社区 发布时间: 20181023
...找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 layabox小高 赞同来自: 您好,我们并未复现您所说的问题,真机,微信小游戏平台,浏览器,均未复现。 2022-11-17 0 1 分享 微博 QZONE 微信 zkang5 赞同来自: 附件重新上传了一...
来源: Laya_社区 发布时间: 20221117
进度条组件(ProgressBar)一、通过LayaAir IDE创建ProgressBar组件1.1 创建ProgressBar1.2 ProgressBar属性1.3 脚本控制ProgressBar二、通过代码创建ProgressBar进度条组件(ProgressBar) 一、通过LayaAir IDE创建ProgressBar组件 ProgressBar经常被用于显示游...
来源: Laya3.0_文档 发布时间: 20251010
...找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: dcc不能加版本号,否则就被认为是另外的资源,导致缓存失效。 dcc是与cdn兼容的,dcc的版本号文件每次都会回源拉取,根据这个信息,能判断什么文件...
来源: Laya_社区 发布时间: 20180209
...Target").getChildByName("MoveBlockPivot").getChildByName("TargetGuard") as Laya.Sprite3D; Laya.stage.on(Laya.Event.KEY_PRESS, this, this.KeyPress); this.pivot = s.getChildByName("target_root").getChildByName("PendulumCircleTarget").getChildByName("MoveBlockPivot") as Laya.Sprite3D; let newRot = new ...
来源: Laya_社区 发布时间: 20171228
...发现有几个问题,想请教一下; var progressBar; (function () { Laya.init(720, 1280); var pro1={url:"comp/BG1.jpg",type:Laya.Loader.IMAGE}; var pro2={url:"comp/BG1.jpg",type: Laya.Loader.IMAGE}; var proArr = []; proArr[0]=pro1; proArr[1]=pro2; Laya.loader.load(proArr,Laya.Handler.create(t...
来源: Laya_社区 发布时间: 20170701