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

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

2401. as3的类里定义的字段编译后会被注释 [ 68%]

... { } }通过编译后会变成下面的代码class Demo{ constructor (){ //this.a=0; //this.b=null; } }这里字段a和b在编译后会被注释掉,只有初始化的时候给a和b赋值,编译后的代码才不会注释掉a和b这两个字段,我想问一下,能不能不通过初始化赋...

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

2402. 滤镜怎么取消?会报错! [ 68%]

...行这个self.filters = []操作试一下 a372853273 • 2018-02-10 12:16 this._$P.filters != t && (this._set$P("filters", t ? t.slice() : null), laya.core.min.js里面这一行代码报错。 a372853273 • 2018-02-10 12:16 好的 我试试 a372853273 • 2018-02-10 15:19 @qian:...

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

2403. 发现一个关于animator导出比较奇怪的问题 [ 68%]

...动效名称抓取动画对象播放动画啊  我看论坛里面都说  this.XX.play  就能播放  但是这个XX是什么类型的啊?    没有在Animation的动画文件   在.scene里面用时间轴直接做的 2019-09-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...

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

2404. 1.6.2打包的图集不能使用 [ 68%]

...oad([{url: "res/atlas/longCard.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); 在onLoaded var textrue = Laya.loader.getRes(longcard/xxx.png)总是undedined。。。求解。。。 相关链接 : http://ask.layabox.com/question/486 图集打包出来没有prefix。。。get了   2...

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

2405. 角色模型的材质列表切换后,不播放动作了 [ 68%]

...eMaterial { static DIFFUSETEXTURE_ID: number = 1; constructor() { super(); this.setShaderName("CustomShader"); } public getDiffuseTexture(): Laya.BaseTexture { return this._getTexture(CustomMaterial.DIFFUSETEXTURE_ID); } public setDiffuseTexture(value: Laya.BaseTexture): void { this._setTexture(Cust...

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

2406. unity导出3d默认模型。代码添加网格碰撞必先错误 [ 68%]

...自: 代码写的不对,建议看看官网示例,附下正确代码   this.role = scene3D.getChildByName("Cube") as Laya.MeshSprite3D;  let phy: Laya.PhysicsCollider = this.role.addComponent(Laya.PhysicsCollider) as Laya.PhysicsCollider; let mesh:Laya.Mesh = Laya.loader.getRes("res/Conventiona...

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

2407. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 68%]

...olor = "#fff"; Laya.loader.load("assets/images/color1.png", Handler.create(this, __loadImageHandler)); } private function __loadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr.graphics.drawTexture(_colorTex); _colorSpr.cacheAs = "...

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

2408. 描边Shader,使用了两个Pass [ 68%]

...Pass(outline_vs, outline_ps) outlineShader.addShaderPass(base_vs, base_ps) this.setShaderName("OutlineShader") this.getRenderState(0).cull = 1 } set diffuseTexture (value) { this._shaderValues.setTexture(OutlineMaterial.DIFFUSETEXTURE, value) } }   附件 : --> shaderBasic.zip 2018-09-25 添加评...

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

2409. VR场景-VR地球 [ 68%]

...r scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.rotation = new Laya.Vector3(0, 0.002, 0); //与3d场景的不同是添加了vr相机 var vrCamera: Laya.VRCamera = scene.addChild(new Laya.VRCamera(0.03, 0, 0, 0.1, 100)) as Laya.VRCamera; vrCamera.transform.translate(ne...

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

2410. 缓动 · LayaAir3.4 · 引擎文档 · LAYABOX [ 68%]

...以毫秒为单位。 * @return Tween对象。 */ duration(value: number): this; 3. 使用to()方法设置缓动的属性: /** * @zh 缓动对象的属性到指定值。 * 属性类型可以是数字,字符串,布尔值,Vector2, Vector3, Vector4, Color。如果是字符串,则隐含为颜...

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