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

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

471. LayaNative ShapeCast闪退 [ 84%]

...溃         scene.physicsSimulation.shapeCastAll(colliderShape, new Laya.Vector3(-10,0,0), new Laya.Vector3(10,0,0), hitResults);         // ---------代码结束          // ---------这部分代码不会崩溃         // scene.physicsSimulation.raycastAllFr...

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

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. [LayaAirIDE3]2d相机打包后问题 [ 84%]

...边界     private visualizeBoundaries() {         const graphics = new Laya.Sprite();         this.owner.addChild(graphics);         this.addBoundaryLabels();     }      private addBoundaryLabels() {         const minXLabel = new Laya.Text();         minXLabel.text = `min...

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

474. 在 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

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. 文本-单行输入 [ 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_示例 发布时间: 20260303

477. 性能测试-卡通人物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_示例 发布时间: 20260303

478. 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

479. 骨骼动画-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_示例 发布时间: 20260303

480. 用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