大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0150 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
... { } }通过编译后会变成下面的代码class Demo{ constructor (){ //this.a=0; //this.b=null; } }这里字段a和b在编译后会被注释掉,只有初始化的时候给a和b赋值,编译后的代码才不会注释掉a和b这两个字段,我想问一下,能不能不通过初始化赋...
来源: Laya_社区 发布时间: 20210222
...行这个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
...动效名称抓取动画对象播放动画啊 我看论坛里面都说 this.XX.play 就能播放 但是这个XX是什么类型的啊? 没有在Animation的动画文件 在.scene里面用时间轴直接做的 2019-09-04 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复...
来源: Laya_社区 发布时间: 20190829
...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
...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
...自: 代码写的不对,建议看看官网示例,附下正确代码 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
...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
...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
...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
...以毫秒为单位。 * @return Tween对象。 */ duration(value: number): this; 3. 使用to()方法设置缓动的属性: /** * @zh 缓动对象的属性到指定值。 * 属性类型可以是数字,字符串,布尔值,Vector2, Vector3, Vector4, Color。如果是字符串,则隐含为颜...
来源: Laya3.0_文档 发布时间: 20251010