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

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

401. 区块地图-等角地图 [ 51%]

...WALL; Laya.stage.bgColor = "#232628"; this.createMap(); Laya.stage.on(Laya.Event.CLICK, this, this.onStageClick); } createMap() { const TiledMap = Laya.TiledMap, Rectangle = Laya.Rectangle, Point = Laya.Point; this.tiledMap = new TiledMap(); this.tiledMap.createMap("res/tiledMap/isometric_grass_and_...

来源: Laya2.0_示例 发布时间: 20251209

402. 怎么在不同时间显示MovieClip的多个实例 [ 50%]

...var i:int; private var ani_planet:MovieClip; private function onBtnClick(e:Event):void { ani_planet = new MovieClip(); ani_planet.pivotY = ani_planet.pivotX = 350; ani_planet.x = Laya.stage.width/2; ani_planet.load("1.swf",true); ani_planet.y = i*50; addChild(ani_planet); i++; } 以上代码执行...

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

403. laya.ui.Tree [ 50%]

...| All Classes | Index | Frames No Frames TreeProperties | Methods | Events Packagelaya.uiClasspublic class TreeInheritanceTree Box UIComponent Sprite Node EventDispatcher ObjectImplements IRender Tree 控件使用户可以查看排列为可扩展树的层次结构数据。 Public Properties ...

来源: Laya2.0_api 发布时间: 20190513

404. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 50%]

...ale(0,0); //将原地图放大3倍 this.tMap.scale = 3; Laya.stage.on(Laya.Event.RESIZE,this,this.resize); Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.resize(); } //地图加载完成的回调 private completeHandler(e: any...

来源: Laya3.0_文档 发布时间: 20251010

405. laya.ui.CheckBox [ 50%]

...ll Classes | Index | Frames No Frames CheckBoxProperties | Methods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button Component Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显...

来源: laya_api 发布时间: 20170929

406. laya.display.Input [ 50%]

... All Classes | Index | Frames No Frames InputProperties | Methods | Events | Constants Packagelaya.displayClasspublic class InputInheritanceInput Text Sprite Node EventDispatcher Object Input 类用于创建显示对象以显示和输入文本。 Input 类封装了原生的文本输入框...

来源: Laya2.0_api 发布时间: 20190513

407. matter.js mouseconstraint在微信小游戏中无效 [ 50%]

...中mouseConstraint无法拖拽刚体,ide里是正常的。添加Matter.Events.on(mouseConstraint, 'mousedown')测试,微信小游戏里有响应,但e.mouse里的参数无效 chrome调试输出mouse参数正常。  微信小游戏里参数NaN。 2018-05-20 0 0 分享 微博 QZONE 微信 为什...

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

408. laya.d3.core.particleShuriKen.ShuriKenParticle3D [ 49%]

... | Index | Frames No Frames ShuriKenParticle3DProperties | Methods | Events | Constants Packagelaya.d3.core.particleShuriKenClasspublic class ShuriKenParticle3DInheritanceShuriKenParticle3D RenderableSprite3D Sprite3D ComponentNode Node EventDispatcher Object ShuriKenParticle3D 3D粒子。 P...

来源: laya_api 发布时间: 20170929

409. ls场景文件通过Laya.loader.create()预加载后stage.destroyChildren()出现异常Cannot read property 'visible' of null [ 49%]

...ll   附Demo。   想做不同场景之间的切换。 spriteBtn.on(Laya.Event.CLICK, this, function (e) { Laya.stage.destroyChildren(); newScene(); });问题:LayaAirUnityPlugin 1.1.0导出了 ls 场景文件,在通过Laya.loader.create()预加载后。在3次Laya.Scene.load()后,最后一...

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

410. 一个简单的bug请官方人自己测试一下_带示例代码 [ 49%]

.../测试崩溃代码结束 }同样看看laya2.0的项目 onTipClick(e: Laya.Event): void { //测试崩溃代码 var a = undefined; var b = a.id; //点击游戏界面.虽然有报错,但是不会卡死游戏进程 //测试崩溃代码结束 }两种完全不一样的效果, 2.0不会卡死.. 这时你...

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