大约有 1,625 项符合查询结果, 库内数据总量为 30,789 项。 (搜索耗时: 0.0057 秒)
Laya_社区(663) Laya3.0_api(364) Laya2.0_api(194) laya_api(158) Laya2.0_文档(80) Laya_示例(58) Laya3.0_文档(54) Laya2.0_示例(54)
...nt.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inherited from Component.scriptPath Defined in laya/components/Component.ts:35 Accessors awaked get awaked(): boolean Inherited from Component.awaked Defined in laya/components/Component.ts:86 Returns boolean bounds ge...
来源: Laya3.0_api 发布时间: 20231115
...EI); this.img = new Image(); this.addChild(this.img); } public setImg(src: string): void { this.img.skin = src; } } } new laya.UI_List(); ```
来源: Laya2.0_文档 发布时间: 20210715
...擎中正确的用法示例:** **派发:** ``` 派发对象.event(type:String,data:*=null); ``` **监听:** ``` 派发对象.on(type,caller,listener,args); ``` ## 五、LayaAir与AS3的差异 在Flash AS3的原生API写法中可以直接继承Sprite,但是LayaAir引擎里主文档类入口(...
来源: Laya2.0_文档 发布时间: 20191206
...擎中正确的用法示例:** **派发:** ``` 派发对象.event(type:String,data:*=null); ``` **监听:** ``` 派发对象.on(type,caller,listener,args); ``` ## 五、LayaAir与AS3的差异 在Flash AS3的原生API写法中可以直接继承Sprite,但是LayaAir引擎里主文档类入口(...
来源: Laya2.0_文档 发布时间: 20210714
...Shader: number = Laya.Shader3D.nameKey.add("CustomTerrainShader"); var vs: string = "attribute vec4 a_Position;\nattribute vec2 a_Texcoord0;\nattribute vec2 a_Texcoord1;\n\nuniform mat4 u_MvpMatrix;\nuniform mat4 u_WorldMat;\nuniform vec4 u_lightmapScaleOffset;\n\nattribute vec3 a_Normal;\n\nvarying...
来源: Laya_示例 发布时间: 20241127
...ameLoop(1, this, this.onLoop) } /** * 播放动作对应的动画 * action String 动作名称 */ _proto.playAction = function(action){ //如果是重复的动作 不执行 if(this.action == action)return; this.action = action; this.body.play(0, true, this.action); } _proto.onLoop = function(){ //...
来源: Laya_社区 发布时间: 20160801
... function multiLineMacroCompilationTest():void { var flag:Boolean; var msg:String; var result:int = 0; /*[IF-FLASH-BEGIN]*/ if (!flag) { msg = "AS3"; flag = true; } /*[IF-FLASH-END]*/ if (flag) { result = 100; } /*[IF-SCRIPT-BEGIN] else { msg = "JS"; } [IF-SCRIPT-END]*/ trace(msg + ", let's go! Resu...
来源: Laya_社区 发布时间: 20151106
... input.y = i * this.SPACING + this.Y_OFFSET; } } private createInput(skin: string): Laya.TextInput { var ti: Laya.TextInput = new Laya.TextInput(); ti.skin = skin; ti.size(300, 50); ti.sizeGrid = "0,40,0,40"; ti.font = "Arial"; ti.fontSize = 30; ti.bold = true; ti.color = "#606368"; this.owner.addCh...
来源: Laya3.0_文档 发布时间: 20241014
...(target); for(let i = 0; i < arr.length; ++i){ let layerStr = arr[i] as string; if(layerStr == 'all'){ this.addAllLayers(target); } else{ let bRemove = layerStr.indexOf('!') == 0; if(bRemove){ layerStr = layerStr.substr(1); } let layer = this._layerMap[layerStr]; if(layer === null || layer === un...
来源: Laya_社区 发布时间: 20200110
...8-02-05 14:27 public static void loadImageViewLodingSize(Context mContext, String path, int width, int height, ImageView mImageView, int lodingImage, int errorImageView) { Glide.with(mContext).load(path).override(width, height).placeholder(lodingImage).error(errorImageView).into(mImageView); } 150**...
来源: Laya_社区 发布时间: 20180205