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

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

201. laya.html.dom.HTMLIframeElement_API3.0 [ 69%]

... = false Inherited from AnimationBase._ownGraphics Defined in laya/display/Sprite.ts:245 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:631 _skinBaseUrl _skinBaseUrl: string Inherited from AnimationBase._skinBaseUrl Defined in laya/display/Sprite.ts:269 如果节点...

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

202. CPU优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 69%]

...。 1. 使用getBounds/ getGraphicBounds。 ```typescript var sp=new Laya.Sprite(); sp.graphics.drawRect(0,0,100,100,"#FF0000"); var bounds:Laya.Rectangle=sp.getGraphicBounds(); Laya.stage.addChild(sp); ``` getBounds可以满足多数多数需求,但由于其需要计算边界,不适合频繁调...

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

203. loader失败未对_customParse状态进行设置导致后面加载出问题了 [ 69%]

...请检查后重新编译。 Texture图片能否进行翻转? 如何设置Sprite的宽高和点击区域? 使用钢体设置防穿后仍有几率会穿透 自定义场景类导出layaMaxUI.ts有前缀导致报错 FD 宏编译时 出现 试图访问该方法时失败 将list里的scrollBar设置mo...

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

204. laya.display.Scene_API3.0 [ 69%]

...过unDestroyedScenes属性查看还未被销毁的场景列表 Hierarchy Sprite Scene View Index Constructors constructor Properties _extra _ownGraphics _scene _scene3D _skinBaseUrl _url autoDestroyAtClosed autoSize hitTestPrior mouseThrough name tag drawtocanvCtx unDestroyedScenes Accessors _isHeig...

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

205. 如何加载.lh文件 [ 69%]

...n • 2018-05-29 16:45 @灬倪先森_:var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); 这个是示例中的,有几种方法,文档中也有,而且有例子。https://ldc.layabox.com/doc/?nav=zh-as-4-0-5,看看实战的...

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

206. laya.html.dom.HTMLDivElement_API3.0 [ 69%]

...vElement=new HTMLDivElement(); div.innerHTML = "adivspanspan2p"; Hierarchy Sprite HTMLDivElement HTMLIframeElement Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name drawtocanvCtx Accessors active activeInHierarchy alpha ble...

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

207. lh文件内meshSprite添加阴影属性无效 [ 69%]

lh文件内meshSprite添加阴影属性无效 IDE:LayaIDE 1.7.12 引擎:Laya3D       LM文件测试阴影效果成功后,使用lh文件加载多个模型,用for语句批量为meshSprite3D添加阴影属性,但仅有最后一个成功(图片绿地上的阴影),for语句内的材...

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

208. 导出到微信开发者工具,开放数据域加载资源失败 [ 69%]

...画失败 unity到导出场景加载时抛异常,不知所措 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 模型资源释放问题 请教下微信小游戏的内存和数据缓存? 问题状态 ...

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

209. laya.ui.View_API3.0 [ 69%]

...: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/display/Node.ts:641 _scene3D _scene3D: any Inherited from Scene._scene3D Defined in laya/display/Scene.ts:28 _skinBaseUrl _skinBaseUrl: string Inher...

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

210. 如何用代码控制panel的vscroll滚动幅度 [ 69%]

...微博 QZONE 微信 cuixueying 赞同来自: package { import laya.display.Sprite; import laya.net.Loader; import laya.ui.Panel; import laya.utils.Handler; public class LayaAirDemo { public function LayaAirDemo() { Laya.init(600,600); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.js...

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