大约有 969 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0087 秒)
Laya_社区(501) Laya2.0_示例(94) Laya_示例(89) Laya2.0_文档(88) Laya3.0_api(63) Laya2.0_api(58) laya_api(54) Laya3.0_文档(22)
... ASDemo() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); var DesBtn:Sprite = createButton("销毁动画"); DesBtn.x = 50; DesBtn.y = 50; Laya.stage.addChild(DesBtn); //创建一个Sprite充当音乐播放按钮 var addBtn:Sprite = createButto...
来源: Laya_社区 发布时间: 20170406
...lic function LayaAirDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#EEFFCC"; sp=new Sprite(); sp.graphics.drawRect(0,0,200,200,"#FF0000"); Laya.stage.addChild(sp); Laya.timer.loop(delay,this,onLoop); } private function onLoop():void { delay-=50; sp.x+=20; Laya.timer.clear(this...
来源: Laya_社区 发布时间: 20170626
...内容相关的链接 提交 1 个回复 hj 赞同来自: Laya.init(Laya.stage.width,Laya.stage.height); 2018-09-18 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 george 相关问题 看了其他引擎才发现 LAYA 真的太太太太好...
来源: Laya_社区 发布时间: 20180918
...eigth="1040" id="game_canvas"></canvas> 在游戏里应该是Laya.stage.setScreenSize(window.innerWidth*2, window.innerHeight*2) 就可以达到上述目的 但是会出现ray射线位置偏移,需要额外的参数修正ray 如果有说错,请指正@Laya_Aaron 2018-06-04 0 0 分享 ...
来源: Laya_社区 发布时间: 20180601
...DemoLabel { public function DemoLabel() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; //---------------------------------这是用我自己写的label继承了官方的label,问题是label显示不出来,但是也无报错-------------------------------------------- var label:Lab...
来源: Laya_社区 发布时间: 20170516
ios下截图会导致全屏闪烁一下 page.drawToCanvas(Laya.stage.width,Laya.stage.height,0,0).getCanvas().toDataURL(); 测试是执行这句代码的时候发生的,实际上就是屏幕瞬间黑了一下,然后恢复。请问有解决方案吗?在android上没有出现 2017-10-25 添加...
来源: Laya_社区 发布时间: 20171025
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize editable filters focus font fontSize globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea html htmlParseOptions is3D italic leading lines mask maxChars maxScrollX maxScrollY maxWid...
来源: Laya3.0_api 发布时间: 20231115
...unction() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, ...
来源: Laya_社区 发布时间: 20181120
...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray height hide hideFlags hitArea is3D isVertical lastOffset left mask max min mouseEnabled mouseWheelEnable mouseX mouseY numChildren parent p...
来源: Laya3.0_api 发布时间: 20231115
...emo() { // 初始化舞台 Laya.init(1334,750, WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 createTween(); } //创建缓动文本 private function createTween():void { //"LayaBox"字符串总宽度 var w:int = 800; //文本创建时的起始x位置(>>在此使用右移...
来源: Laya2.0_文档 发布时间: 20210715