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

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

631. 渲染性能实例问题 [ 63%]

...xt.x=Math.random()*550;txt.y=Math.random()*400;textBox.addChild(txt);}Laya.stage.addChild(textBox); 附件 : --> 2019-05-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 bpmf_d 赞同来自: 123黄 var textBox = ...

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

632. laya.ui.Tree_API3.0 [ 63%]

... Tree_Example { public function Tree_Example() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png", "resource/ui/clip_selectBox....

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

633. laya.ui.Dialog [ 63%]

...,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以...

来源: laya_api 发布时间: 20170929

634. 微信小游戏运行导出项目的时候报错:Scene: the .lh file root type must be Scene [ 63%]

...ter.init(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); console.log("debuginfo LayaAir3D constructer start loadres url:", this._sceneURl); Laya...

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

635. laya.device.media.Video [ 63%]

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

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

636. 刚刚接触2天layaair,有几个问题请教。 [ 63%]

....enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.scaleMode; //Laya.stage.screenMode = GameConfig.screenMode; Laya.stage.screenMode = "horizontal"; Laya.stage.alignV = GameConfig.alignV; Laya.stage.alignH = GameConfig.alignH; //兼容微信不支...

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

637. view视图场景切换问题! [ 63%]

...游戏界面a结束时,我把a场景removeSelf,并且把b场景add到stage中。当需要再次进行游戏的时候,把a再次add到stage中,发现a场景还有许多上次游戏的内容,数据并没有清空。也就是说再次add的时候a场景没有重新渲染。碰到过好几次...

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

638. laya.display.Text_API3.0 [ 63%]

...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 onInit(); } private function onInit():void { var text:Text = new Text();//创建一个 Text 类的实例对象 text 。 text.text = "这个是一个 Text 文本示例...

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

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

...正如下     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

640. laya.spine.SpineSkeleton_API3.0 [ 63%]

...entTime customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize externalSkins filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D loop mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY playState rotation scaleX scal...

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