大约有 143 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0039 秒)
Laya3.0_api(61) Laya3.0_文档(44) Laya_社区(16) Laya2.0_api(7) laya_api(6) Laya2.0_文档(5) Laya2.0_示例(2) Laya_示例(2)
...通过下面的代码,可以初始化A*的地图数据 //读取地形图 this.aStarMap = Loader.getTexture2D("res/threeDimen/scene/TerrainScene/Assets/AStarMap.png"); //获得地图数据 var aStarArr = this.createGridFromAStarMap(this.aStarMap); //使用astar初始化地图数据 this.graph = new...
来源: Laya3.0_文档 发布时间: 20230303
...多个图集 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onload)); 这样写只能添加一个图集,我想问有没有办法用一句代码同时添加其他图集 2018-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容...
来源: Laya_社区 发布时间: 20180809
...(var m: number = 0; m < 20; m++) { data.push({ m_label: "No." + m }); } this.list.array = data; } } 代码中,m_label的命名要与List列表项下的Label组件命名相同。 1.2.5 运行查看效果 将脚本挂载到Scene2D场景上,然后将List组件拖入到脚本暴露出来的属性...
来源: Laya3.0_文档 发布时间: 20251010
...。 * @param delay 延迟几帧(单位为帧)。 * @param caller 执行域(this)。 * @param method 定时器回调函数。 * @param args 回调参数。 * @param coverBefore 是否覆盖之前的延迟执行,默认为 true 。 */ frameOnce(delay: number, caller: any, method: Function, args: any[...
来源: Laya3.0_文档 发布时间: 20251010
...me":"item1", "scale":[2,2] }, "child":[ { "type":"Text", "props":{ "text":"this is a test", "var":"label", "rumtime":"" } } ] } ClassUtils getInstance(className:String):*[static] 根据名称创建 Class 实例。 ClassUtils getRegClass(className:String):*[static] 返回注册 Class 映射。 ...
来源: laya_api 发布时间: 20170929
... args:Array = null):void 延迟执行。 Parameters caller:* — 执行域(this)。 method:Function — 定时器回调函数。 args:Array (default = null) — 回调参数。 clear()method public function clear(caller:*, method:Function):void 清理定时器。 Parameters caller:* — 执行...
来源: laya_api 发布时间: 20170929
... args:Array = null):void 延迟执行。 Parameters caller:* — 执行域(this)。 method:Function — 定时器回调函数。 args:Array (default = null) — 回调参数。 clear()method public function clear(caller:*, method:Function):void 清理定时器。 Parameters caller:* — 执行...
来源: Laya2.0_api 发布时间: 20190513
...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.btn.scale(5, 5); //放大五倍 this.btn.skin = "atlas/comp/button.png"; //皮肤 this.btn.stateNum = 3; //皮肤状态 this.btn.label = "确定"; //文本标签 this.btn.labelFont = "宋体"; //文本标签字体 this.btn...
来源: Laya3.0_文档 发布时间: 20251010
...ory=3d&group=Physics3D&name=PhysicsWorld_RayShapeCast)); ```typescript this.hitResult = new Laya.HitResult(); this.hitResults= []; //是否穿透 if (this.castAll) { //进行射线检测,检测所有碰撞的物体 this.scene.physicsSimulation.raycastAllFromTo(this.from, this.to, this.hitResults...
来源: Laya2.0_文档 发布时间: 20210715
...说明 1、在laya.d3.js中找到Camera.render函数 2、render函数中,this._prepareCameraToRender();这一行后面添加如下代码 if(this._scene.lightCullingMask && this._scene.lightCullingMask instanceof Function){this._scene.lightCullingMask(scene,this);} 3、对想要开启灯光...
来源: Laya_社区 发布时间: 20200110