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

大约有 4,000 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0084 秒)

321. 摄像机捕捉目标(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

322. 圆环不跟随 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

323. 其他引擎的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_示例 发布时间: 20241002

324. 其他引擎的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_示例 发布时间: 20241002

325. [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

326. Camera.viewportToRay中origin与direction相等问题 [ 94%]

...法: 主要目的就是做射线碰撞检测. onStageMouseDown(): void { this._rayPt.x = Laya.MouseManager.instance.mouseX; this._rayPt.y = Laya.MouseManager.instance.mouseY; GameManager.instance.mainCamera.viewportPointToRay(this._rayPt, this._ray); let scene = this.owner.scene as Laya.Scene3D; sce...

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

327. localRotationEulerY旋转位置错误 [ 94%]

...直接使用页面定义的属性(通过IDE内var属性定义),比如this.tipLbll,this.scoreLbl,具有代码提示效果  * 建议:如果是页面级的逻辑,需要频繁访问页面内多个元素,使用继承式写法,如果是独立小模块,功能单一,建议用脚本...

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

328. 鼠标交互-修正交互区域 [ 94%]

...舞台 Laya.stage.name = "暗灰色舞台" Laya.stage.on(Event.MOUSE_DOWN, this, onDown); } function createCoralRect() { var coralRect = new Sprite(); coralRect.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height / 2, "#FF7F50"); //设置名称 coralRect.name = "珊瑚色容器"; coralRect.s...

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

329. 微信小游戏图片加载不出来 [ 94%]

...pe: Laya.Loader.ATLAS }, ]; Laya.loader.load(resArray, Laya.Handler.create(this, this.onLoaded)); Laya.loader.create("ui/BG/play-bg.png", Laya.Handler.create(this, this.onLoaded)); 在微信小游戏里面可以显示,但是实体机子上就无法显示"ui/BG/play-bg.png"这一张图,其他图...

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

330. 如果当作用域 this 被destroy ,那么this下绑定的事件需要提起清掉嘛 [ 94%]

如果当作用域 this 被destroy ,那么this下绑定的事件需要提起清掉嘛 2017-02-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 如果是组件精灵本身的事件的话...

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