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

大约有 4,034 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0082 秒)

711. 不能成功调用 DiaLog Close 关闭方法 [ 91%]

...art 界面 */ var Start = (function(_super){ function Start(){ Start.super(this); // 注册点击开始事件 this.beginBtn.on(Laya.Event.CLICK,this,this.onBeginClick); // 注册跳转事件 this.linkMsleanBtn.on(Laya.Event.CLICK,this,this.onLinkClick); // 初始化 UI 界面显示 this.reset(); } /...

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

712. 陀螺仪与加速计(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 91%]

...下面演示获取旋转方位信息: ```typescript Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChild(this.info);  Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, o...

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

713. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 91%]

...,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load(this.backgroundTexture).then(() => { this.createLightOccluder(); this.createSpotLight(); this.createBackground(); }); } // 创建2D光遮挡器 createLightOccluder(): void { this.lightOccluder.pos(233, 265); this.owner.addCh...

来源: Laya3.0_文档 发布时间: 20250214

714. 为什么rotation、scale赋值了不管用? [ 91%]

...什么rotation、scale赋值了不管用? 我创建了一个Sprite3D: this.role3D = Laya.MeshSprite3D.load("3d/ben/Export.lh") this.role3D.transform.scale = new Laya.Vector3(0.5,0.5,0.5); this.role3D.transform.position = new Laya.Vector3(0,20,0); 以上的scale、position设置均不起作用,...

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

715. 1.76beta引擎库的BUG:Laya.List动态载入后,滑动时会将list框本身的滑动区域一并向滑动方向移动,会出现点击list中空白区域就无法滑动的情况 [ 91%]

...ber> = [];     constructor()     {         super();         this.list.vScrollBarSkin = '';         this.list.itemRender = Item_List;         this.list.renderHandler = new Laya.Handler(this, this.onItemRender);         this.list.scrollBar.elasticBackTime = 200;         ...

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

716. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 91%]

...    Laya.loader.load([GameConfig.getAssetsFile("comp")],Handler.create(this, onComplet));                          }         private var imag:Image;         private function onComplet():void         {             imag=new Image("ui/comp/image.png");  ...

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

717. 请问LayaAirUnityPlugin 1.1.0.unitypackage导出的.lsani文件怎么使用? [ 90%]

... let mesh = Sprite3D.load('resources/shuipao.lh');             this.addChild(mesh);             mesh.on(Event.HIERARCHY_LOADED, this, this.OnHierarchyLoaded);                          let ani_names = this.ani_names;             let anies = this....

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

718. 关于Sprite回收 [ 90%]

关于Sprite回收 // 移除item         for(var i = 0; i < this.numChildren; i++) {             console.log(this.numChildren);             var item = this.getChildAt(i);             if(item instanceof Item) {                 item.removeSelf();               ...

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

719. js飞机大战报错 请大神看看 [ 90%]

...ll.js文件 里面的组件名正确  layaUI.max.all.js:          this.pauseBtn=null;          this.hpLabel=null;          this.levelLabel=null;          this.scoreLabel=null;          this.infoLabel=null; GameInfo.js: var GameInfo = (function (_super) {   ...

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

720. Spine骨骼动画点击区域偏移 获取不到width height [ 90%]

...te _factory: Laya.Templet;  constructor(spine, x, y, speed) {         this._factory = new Laya.Templet();         this._factory.loadAni(`../bin/res/spine_model/${spine}.sk`);         this._factory.on(Laya.Event.COMPLETE, this, this.parseComplete, [x, y]);     }     private parseComp...

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