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

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

451. 基础文本 · LayaAir3.4 · 引擎文档 · LAYABOX [ 61%]

...完毕,此方法只执行一次 */ onAwake(): void { this.txt.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txt.size(500, 30); //大小 this.txt.pivot(this.txt.width/2, this.txt.height/2); //轴心点 this.txt.text = "大家好,欢迎各位开发者使用LayaAir I...

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

452. 寻求帮助 Uncaught TypeError: Cannot read property 'play' of null [ 61%]

... 加载龙骨动画出报错Uncaught getUint16 error - Out of bounds Laya.stage报null 问题状态 最新活动: 2020-09-04 11:33 浏览: 560 关注: 2 人

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

453. laya.ui.Tree_API3.0 [ 61%]

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

454. JSON文件加载成功后,怎么解析成Object对象 [ 61%]

...ext(); txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10, 10); txt.fontSize = 30; txt.wordWrap = true; txt.color = "#FF9632"; Laya.stage.addChild(txt); var test:Object = JSON.parse('{"id": 0, "name": "Chen"}'); traceMsg(test['id']); trace...

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

455. laya.ui.AdvImage_API3.0 [ 61%]

...Enable dataSource destroyed disabled displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics gray group height hideFlags hitArea is3D left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scen...

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

456. [LayaAir3]在3d相机设置视图矩形后 检测3d场景下的点击计算问题 [ 60%]

...换3D坐标的处理。 2、在camera.viewportPointToRay方法中,是将stage的宽高作为视口宽高,使得视口近裁面是从stage的宽高进行坐标转换的。 3、目前没收到反馈在viewpointToRay方法转换错误的情况,目前也在getSprite3DUnderPoint方法中做了画...

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

457. Laya2.0 刚体获取body时,场景中所有刚体紊乱 [ 60%]

...此容器作为物理世界坐标世界,进行坐标变换,默认值为stage          * 设置特定容器后,就可整体位移物理对象,保持物理世界不变*/         public function get worldRoot():Sprite {             return _worldRoot || Laya.stage;  ...

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

458. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 60%]

...hysics"].enable(); Laya["DebugPanel"] && Laya["DebugPanel"].enable(); Laya.stage.scaleMode = GameConfig.scaleMode; Laya.stage.screenMode = GameConfig.screenMode; //打开调试面板(通过IDE设置调试模式,或者url地址增加debug=true参数,均可打开调试面板) if (GameConfig.de...

来源: Laya2.0_文档 发布时间: 20210715

459. convert3DCoordTo2DScreenCoord 当3dcamera有旋转的情况下,转换出来的坐标不正确 [ 60%]

...的情况下,转换出来的坐标不正确 _scene3d = new Scene(); Laya.stage.addChild(_scene3d); _camera3d = new Camera(0, 0.1, 300); _scene3d.addChild(_camera3d); _camera3d.transform.translate(new Vector3(0, 0, 150)); _camera3d.clearColor = null; _camera3d.orthographicProjection = true; _camera...

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

460. 1.7.17beta,微信小游戏预览加载问题 [ 60%]

... 测试代码为: var scene = Laya.Scene.load("res/testScene.ls"); Laya.stage.addChild(scene); 真机预览报错为: request:fail invalid url "res/testScene.ls" 测试机型为:iPhoneX 2018-03-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内...

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