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

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

471. 为什么我获取不到鼠标滚轮的delta值,我查看laya.events.Event 里面没有这个属性 [ 84%]

...ya.Stage.SCALE_FULL; // Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = this.scene.addChild(new Laya.Camera()) as Laya.Camera; this.camera.transform.position = new Laya.Vector3(0, 0, 5); this.camera.transform.rotate(new Laya.Vector3(0, 0, 0), true, f...

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

472. iphoneX环境下新手引导的抠图透明区域为黑色,其它机型都是正常的。 [ 84%]

...明区域为黑色,其它机型都是正常的。 this.guideContainer = new Sprite(); this.guideContainer.cacheAs = "bitmap"; Utils.GuideLayer.addChild(this.guideContainer); this.guideContainer.on(Laya.Event.CLICK, this, this.nextStep); this.mouseEnabled = false; var maskArea: Laya.Sprite = new La...

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

473. 在 tiledmap 插入一个精灵在上面 [ 84%]

...r.ATLAS); }   onLoaded(){   console.info("onLoaded");   this.tiledMap = new Laya.TiledMap();   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();   th...

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

474. 文本-单行输入 [ 84%]

...createInput(); } createInput() { const Input = Laya.Input; var inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 移动端输入提示符 inputText.prom...

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

475. laya.d3.core.Bounds_API3.0 [ 84%]

...t getMax getMin setCenter setExtent setMax setMin Constructors constructor new Bounds(min: Vector3, max: Vector3): Bounds Defined in laya/d3/core/Bounds.ts:125 创建一个 Bounds 实例。 Parameters min: Vector3 min 最小坐标 max: Vector3 max 最大坐标。 Returns Bounds Properties _boundBox ...

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

476. 性能测试-卡通人物2 [ 84%]

...abel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadImages(images); animation.interval = 70; animation.play(0); this.addChild(animation); } Character.prototype.createBloodBar = function() { bloodBar = new Sprite(); bloodBar.loadImage("../../res/c...

来源: Laya_示例 发布时间: 20251130

477. laya.CylinderMesh is not a constructor [ 84%]

...问题了,引擎更新后文档和示例没更新。   新的方法是new Laya.PrimitiveMesh.create【加上对应体的名字】。 如圆柱是:new Laya.PrimitiveMesh.create Cylinder()   2019-06-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...

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

478. 骨骼动画-Spine事件 [ 84%]

...Mode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#ffffff"; mLabelSprite = new Sprite(); Stat.show(); this.startFun(); } startFun() { const Templet = Laya.Templet, Event = Laya.Event; const mAniPath = "res/spine/spineRes6/alien.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, this.pa...

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

479. 用layaair如何加載蒙皮動畫,请问怎么加载.lm文件和.ani文件,有沒有實例可以看下 [ 84%]

...沒有實例可以看下 代碼如下: this.scene = Laya.stage.addChild(new Laya.Scene()); //加载相机 this.camera = this.scene.addChild(new Laya.Camera()); this.scene.CurrentCamera = this.camera; //男角色 this.roleMan = new Laya.MeshSprite3D(Laya.Mesh.load("3d/man/CunMinNan-cunminnan.lm"));...

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

480. LayaAir2.0 beta3 对骨骼动画应用发光滤镜的问题 [ 84%]

...---   针对大大的回复 ,我贴下关键代码, 就想说明我只new了一个发光滤镜,并没有一直new SpineMgr.inst.loadSpine(['spine/yasuo'], this, ()=>{ this._spine = SpineMgr.inst.createSpine('spine/yasuo.sk', 0); // this._spine.showSkinByIndex(1); this._spine.play('yidonggo...

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