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

大约有 4,103 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0068 秒)

4001. 动效模板(JavaScript-LayaAir基础篇(JS)-动画基础) [ 41%]

...到舞台上 Laya.loader.load("./res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //实例化导出的UI类 var efc = new ui.TestPUI(); //添加到舞台 Laya.stage.addChild(efc); } ``` 运行后,按钮被按下时,动画效果如动图11所示: ![12](img/12.gif)...

来源: Laya2.0_文档 发布时间: 20210715

4002. 同一类型光源互斥的问题报告 [ 41%]

...模型赋材质 plane.meshRender.material = material2; Laya.timer.loop(10, this, loopfun); function loopfun() { if(!camera || !box){ return; } camera.transform.lookAt(box.transform.position, new Laya.Vector3(0, 1, 0), false); } })(); 纹理图片:     附件 : --> 2018-01-03 添加评论 免费...

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

4003. laya.ui.TextInput_API3.0 [ 41%]

...背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textInput:TextInput = new TextInput("这是一个TextInput实例。");//创建一个 TextInput 类的实例对象 textInput 。 textInput...

来源: Laya3.0_api 发布时间: 20231115

4004. mac laya 2.5beta ts示例工程 tsconfig.json tartget 改成es5 编译报错 [ 41%]

.../projects/mylaya11/Tank/src/script/Bullet.ts(4,29): semantic error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. at error (/Applications/LayaAirIDE_beta.app/Contents/Resources/app/node_modules/rollup/dist/rollup.js:9402:30) at Object.error (/Applications/LayaAir...

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

4005. laya.ui.TextArea_API3.0 [ 41%]

...背景颜色。 Laya.loader.load(["resource/ui/input.png"], Handler.create(this, onLoadComplete));//加载资源。 } private function onLoadComplete():void { var textArea:TextArea = new TextArea("这个一个TextArea实例。");//创建一个 TextArea 类的实例对象 textArea 。 textArea.skin =...

来源: Laya3.0_api 发布时间: 20231115

4006. 龙骨动画-拖拽-点击区域HitArea设置问题 [ 41%]

...uildArmature(1); skeleton.pos(400,600); skeleton.on(Laya.Event.MOUSE_DOWN, this, dragFunc); Laya.stage.addChild(skeleton); skeleton.play(0,true); rectangle = skeleton.getBounds(); var hitArea = new Laya.HitArea(); var graphic = new Laya.Graphics(); graphic.drawRect(-rectangle.x, -rectangle.y, rectan...

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

4007. Button属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 41%]

...后,执行onLoaded回调方法 Laya.loader.load(skin,Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个Button实例 var btn = new Laya.Button(skin); //将Button添加到舞台上 Laya.stage.addChild(btn); //设置Button相关属性 btn.width = 100; btn.height = 50; btn.pos(10...

来源: Laya2.0_文档 发布时间: 20210714

4008. 微信小游戏中iPhoneX的适配问题 [ 41%]

...re Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); })); kezhiyu • 2018-06-04 14:38 ...

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

4009. 如何获取animation的node节点? [ 41%]

...l._graphics._one; // 储存渲染后的小切片备用 Laya.timer.once(10, this, function () { try{ ani._frames[i]._one = skillAniArray[i]; // 将渲染后的小切片追加到动画中 }catch(e) { console.log('warning: animation in loading'); // 过于频繁加载动画时给予警告 } }) } ani.in...

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

4010. Native(android)下创建二维码并显示在页面上 [ 41%]

...l:string, width:number, height:number):string {         return this._bridge.call("createQrCode", url, width, height);     }     // 以下android代码 // JSBridge.javapublic static String createQrCode(final String content, final double width, final double height) { Bitmap bitmap...

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