大约有 3,091 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0084 秒)
Laya_社区(2361) Laya2.0_文档(237) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(36)
...发起获得最短路径的调用: //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { //起始和目标点 var start = this.graph.grid[this.startPoint.x][this.startPoint.y]; var end = this.graph.grid[this.endPoint.x][this.endPoint.y]; //调用A* serach方法...
来源: Laya3.0_文档 发布时间: 20230303
...bugPanel调试面板 Laya.enableDebugPanel(); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; var Img:Sprite = new Sprite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); } } } ``` 运行效果如图1所示  (图1) ### 2、刷新显...
来源: Laya2.0_文档 发布时间: 20210714
...t — DOM元素引用 coordinateSpace:Sprite — 坐标空间,不能是Stage引用 x:Number — 相对于coordinateSpace的x坐标 y:Number — 相对于coordinateSpace的y坐标 width:Number — 宽度 height:Number — 高度 getGID()method public static function getGID():int获取...
来源: Laya2.0_api 发布时间: 20190513
... tiledMap.createMap("../res/dt.json", new Rectangle(0, 0, Laya.stage.width, Laya.stage.height), null); 调用后报错TypeError: Cannot read property 'split' of undefined at TiledMap.__proto.mergePath (file:///C:/Users/Administrator/Documents/myLaya/Hello/bin/libs/laya.tiledmap.j...
来源: Laya_社区 发布时间: 20181026
...内存,以字节为单位。Stat loopCount : int = 0[static] 主舞台 Stage 渲染次数计数。 Stat octreeNodeCulling : int = 0[static] 八叉树节点剔除次数。Stat onclick : Function[static] [write-only] 点击性能统计显示区域的处理函数。 Stat renderBatches : int...
来源: Laya2.0_api 发布时间: 20190513
...init() { // 设置背景色为场景高度 this.box_color_bg.height = Laya.stage.height; } onEnable() { this.init(); // 判定是注册还是忘记密码 if (GameData.I.isReg) { this._regMode(); } else { this._forgetMode(); } // 添加取消事件 this.lb_cancel.on(Laya.Event.CLICK, this, () => {...
来源: Laya_社区 发布时间: 20200410
...rt default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.a...
来源: Laya_社区 发布时间: 20240305
...script //初始化引擎 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var ...
来源: Laya2.0_文档 发布时间: 20210715
...or() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Handler.create(this,this.onLoaded)); } private onLoaded():void{ //实例化导出的U...
来源: Laya2.0_文档 发布时间: 20210715
...ton.pos(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectangle.width, rectangle.h...
来源: Laya_社区 发布时间: 20171114