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

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

1671. 运行第一个hello,一直黑屏,没有东西显示出来 如何解决? [ 66%]

...本的显示起点位置X,Y txt.pos(60,100); //设置舞台背景色 Laya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); 2017-10-19 0 0 分享 微博 QZONE 微信 keailuo 赞同来自: 这个是整个demo hello.rar 2017-10-19 0 0 分享 微博 QZONE 微信 为...

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

1672. sprite.mask的疑问 [ 66%]

...      private a ()     {         let a:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("A") as Sprite;         let b:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("B") as Sprite;         b.removeSelf();         a.ma...

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

1673. 在 tiledmap 插入一个精灵在上面 [ 66%]

...);   this.tiledMap.createMap("desert.json", new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height),   Laya.Handler.create(this,this.loadedMap)); }   loadedMap(){   this.sp=new Laya.Sprite();   this.sp.graphics.drawRect(0,0,100,100,"#FF0000");   var mapLayer = this.tiledMap.getLayerByInd...

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

1674. 模仿教程里的打地鼠写的代码,运行报错 [ 66%]

...unction(){ //初始化引擎 Laya.init(800,600); //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addCh...

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

1675. 按照范例写的碰撞一直检测不到 this.outHitInfo.distance [ 66%]

... this.scene = Laya.loader.getRes("h5/LayaScene_scene03/scene03.ls"); Laya.stage.addChild(this.scene); //设置场景在2D界面最后(最底层为第0层) Laya.stage.setChildIndex(this.scene, 0); //获取场景模型中的角色移动碰撞区模型 var moveArea = this.scene.getChildAt(0).getChi...

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

1676. Panel使用文档(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 66%]

...动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化Image组件 var img = new Laya.Image(); //给image添加皮肤 img.skin = "comp/image.png"; //将image添加到panel组件中 panel.addChild(img); } ```

来源: Laya2.0_文档 发布时间: 20210715

1677. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 66%]

...WebGL渲染模式 Laya.init(1334,750, WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2], Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个CheckBox实例cb1 var cb1:Check...

来源: Laya2.0_文档 发布时间: 20210714

1678. laya.ui.View_API3.0 [ 66%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scene3D s...

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

1679. TimeLine调用destroy报错&执行完成后回到起点 [ 66%]

...to.run (HMain.max.js:9196) at Timer.__proto._update (HMain.max.js:8951) at Stage.__proto.render (HMain.max.js:16932) at Stage.__proto._loop (HMain.max.js:16892) at loop (HMain.max.js:5472)    private function createTimerLine():void { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX...

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

1680. Spine切换动画后,站立动画抖动得厉害,特别是腿部 [ 66%]

...ore.js:9827)     at Timer.__proto._update (laya.core.js:9560)     at Stage.__proto.render (laya.core.js:18520)     at Stage.__proto._loop (laya.core.js:18478)     at loop (laya.core.js:5437) 2018-06-20 0 0 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 在上一部分的示例代码...

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