大约有 1,301 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0057 秒)
Laya_社区(739) Laya2.0_文档(164) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(27)
...Laya.Stage; import Tree = Laya.Tree; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; import Utils = Laya.Utils; export class UI_Tree { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE...
来源: Laya2.0_文档 发布时间: 20210714
...hongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(null, function(tex:Texture2D):void { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####
来源: Laya2.0_文档 发布时间: 20210714
... tiledMap.createMap("res/atlas/TiledMap/desert.json", viewRect, new Handler(this, completeHandler)); } /** * 地图加载完成的回调 */ function completeHandler() { //设置缩放中心为左上角 tiledMap.setView...
来源: Laya_社区 发布时间: 20180612
...ya_Aaron 赞同来自: Tween.to(this,{x:40,y:50,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onUpdate)}) 大概长这个样子 2018-07-06 0 1 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 如果会用tween 就好办, tween 里面有个 update 回调,...
来源: Laya_社区 发布时间: 20180706
..."; 或者是 let tex = new Laya.Texture(); tex.load("ui/guide01.png", Laya.Handler.create(this, ()=>{ this.img.texture = tex; })); 但是如果使用ASTC纹理时就会报错,需要使用异步的方式来处理 Laya.loader.load("ui/guide01.ktx", Laya.Handler.create(this, (res...
来源: Laya_社区 发布时间: 20220919
...ackage { import laya.ui.Tree; import laya.utils.Browser; import laya.utils.Handler; public class Tree_Example { public function Tree_Example() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar....
来源: Laya3.0_api 发布时间: 20231115
...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 大量sprite如何优化性能 laya.d3.utils.Utils3D的convert3DCoordTo2DScreenCoord这个接口api描述是不是错了? 分享:技术突破:HTML5裸跑性能已可媲美APP...
来源: Laya_社区 发布时间: 20200103
...何获取图集下的小图资源? 图集的质量可以控制吗 Laya.Handler.create和new Laya.Handler有啥区别 我这样载入场景问题出现在哪呢?? spine动画播放后图集错乱 graphics矢量图和svg矢量图有什么区别吗 问题状态 最新活动: 2017-09-04 17:31 浏...
来源: Laya_社区 发布时间: 20170903
... this._tMap.createMap("../bin/map/orthogonal-outside.json",viewRect,Laya.Handler.create(this,this.onComplete)); 附件 : --> 2020-08-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 157*****593 赞同来...
来源: Laya_社区 发布时间: 20200815
...a.d3.resource.models.SkyDome; import laya.display.Stage; import laya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; /** * ... * @author */ public class SkyDomeSample { public function SkyDomeSample() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.sta...
来源: Laya_示例 发布时间: 20251209