大约有 1,102 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0058 秒)
Laya_社区(444) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27)
.../threeDimen/particle/ETF_Eternal_Light.lh"));class Particle_EternalLight { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Sc...
来源: Laya_示例 发布时间: 20250225
...6 的 target 编译, 如果改为 target 为 es 编译,会出现 Class constructor XXX cannot be invoked without 'new'。 真机黑屏查了4个小时才查到原因,花了1个多小时改代码(之前很多地方都使用的 async/await ,而且全部改为 promise,没有 async/await 可...
来源: Laya_社区 发布时间: 20191101
...aterial材质。 Hierarchy Material SkyBoxMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue url uuid ALPHATESTVALUE DEBUG EXPOSURE RENDERQUEUE_ALPHATEST RENDERQUEUE_OPAQUE RENDERQUEUE_TRANSPARENT ROTATION SHADERDEFINE_ADDTIVEFOG SHADE...
来源: Laya3.0_api 发布时间: 20231115
...的proto decode的时候报错 Uncaught TypeError: this.clazz is not a constructor at Message.ProtoBuf.Reflect.MessagePrototype.decode (protobuf.js?tick=17185:3213) at Element.ProtoBuf.Reflect.ElementPrototype.decode (protobuf.js?tick=17185:2201) at Field.ProtoBuf.Reflect.FieldP...
来源: Laya_社区 发布时间: 20170118
...r = color;v_texcoord = texcoord;}`class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.c...
来源: Laya_社区 发布时间: 20180313
...; //}); })); })); })(this); class BoxControlScript extends Laya.Script3D { constructor() { super(); this.obj = null; this.rotation = new Laya.Vector3(0, 1, 0); } /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake() { //...
来源: Laya_社区 发布时间: 20200611
...l材质。 Hierarchy Material SkyPanoramicMaterial Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock name renderQueue url uuid ALPHATESTVALUE DEBUG EXPOSURE RENDERQUEUE_ALPHATEST RENDERQUEUE_OPAQUE RENDERQUEUE_TRANSPARENT ROTATION SHADERDEFINE_ADDTIVEFOG SHADE...
来源: Laya3.0_api 发布时间: 20231115
...e:Laya.Image; private skin_lock:Laya.Image; private skin_inUse:Laya.Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.initBuild(); this.skin_btn_use.on(Laya.Event.CLICK,this,this.onSkinBtnUseClick) } private onSkinBtnUseClick(){ console.log("使用"); } //btn 有宽高 2018-08-28...
来源: Laya_社区 发布时间: 20180828
...ng"; //切换状态 private flag:boolean = false; private img:Laya.Sprite; constructor() { //初始化引擎 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载多张图片,在图片资源加载成功后,通过回调方...
来源: Laya_社区 发布时间: 20180226
...自: 测试代码 export default class TestView extends TestViewUI { constructor() { super(); } onAwake() { this.nativeImg = new Image(); let style = this.nativeImg.style; style.position = 'absolute'; style.visibility = 'h...
来源: Laya_社区 发布时间: 20230323