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

大约有 1,613 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0052 秒)

471. [LayaAirIDE3]VBox布局组件没有中间居中的选项 [ 68%]

...错,有无官方例子下载? 自定义组件发布之后报:can not create:ScaleButton ,发布之前正常,发布前后代码也被更改了 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2025-08-16 12:20 浏...

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

472. 骨骼动画-Spine事件 [ 68%]

... "center"); Tween.to(mLabelSprite, { y:mStartY - 200 }, 1000, null,Handler.create(this,playEnd)) } function playEnd() { mLabelSprite.removeSelf(); } })();module laya { import EventData = Laya.EventData; import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Sprite = Laya.Sprite; impo...

来源: Laya_示例 发布时间: 20251209

473. 物理引擎,我按照官方例子做的,不知道那里写错了,总是报这个错,大神帮我看下 [ 67%]

...ite = new Sprite(); Laya.stage.addChild(gameWorld); engine = Matter.Engine.create({enableSleeping:true}); Matter.Engine.run(engine); var render = LayaRender.create({engine:engine,container:gameWorld,width:stageWidth,height:stageHeight,options:{wireframes:true,showAngleIndicator:true,showCollisions:t...

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

474. tiledmap有时尺寸不正确 [ 67%]

...图,并显示当前场景 * @param conf 地图的配置信息 */ public create(conf:LevelConf, handler:Handler):void{ this._mLevelConf = conf; this._mCompleteHandler = handler; this._mViewPortX = 0; this._mViewPortY = 0; this._mTiledMap = new TiledMap(); this._mLoadState = ESceneLoadState.eLoadMap...

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

475. list只能显示一个图片 [ 67%]

...lBarSkin = "comp/hscroll.png"; this.list1.renderHandler = new Laya.Handler.create(this,this.onRenderList); this.list1.selectHandler = new Laya.Handler.create(this,this.onListSelect)设置renderHandler和selectHandler, _proto.onListSelect = function(index){ console.log(index + ' selected'); } _proto....

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

476. 苹果iOS审核被拒Guideline 4.3 - Design [ 67%]

...am. - Once your app is fully compliant, resubmit your app for review. When creating multiple apps where content is the only varying element, you should offer a single app to deliver differing content to customers. If you would like to offer this content for purchase, it would be appropriate to use t...

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

477. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 67%]

...Array = ["res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //记载场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //加载相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camer...

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

478. 关于要自定shader的同学 [ 67%]

...的是当前的sprite在游戏中设置的大小 new_texture = ls.Texture.create(new_texture, 0, 0)   重新获取纹理然后将textureHost设置为new_texture sprite.shaderValue.textureHost = new_texture 其他的参照shader原文档 2.要修改shader里面的值 class ShaderValue extends Laya.V...

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

479. 1.0 骨骼drawcall优化猥琐方法 [ 67%]

...submit?                 var tempSubmit:Submit = Submit.createShape(context, mIBBuffer, mVBBuffer, mEleNum, _indexStart, Value2D.create(ShaderDefines2D.SKINMESH, 0));                 transform || (transform = Matrix.EMPTY);                 transform.t...

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

480. 鼠标交互-Hold [ 67%]

...howall"; Laya.stage.bgColor = "#232628"; Laya.loader.load(apePath, Handler.create(this, createApe)); })(); function createApe() { // 添加一只猩猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, texture.height / 2); ape.pos(Lay...

来源: Laya_示例 发布时间: 20251209