大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0140 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...; uniform mat4 u_WorldMat; attribute vec3 a_Normal; varying vec3 v_Normal; void main() { gl_Position = u_MvpMatrix * a_Position; mat3 worldMat=mat3(u_WorldMat); v_Normal=worldMat*a_Normal; }`; let simpleShaderFS = ` #ifdef FSHIGHPRECISION precision highp float; #else precision mediump float; #endif ...
来源: Laya2.0_文档 发布时间: 20210715
...i/vscroll$up.png'],Handler.create(this,start)); } private function start():void { var panel:Panel=new Panel();//添加panel,切忌要先将panel添加到舞台同时设置宽高,然后再去添加子对象 panel.width=500; panel.height=500; panel.vScrollBarSkin='ui/vscroll.png';//设置panel的...
来源: Laya_社区 发布时间: 20170601
...节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; ...
来源: Laya3.0_文档 发布时间: 20251010
...//////////////////java////////////////////////////////////// public static void showError(){ Log.e("showerror","show"); new AlertDialog.Builder(MainActivity.my_activity).setTitle("error" ).setMessage("加载游戏失败,可能由于您的网络不稳定,请退...
来源: Laya_社区 发布时间: 20180116
...at-Bnthya3kQ4uXAUEgl_GARw==/lib/arm64/liblayaair.so (laya::imp_JS2CFunc<void (laya::XMLHttpRequest::*)(char const*, char const*)>::call(v8::FunctionCallbackInfo<v8::Value> const&)+404) [arm64-v8a] 4 #03 pc 00000000009bfcbc /data/app/com.mylafe.game.handsomecat-Bnthya3kQ4uXAUEgl_GARw...
来源: Laya_社区 发布时间: 20200309
...ort class BGPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("BGPage"); } } export class MonkeyPageUI extends View { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MonkeyPage"); } } } =========...
来源: Laya_社区 发布时间: 20181014
...n, Handler.create(this, this.onLoadComplete)); } private onLoadComplete(): void { var cb: ComboBox = this.createComboBox(this.skin); cb.autoSize = true; cb.pos((Laya.stage.width - cb.width) / 2, 100); cb.autoSize = false; } private createComboBox(skin: String): ComboBox { var comboBox: ComboBox = ne...
来源: Laya2.0_文档 发布时间: 20210715
...es/Game_ddz/animation/ddz_figures_landlord.sk"); } private onError(): void { console.log("error"); } private parseComplete(): void { console.error("地主加载完成"); this.isFinish = true; } public getArmature():Laya.Skeleton{ if(!this.isFinish){ return null; } let armature = null; if(th...
来源: Laya_社区 发布时间: 20190821
...Laya.stage.bgColor = "#232628"; this.createText(); } private createText(): void { var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开发者提供HTML5开发技术方案!"; //设置宽...
来源: Laya2.0_示例 发布时间: 20260303
...IDDLE; StageReferance.setup(Laya.stage); init(); } private function init():void { _view = new Sprite(); var points:Array = [12,41, 0,72, 36,74, 76,72, 60,41, 36,-26, 12,41]; // 从0,0点开始画一个封闭的曲线 _view.graphics.drawCurves(0,0, points, "#ff0000", 15); Laya.stage.addChild(_view); ...
来源: Laya_社区 发布时间: 20180319