• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 732 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0079 秒)

421. laya.spine.SpineSkeleton_API3.0 [ 71%]

...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize externalSkins filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY playState rotation scaleX scal...

来源: Laya3.0_api 发布时间: 20231115

422. laya.ui.ComboBox_API3.0 [ 71%]

...omboBox_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/button.png", Handler.create(this,onLoadComplete));//加载资源。 } private function onLoadComplete():void { trace("资源加载完成...

来源: Laya3.0_api 发布时间: 20231115

423. laya.ui.Dialog_API3.0 [ 71%]

...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load("resource/ui/btn_close.png", Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { dialog = new Dialog_I...

来源: Laya3.0_api 发布时间: 20231115

424. 关于Tween类多个对象同时缓动的时候过一段时间会不同步 [ 71%]

...画方法然后同步执行 private function loadComplete2():void { Laya.stage.addChild(view); for(var i:int=1;i<=7;i++) { var tempItem:ItemUi=new ItemUi() Laya.stage.addChild(tempItem); tempItem.x=i*100; tempItem.y=200; tempItem.setAnimated(true); arr.push(tempItem); // this.playAni(tempItem,new...

来源: Laya_社区 发布时间: 20180524

425. 图集动画没有显示 [ 71%]

...loadAtlas(AniConfPath); ani.interval = 30; ani.index = 1; ani.play(); Laya.stage.addChild(ani); } 2017-09-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 scorpio 赞同来自: 这个哪里有问题吗?   2...

来源: Laya_社区 发布时间: 20170920

426. 请问UI之间的场景切换要怎么写 [ 71%]

...} return sg_index; })(ui.sg_indexUI); Laya.init(1350,760,Laya.WebGL); Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; Laya.stage.alignH = "center"; Laya.stage.scaleMode = "showall"; Laya.stage.screenMode = "horizontal"; Laya.loader.load("res/atlas/sanguo.json",Laya.Handler.create(this,onLoaded),null,La...

来源: Laya_社区 发布时间: 20170725

427. laya.display.EffectAnimation_API3.0 [ 70%]

...s count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize effectClass effectData filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea index interval is3D isPlaying mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY p...

来源: Laya3.0_api 发布时间: 20231115

428. 拖动地图的时候怎么设置地图不会超出屏幕啊,例如官网的滚动地图 [ 70%]

...ove(e:*=null):void { //移动地图视口 tiledMap.moveViewPort(mX - (Laya.stage.mouseX - mLastMouseX), mY - (Laya.stage.mouseY - mLastMouseY)); }控制好moveViewPort的视图X和视图Y就可以了,判断下视图X和视图Y的拖拽范围 譬如var starX:Number=mX - (Laya.stage.mouseX - mLastMo...

来源: Laya_社区 发布时间: 20170119

429. 图片加载问题 [ 70%]

...加载问题 var s:Sprite = new Sprite; s.loadImage("res/soil.png"); Laya.stage.addChild(s); chrome报错:Access to Image at 'file:///E:/study/LayaAirStudy/bin/h5/res/soil.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed access. 2017...

来源: Laya_社区 发布时间: 20170116

430. 自动旋转后残影 [ 70%]

...nfig.isAlpha = true; Config.isAntialias = true; Laya.init(0, 0,true); Laya.stage.bgColor = "#000000"; ChangeSize(); Laya.timer.once(1000,this,function start():void{ Laya.stage.on(Event.RESIZE,this,onResize); }); }   protected function HengPing(): void { trace("设置横屏" ); var layaCanvas:Object...

来源: Laya_社区 发布时间: 20190520