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

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

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

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

292. 3D中摄像机绕物体旋转该如何实现? [ 88%]

... = laya.d3.math.Quaternion; /* 用法: //初始化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addCom...

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

293. 最新版本 1.7.5 beta fontClip [ 88%]

...       if (_bitmap && _sources) {                 this.graphics.clear();                 var splitArr:Array = value.toString().split('');                 for (var i:int = 0; i < splitArr.length; i++) {                     var te:Text...

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

294. 官方案例里摄像机绕物体旋转脚本的问题 [ 88%]

...CameraMoveScripts在2.0版本下有很多接口,属性不存在。比如this.camera.moveForward、 super._initialize(owner)、super._update(state)等,放在1.7版本里是有的。是不是LayaAir.d.ts有修改。现在有别的接口,方法替代吗,我在官方文档里找了好久都没...

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

295. 输入设备-指南针 [ 88%]

...stage.bgColor = "#232628"; Laya.loader.load(compassImgPath, Handler.create(this, this.init)); } init() { const Gyroscope = Laya.Gyroscope, Event = Laya.Event; // 创建罗盘 this.createCompass(); // 创建方位指示器 this.createDirectionIndicator(); // // 画出其他UI this.drawUI(); // // 创...

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

296. 分享贝塞尔曲线运动 [ 88%]

分享贝塞尔曲线运动 Laya.timer.frameLoop(1, this, this.move, [0.0003])//主控制  0.0003自己调整 private testSp:Laya.Sprite;//移动物体 private counts=0; //移动        自己做条件判断停止frameLoop private move(arg) { var t = arg * this.counts var point = this.bezier(...

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

297. 自动旋转后残影 [ 88%]

...,true); Laya.stage.bgColor = "#000000"; ChangeSize(); Laya.timer.once(1000,this,function start():void{ Laya.stage.on(Event.RESIZE,this,onResize); }); }   protected function HengPing(): void { trace("设置横屏" ); var layaCanvas:Object = Browser.getElementById("layaCanvas"); layaCanvas.width = Br...

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

298. Spine动画最后一帧无法正常显示 [ 88%]

...后发现在Skeleton::_update方法中的以下语句:var tGraphics; if (this._aniMode == 0) { tGraphics = this._templet.getGrahicsDataWithCache(this._aniClipIndex, this._clipIndex) || this._createGraphics(); if (tGraphics && this.graphics != tGraphics) { this.graphics = tGraphics; } }决...

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

299. 文本-字符限制 [ 88%]

...aya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createTexts(); } createTexts() { this.createLabel("只允许输入数字:").pos(50, 20); let input = this.createInput(); input.pos(50, 50); input.restrict = "0-9"; this.createLabel("只允许输入字母:").pos(50, 1...

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

300. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 88%]

... 节点对象。 */ getChildByName(name: string): Node { for (let child of this._children) { if (child && child.name === name) return child; } return null; } 当我们找到子节点时,也可以对节点做一些基础操作,比如删除掉自己方法 removeSelf() /** * 从父容器删...

来源: Laya3.0_文档 发布时间: 20251010