大约有 2,991 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0104 秒)
Laya_社区(2265) Laya2.0_文档(235) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(34)
...皮肤 skeleton0.showSkinByIndex(1); //播放 skeleton0.play(0,true); Laya.stage.addChild(skeleton0); //创建第二个动画 var skeleton1; skeleton1=templet.buildArmature(0); skeleton1.pos(500,700); skeleton1.showSkinByIndex(1); skeleton1.play(0,true); Laya.stage.addChild(skeleton1); } ``` **二...
来源: Laya2.0_文档 发布时间: 20210715
LayaAir2.0里不需要Laya.stage.add了,只需要用Laya.Scene.open就可以了? 2019-02-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: Laya.Scene.open 是打开场景 切换或...
来源: Laya_社区 发布时间: 20190218
...的问题!! 在鼠标控制飞机移动时,写成this.hero.pos(Laya.stage.mouseX, Laya.stage.mouseY);是没有用的,可以看到hero容器的坐标变化了,但是机身显示还在原地并未移动, 但如果设置this.hero.aniBody.pos(Laya.stage.mouseX, Laya.stage.mouseY), 机身...
来源: Laya_社区 发布时间: 20180502
...回复 shiyang 赞同来自: 直接unity里面预览,控制台输入Laya.stage.getChildAt(0).getChildByName("A").transform.lookAt(Laya.stage.getChildAt(0).getChildByName("B").transform.position,new Laya.Vector3(0,1,0),false,false) 指向错误 下面两句修正方向 Laya.stage.getChildAt(0)...
来源: Laya_社区 发布时间: 20220923
...Below is a rendering of the page up to the first error." (function() { var Stage = Laya.Stage; var Text = Laya.Text; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(200, 300, WebGL); Laya.stage.alignV = "middle"; Laya.stage.alignH = "center"; ...
来源: Laya_社区 发布时间: 20171113
...比。 */ static get width(): number { Browser.__init__(); return ((ILaya.stage && ILaya.stage.canvasRotation) ? Browser.clientHeight : Browser.clientWidth) * Browser.pixelRatio; } /** * @en The physical height of the browser window, taking into account the device pixel ratio. * @zh 浏览...
来源: Laya3.0_文档 发布时间: 20251010
...n = "middle"; var offsetPos={offsetX:100,offsetY:100}; letterText.x = Laya.stage.width - letterText.width>>1 +offsetPos.offsetX; letterText.y = 400; Laya.Tween.from(letterText,{y:100},3,Laya .Ease.backOut,new Handler(this,this.onEaseComplete),1,null,true); function onEaseComplete(){ console.lo...
来源: Laya_社区 发布时间: 20180620
...D项目, 用的是Canvas, 然后cavas是随浏览器窗口缩放的 Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; 有时候会感觉, 某些地地方不清晰。 其实不用上传Demo, 就是想问一下, 在...
来源: Laya_社区 发布时间: 20170807
... QZONE 微信 shiyang 赞同来自: package { import laya.display.Stage; import laya.events.Event; import laya.net.Loader; import laya.ui.Button; import laya.utils.Handler; import laya.utils.Stat; import ui.TaskUI; import view.T...
来源: Laya_社区 发布时间: 20180425
...应同一个点击回调,但event的 target和currentTarget相同都是stage对象,怎么解释呀 实际代码中,两个按钮通过currenttarget,确实能够区分开来,但是打印的值,currenttarget和target值都是stage对象,这个问题谁能给解释下呀? 附件 : --> 20...
来源: Laya_社区 发布时间: 20180301