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

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

321. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 72%]

...中的Button等控件? export module ui {     export class GameSceneuiUI extends Laya.Scene {         public static  uiView:any ={"type":"Scene","props":{"width":720,"height":1280},"compId":2,"child":[{"type":"Button","props":{"y":616,"x":296,"skin":"comp/button.png","name"...

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

322. [LayaAir2]字节小游戏物理的坐标不一样,碰撞盒会比laya的小,物理的位置也不一样 [ 72%]

...Physics.I.allowSleeping = false;         this.strWorldRoot= this.owner.scene.strWorldRoot;         Laya.Physics.I.worldRoot = this.strWorldRoot;     }     onUpdate(): void {         var playerPos=new Laya.Point(this.cameraPlayerOffset.x,this.cameraPlayerOffset.y);         var spr...

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

323. 加载unity导出场景失败 [ 72%]

加载unity导出场景失败 代码: Laya.init(600, 400); var scene=Laya.Scene.load("main/SMain.ls"); Laya.stage.addChild(scene);    错误信息: Warning!,this class[MiniAdpter] already exist: Object Error: LoaderManager:unknown file(E:/LayaAir/ZJKZWDT/bin/main/SMain.ls) extension with: ls....

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

324. 在开启webgl模式下,每次运行texture类的getPixels方法内存都会增加 [ 72%]

...克隆对象,统计面板的显存和内存就会显示成负数 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小或原位置,应该用什...

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

325. List翻页效果 [ 72%]

... { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.li...

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

326. 3D灯光与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

... (图2-1) 2.1 创建点光源 (动图2-2) 如动图2-2所示,在Scene3D或者任意节点下,鼠标右键选择Light,点击PointLight,即可在场景中创建一个点光源。 2.2 组件属性 2.2.1 基础属性 如图2-3所示,当创建一个PointLight后,在Inspector属性面...

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

327. IphoneX适配 [ 72%]

..., Browser.clientHeight * Browser.pixelRatio, WebGL); }else{ Laya.init(this.SCENE_WIDTH, this.SCENE_HEIGHT, WebGL); } 苹果X适配 2018-05-22 1 1 分享 微博 QZONE 微信 w1114367261 赞同来自:  目前还没有针对x的手机做针对性适配,目前适配方式需要与ide中的父物体...

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

328. List翻页效果怎么实现 [ 72%]

... { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.li...

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

329. Uncaught TypeError: Game.super is not a function [ 72%]

...his.zombieAnimator.on is not a function 运行报错 Uncaught Can not find scene:GameView.scene undefined 引擎SWF动画示例,提示 TypeError: MovieClip is not a constructor 问题状态 最新活动: 2017-10-12 11:55 浏览: 883 关注: 2 人 apeCom • 2017-10-12 11:59 谢谢

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

330. untiy导出的粒子特效有播放完成的回掉吗? [ 72%]

...这个事件是挂在ShurikenParticleSystem上的。  var wjqs:Sprite3D = scene.addChild(Sprite3D.load("fff.lh")) as Sprite3D; wjqs.once(Event.HIERARCHY_LOADED, this, function():void { var aaa:ShurikenParticleSystem = wjqs.getChildAt(0).getChildAt(0).particleSystem; aaa.on(Event.COMPLETE, this, fun...

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