大约有 523 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0066 秒)
...ublic constructor() { super(); console.log("startScene"); console.log(Laya.stage.name); console.log(Laya.stage.numChildren); console.log(this.numChildren); console.log(this.parent); console.log(this.name); } }这个同样是null export default class game_mgr extends Laya.Script { constructor() { sup...
来源: Laya_社区 发布时间: 20190904
...的滤镜被后一个滤镜给替换了. 简略复现代码如下: Laya.stage.drawCallOptimize = true; let text1 = new Laya.Text(); text1.text = "ceshi1"; Laya.stage.addChild(text1); text1.fontSize = 40; ...
来源: Laya_社区 发布时间: 20210914
...7 @cuixueying:好的 C_jx • 2017-02-20 10:41 Laya.class 能够继承Laya.stage吗?我报错Uncaught TypeError: Cannot read property 'get' of undefined cuixueying • 2017-02-22 16:44 Laya.Stage,你继承的是个类,而并非变量
来源: Laya_社区 发布时间: 20160714
...上面,我给UI设置了名字,加到舞台 Laya.Button button = Laya.stage.addChild(new Laya.Button("res/layabox.png", "切换动作")) as Laya.Button; button.name = "abc"; Laya.Button.on(Laya.Event.CLICK, this, function:void{ 具体实现 }); 在另一个方法里面 Laya.stage.on(Lay...
来源: Laya_社区 发布时间: 20180416
...显示异常 unity到导出场景加载时抛异常,不知所措 修改stage的scale后,会发生异常情况 请问有人遇到oppo小游戏字体显示异常 构建iOS工程后,真机上运行显示“网络异常,请检查您的网络或与开发商联系...”, 微信小游戏 使用in...
来源: Laya_社区 发布时间: 20180515
...button.centerX = 0; button.centerY = 0; Laya.stage.addChild(button); button.on(laya.events.Event.CLICK,this,function () { let photo = laya.utils.Browser.getElementById("photo"); photo.click(); });...
来源: Laya_社区 发布时间: 20161114
...放了。 static _visibilityChange() { if (ILaya.stage.isVisibility) { SoundManager._recreateWebAudio(() => { SoundManager._stageOnFocus(); }); } else { SoundManager._stageOnBlur(); ...
来源: Laya_社区 发布时间: 20180425
... layanative2 打包android平台 报错 btCollisionObject undefined 修改stage的scale后,会发生异常情况 构建iOS工程后,真机上运行显示“网络异常,请检查您的网络或与开发商联系...”, 问题状态 最新活动: 2018-02-24 15:15 浏览: 952 关注: 3 人 hon...
来源: Laya_社区 发布时间: 20180104
..." + "LayaBox</span><span>欢迎你的加入</span>" Laya.stage.addChild(div);2、获取Html文本的实际内容、获取html文本的实际宽高(contextWidth、contextHeight) 示例如下:var htmlDiv:HTMLDivElement=new HTMLDivElement(); var html:String = "<span color='#e...
来源: Laya_社区 发布时间: 20161027
...是我的全部测试代码: (function(){ Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(...
来源: Laya_社区 发布时间: 20180103