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

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

591. 骨骼动画-Spine事件 [ 82%]

...height,WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "../../res/spine/spineRes6/alien.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.on(Event.ERROR, this, onError); mFact...

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

592. transform的旋转和移动是异步方法吗? [ 82%]

...了添加到场景中的代码 // 先移动锚点 cube.transform.pivot = new Vector3(                 cube.transform.pivot.x + 0,                 cube.transform.pivot.y - height/2,                 cube.transform.pivot.z - width/2); // 旋转             c...

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

593. 照着官方文档写的 Dialog 报错? [ 82%]

...unction () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded)); }; LoadResource.prototype.onPreloaded = fun...

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

594. 多重遮罩显示异常 [ 82%]

...ds Laya.Sprite { constructor() { super(); this.init(); } init() { let bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width = 500; this.panel.height = 500; this.panel.vScrollBarSkin = ''; this.panel.hScrollBarSkin = '...

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

595. 微信小游戏 sharedCanvas 创建的Texture,能否再调用Texture.createFromTexture创建新纹理 [ 82%]

...re, 基于这个Texture创建的image是不显示的 var texture:Texture = new Texture(Browser.window.sharedCanvas); var texture2:Texture = Texture.createFromTexture( texture, 0,0, 100, 100); //取前面100像素 var image:Image=new Image() image.texture=texture2 2018-05-31 添加评论 免费帖 --...

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

596. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 82%]

...面。如图1所示。 ```typescript //平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass...

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

597. 物理碰撞器(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 82%]

...1所示。 ```typescript //平面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 10, 10, 10))) as MeshSprite3D; //新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, f...

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

598. 2.0版本,Particle2D is not a constructor [ 82%]

... } onAssetsLoaded(){ let pg = Laya.loader.getRes("res/213.part"); let pd = new Laya.Particle2D(pg); } }213.part是设计模式下生成   附件 : --> 2018-11-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Lay...

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

599. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 82%]

...nt:Laya.BitmapFont; constructor() { Laya.init(600,400); this.mBitmapFont = new Laya.BitmapFont(); this.mBitmapFont.loadFont("../laya/assets/txt.fnt", new Laya.Handler(this.onLoaded)); } private onLoaded():void { this.init(); } private init():void { this.mBitmapFont.setSpaceWidth(10); Laya.Text.regis...

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

600. 绘制矩形与圆角矩形(TypeScript-LayaAir基础篇(TS)-矢量图) [ 82%]

...  private drawSomething(): void {             this.sp = new Sprite();             Laya.stage.addChild(this.sp);            //画矩形             this.sp.graphics.drawRect(20, 20, 100, 50, "#ffff00");         }     } } new laya...

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