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

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

1791. 如何自定义Shader(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 62%]

...; 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

1792. 分享:Panel下动态修改子容器宽高并刷新显示! [ 62%]

...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

1793. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

...节点和组件均已创建完毕,此方法只执行一次 */ 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

1794. config.jsh中无法使用confirm [ 62%]

...//////////////////java////////////////////////////////////// public static void showError(){ Log.e("showerror","show"); new AlertDialog.Builder(MainActivity.my_activity).setTitle("error" ).setMessage("加载游戏失败,可能由于您的网络不稳定,请退...

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

1795. 1.0 打包apk闪退 有日志 应该是跟引擎网络模块相关 [ 62%]

...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

1796. 2.0 Beta3版本中,runtime脚本的的问题 [ 62%]

...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

1797. ComboBox属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 62%]

...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

1798. 龙骨动画的监听回调,有时能回调,有时不能回调 [ 62%]

...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

1799. 文本-复杂的文本样式 [ 62%]

...Laya.stage.bgColor = "#232628"; this.createText(); } private createText(): void { var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开发者提供HTML5开发技术方案!"; //设置宽...

来源: Laya2.0_示例 发布时间: 20260303

1800. 画了一个封闭的曲线,获取鼠标点击处的像素,为何坐标对不上导致拿不到正确位置的Texture? [ 62%]

...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