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

大约有 1,442 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0057 秒)

941. Laya2.2问题,有没有遇到的? [ 66%]

....enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; Laya.URL.exportSceneToJson = GameConfig.exportSceneToJson; i...

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

942. 打包之后TEXT可以显示但是 加载其他资源时白屏 [ 66%]

...包用的eclipse  扫码 pc 都没问题     Laya.init(600, 400); Laya.stage.bgColor = "#ffffff";  Laya.stage.scaleMode = "exactfit";  Laya.stage.screenMode = "horizontal";  var asset = []; asset.push({ url: ["../res/image/bg.png"], type: Laya.Loader.IMAGE }); Laya.loader.load(asset,Laya.Handl...

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

943. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 66%]

...andler.create(null, this.__onLoaded)); } private __onLoaded(): void { Laya.stage.addChild(new Test()); } } new Entry();   Test.ts import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } private _initView():void { let sprite:Sprite = new Sprite(); sprite =...

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

944. 打地鼠游戏中,锤子被挡在背景图后面了,请问怎么调整?谢谢 [ 66%]

...成后, 加到舞台上时是加到GameViwe上, 不是直接加到Laya.stagethis.hammer = new Hammer(); this.addChild(this.hammer); this.hammer.start();   2018-08-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 Cherry006 相...

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

945. 字距的调整问题 [ 66%]

...to.setScreenSize=function(screenWidth,screenHeight) 这是你调用了Laya.stage.screenMode=XXXXX之后 他就会在这里调用这个方法,然后适配屏幕。你会发现在某些 机型内 this.designWidth 、与 this.designHeight 是无法获取的。这就尴尬了。导致后面直接不...

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

946. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 66%]

...景及引用其的对象无法销毁         this.scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;          this.camera = new Laya.Camera();         this.camera.transform.translate(new Laya.Vector3(0, 2, 5));         this.camera.transform.r...

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

947. LayaAir IDE 语言包的使用? [ 66%]

...就用刚才的.lang文件 代码如下: package { import laya.display.Stage; import laya.display.Text; import laya.net.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya...

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

948. sprite.mask的疑问 [ 66%]

...      private a ()     {         let a:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("A") as Sprite;         let b:Sprite = Laya.stage.getChildAt(0).getChildAt(0).getChildByName("B") as Sprite;         b.removeSelf();         a.ma...

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

949. 模仿教程里的打地鼠写的代码,运行报错 [ 66%]

...unction(){ //初始化引擎 Laya.init(800,600); //设置背景颜色 Laya.stage.bgColor = "#ffcccc"; //加载资源 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) })(); function onLoaded(){ //实例化 var tempBG=new background(); Laya.stage.addCh...

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

950. 【简单跑酷--JS版】---Lv.5 玩家踩地板 [ 66%]

...y = 32 * 4; this.addChild(this.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop = function(){ // 检测人物是否踩在地板上面了 for(var ...

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