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

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

321. 设置遮罩(TypeScript-LayaAir基础篇(TS)-位图) [ 94%]

...0); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.Res = "res/img/monkey1.png"; //先加载图片资源,在图片资源加载成功后,通过回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private gr...

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

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

按照范例写的碰撞一直检测不到 this.outHitInfo.distance this.ray.origin = rayOrigin; //物理射线与碰撞器相交检测 Laya.Physics.rayCast(this.ray,this.outHitInfo,5); //如果未有碰撞则返回 if(this.outHitInfo.distance < 0)speedX = speedZ = 0; console.log('hit'+ Laya.Phy...

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

323. 音频-播放演示 [ 94%]

...leMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } setup() { const Event = Laya.Event; var gap = 10; //创建一个Sprite充当音效播放按钮 let soundButton = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + g...

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

324. H5页面的骨骼动画不能显示完整,兼容性问题? [ 94%]

...整,兼容性问题? // 加载动画 loadAni(): void { var aniPath = this.ANIS[this.fishIndex]; this.mFactory = new Laya.Templet(); this.mFactory.on(Laya.Event.COMPLETE, this, this.parseComplete); this.mFactory.loadAni(aniPath); } // 动画解析完成,添加到舞台,并且开始swim parseCom...

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

325. this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 [ 94%]

this.btClose1.on(Laya.Event.CLICK,null,this.close);报错 this.btClose1.on(Laya.Event.CLICK,null,this.close); 这句代码报错  附件 : --> 2017-06-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 cuixueyin...

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

326. 摄像机捕捉目标(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 94%]

... private _up = new Laya.Vector3(0, 1, 0); ``` ```typescript //点击事件 this.changeActionButton.on(Laya.Event.CLICK, this, function(){ this.index++; if (this.index % 3 === 1 ){ //摄像机捕捉模型目标 this.camera.transform.lookAt(this.box.transform.position, this._up); } else if (this.index...

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

327. 圆环不跟随 sprite 一起缩放? [ 94%]

...GameMain{ constructor() { Laya.init(Browser.width, Browser.height, WebGL); this.CreateCircle(); // this.CreateRectangle(); } private firstSp: Laya.Sprite; private _adaptSp: Laya.Sprite; private _pointList : Point[]; private _rootSp : Laya.Sprite;  public CreateCircle() { this._rootSp = new Laya.Spr...

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

328. 其他引擎的Demo-Example_05 [ 94%]

....SCALE_FULL; setup(); })(); function setup() { Laya.stage.on(Event.RESIZE, this, onResize); makeObject(0); for (var i = 0; i objs) { current = 0; } makeObject(current); } function makeObject(t) { var xd; var i; switch (t) { case 0: for (i = 0; i tpoint1[i]) { tpoint1[i] = tpoint1[i] + 1; } if (point...

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

329. 其他引擎的Demo-Example_05 [ 94%]

....SCALE_FULL; setup(); })(); function setup() { Laya.stage.on(Event.RESIZE, this, onResize); makeObject(0); for (var i = 0; i objs) { current = 0; } makeObject(current); } function makeObject(t) { var xd; var i; switch (t) { case 0: for (i = 0; i tpoint1[i]) { tpoint1[i] = tpoint1[i] + 1; } if (point...

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

330. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 94%]

...= Laya.SpineTemplet; class SpineBinary {     constructor() {         this.aniPath = "res/powerup-pro.skel";         this.index = -1;         // Laya.init(Browser.width, Browser.height, WebGL);         // Laya.stage.scaleMode = Stage.SCALE_NOSCALE;         // Laya.stage.bgColor ...

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