大约有 1,442 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0057 秒)
Laya_社区(922) Laya2.0_文档(177) Laya_示例(132) Laya2.0_示例(115) Laya3.0_api(61) Laya3.0_文档(33) laya_api(1) Laya2.0_api(1)
...参数,如设置是否抗锯齿,请在初始化引擎之前设置。 Stage Stage是一个单例舞台类,显示列表的根节点,所有显示对象都在舞台上才能被显示。Stage中的_loop()函数就是帧循环函数,函数内部调用render函数用于渲染当前context渲染...
来源: Laya_社区 发布时间: 20200925
...i = new Laya.Animation(); roleAni.loadImages(); roleAni.play(); Laya.stage.addChild(roleAni); 这样就会报路劲错误 var urls = [ 'img/food/f1.png', 'img/food/f2.png', 'img/food/f3.png', 'img/food/f4.png', 'img/food/f5.png', 'img/food/f6.png', 'img/food/f7.png', 'img/food/f8.png', ...
来源: Laya_社区 发布时间: 20170718
...al() { Laya.init(800, 500, WebGL); Laya.stage.bgColor = "#ffffff"; console.log(Laya.Render._mainCanvas); Laya.Render._mainCanvas.source.style.top = "50px"; this.setup(); const parent = document.getElementById("preview")...
来源: Laya_社区 发布时间: 20201130
... */ onAwake(): void { let opendata = new Laya.OpenDataContextView(); Laya.stage.addChild(opendata); opendata.pos(100,100); opendata.size(500,500); } } 3. 作用与效果 开放数据域一般用来显示好友排行榜,需要发布为微信小游戏,然后用微信开发者工具才能看到效...
来源: Laya3.0_文档 发布时间: 20240910
...题是我代码导致还是就是有这问题呢 this.yzsAni.play(); Laya.stage.addChild(this.yzsAni); 连续调用不同动画的play,经常会出现动画不动的问题是我代码导致还是就是有这问题呢 2017-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20171103
...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
...e { onAwake(): void { this.bar.value = 1; this.value.visible = false; Laya.stage.on(Laya.Event.CLICK, this, this.onHurt); } onHurt(): void { this.bar.value = this.bar.value - 0.9; this.value.y = 35; this.value.visible = true; Main.instance.animator.play("stun"); Laya.Tween.create(this.value).to("y",...
来源: Laya3.0_文档 发布时间: 20250214
...Laya.Vector3(0, 0, 0)); //以鼠标点击的点作为原点 point.x = Laya.stage.mouseX; point.y = Laya.stage.mouseY; //计算一个从屏幕空间生成的射线 _camera.viewportPointToRay(point, ray); /* ……省略若干代码 */ 4.3 使用物理射线 在LayaAir 3D中实现射线检测是使用...
来源: Laya3.0_文档 发布时间: 20250103
...r rect=new Laya.Rectangle(-200,-200,300,300); mArmature.hitArea=rect; Laya.stage.addChild(mArmature); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName("goblin"); mArmature.play(0, false); mArmature.stop(); } function onChangeSkin() { console.log("执行了点击"); } })(); 附...
来源: Laya_社区 发布时间: 20170830
...class SwfBinary extends Sprite { public function SwfBinary() { super(); if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { var loader:Loader=new Loader(); var context:LoaderContext=new LoaderContext(false,ApplicationDomain.cu...
来源: Laya_社区 发布时间: 20151224