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

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

371. 屏幕适配怎样实现铺满全屏,又不被拉伸? [ 61%]

...,逻辑和fixedwidth一模一样,你直接换成fixedwidth就行 Laya.stage.screenMode = "none"; Laya.stage.alignV = "middle"; Laya.stage.alignH = "center"; if (Laya.Browser.onPC) { Laya.stage.scaleMode = "showall"; } else { Laya.stage.scaleMode = "custom"; }这一步能让引擎自动适配宽...

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

372. laya.ani.swf.MovieClip [ 61%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node filters : Array滤镜集合。可以设置多个滤镜组合。Sprite globalScaleX : Number[read-only] 获得相对于stage的全局X轴缩放值(会...

来源: laya_api 发布时间: 20170929

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

...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

374. laya.display.Input [ 61%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node  editable : Boolean 是否可编辑。 Input filters : Array滤镜集合。可以设置多个滤镜组合。Sprite  focus : Boolean 表示焦点是...

来源: laya_api 发布时间: 20170929

375. movieClip stop 没有用 [ 61%]

...Clip(); mc.load('reset.swf'); mc.on(Event.LOADED,this,onLoaded,[mc]); Laya.stage.addChild(mc); } private function onLoaded(mc:MovieClip):void { mc.gotoAndStop(0); } } }我测试是没有问题,注意下,在资源加载完成后再去对你的swf进行控制,你可以试下! 2017-05-18 0 0 ...

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

376. clearRes好像没作用,或许我的用法不对 [ 61%]

...正如下     constructor() {         super();         Laya.stage.on(Laya.Event.KEY_UP, this, this.onKeyUp);     }     onKeyUp(e: Laya.Event) {         if (e.keyCode == 65) {//A             console.log("释放资源false")             Laya.loader.clearRes(...

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

377. laya.ani.bone.Skeleton [ 60%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

来源: Laya2.0_api 发布时间: 20190513

378. laya.display.Stage_API3.0 [ 60%]

...Protected All Inherited Externals Only exported Menu Globals "laya/display/Stage" Stage Class Stage Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage 单例访问。 Stage提供几种适配模式,不同的适配模式会产生不同的画...

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

379. 横竖屏切换,此引擎渲染有BUG [ 60%]

LayaAir引擎 横竖屏切换,此引擎渲染有BUG Laya.stage.on(Laya.Event.RESIZE, this, this.OnresizeFn); Laya.stage.alignH = "center";//"left";  Laya.stage.alignV = "middle";//"top";  Laya.stage.screenAdaptationEnabled=true;   oldWith: number = 0; oldheight: number = 0; HengPing(isFirst: b...

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

380. 按照视频教程popup为什么没有底层的透明遮盖层啊? [ 60%]

...   var aDia:aDialog = new aDialog("登陆");   aDia.popup(true);   Laya.stage.addChild(aDia); })   附件 : --> 2017-12-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: Laya.stage.add...

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