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

大约有 2,610 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0088 秒)

391. Laya无法把截屏然后转Base64. [ 78%]

... 个回复 Laya_XS 赞同来自:  /** * <p>绘制 当前<code>Sprite</code> 到 <code>Canvas</code> 上,并返回一个HtmlCanvas。</p> * <p>绘制的结果可以当作图片源,再次绘制到其他Sprite里面,示例:</p> * * var htmlCanvas...

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

392. 【初学者】导入模型进行旋转结果出现问题 [ 78%]

...ction = new Laya.Vector3(1, -1, 0); //添加自定义模型 var box : Laya.Sprite3D = scene.addChild(Laya.Sprite3D.load("res/Scene.lh")) as Laya.Sprite3D; box.transform.rotate(new Laya.Vector3(0, 0, 0), false, false); //旋转方向与角度设置 var vect:Laya.Vector3 = new Laya.Vector3(1,0,0); //...

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

393. 飞机大战地图滚动报错,麻烦看下? [ 78%]

...null; var box = null; function bg_rolling() {     box = new laya.display.Sprite();     Laya.stage.addChild(box);     bg1 = new laya.display.Sprite();     bg1.loadImage("res/bg1.png");     box.addChild(bg1);     bg2 = new laya.display.Sprite();     bg2.loadImage("res/bg1.png");     bg...

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

394. 资源加载清除问题 [ 78%]

..., Handler.create(this, onLoadCom)); 加载成功一个纹理后,用一个Sprite  graphics.drawTexture(e); 在加载成功方法里面写Loader.clearRes(mapBit, true); 会立刻清掉了纹理,Sprite上面也没有了。 如果在加载成功后加一个延时1秒,调用Loader.clearRes就清...

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

395. [3.0.6]碰撞体不能以中心调节 [ 78%]

...节   目前想让碰撞体居中,需要用fitresize得到的值(估计是sprite的宽或高的最大值),减去碰撞体半径,再填入对应的偏移中才能让碰撞体居中. 再次调节半径值,需要再次修改偏移值,才能使碰撞居中.   请注意,默认行为不应该如此! 应...

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

396. laya.d3.core.light.LightSprite [ 78%]

...umentationAll Packages | All Classes | Index | Frames No Frames LightSpriteProperties | Methods | Events Packagelaya.d3.core.lightClasspublic class LightSpriteInheritanceLightSprite Sprite3D Node EventDispatcher ObjectSubclasses DirectionLight, PointLight, SpotLight LightSprite 类用于创...

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

397. 2.0.1beta的导入unity导出的场景出错 [ 78%]

...在unity里面LayaRun预览没有任何问题,也成功导出了Scene和Sprite3D。但是把这些放到项目bin文件夹下之后,对着文档进行更改之后,F5调试就报错了。 2019-03-18 0 0 分享 微博 QZONE 微信 由纪 赞同来自: 同样遇到这样的问题,请问该怎...

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

398. laya.ui.TextArea [ 78%]

...iClasspublic class TextAreaInheritanceTextArea TextInput Label UIComponent Sprite Node EventDispatcher Object TextArea 类用于创建显示对象以显示和输入文本。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获...

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

399. laya.ui.Panel [ 78%]

...nts Packagelaya.uiClasspublic class PanelInheritancePanel Box UIComponent Sprite Node EventDispatcher Object Panel 是一个面板容器类。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By active : Boolean 获取自身是否激活。 Node ...

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

400. 资源概述(ActionScript-3D基础(AS3)-LayaAir3D之资源加载) [ 78%]

...。需使用 **Scene3D** 类加载。 `.lh`为预设文件,选择导出Sprite3D类别时生成。其中缺少场景信息,其他的特征与.ls文件相同,但是需要使用 **Sprite3D** 类加载。 `.lm`为模型数据文件,通常是FBX格式的转换而成。可以使用 **MeshSprite3D*...

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