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

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

371. 在Laya中使用Matter.js的最简示例 (JS) [ 45%]

...还是有些复杂;所以,添加这个帖子,作为Matter.js的get start的Laya版本 在Laya中使用Matter需要在index.html的“<!--jsfile--startTag-->”标签前面添加下面的引用 (libs/matter.js 和libs/LayaRender.js)   然后创建一个Matter_getStart.js (代码如...

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

372. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 45%]

...个js中的对象 var client:any = new Laya.Browser.window.Demo1(); client.start(); } script.onerror = function():void{ //加载错误函数 } Laya.Browser.document.body.appendChild(script); } } new Main; ``` 然后再新建一个js文件,简单代码如下: ```typescript var Demo1 = (function (...

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

373. 动画状态机 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

...时间的偏移值,仅作用于动画首次播放(0-1之间)。 Clip Start:动画文件的起始播放位置(0-1之间)。 Clip End:动画文件的停止播放位置(0-1之间)。 Clip:动画文件(.lani)。 注意:参数“Cycle Offset”不影响动画播放完整性,...

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

374. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 44%]

...rializeField] private Transform guard; // Use this for initialization void Start () { pivot.transform.rotation = Quaternion.Euler(0, 0, -20); } // Update is called once per frame void Update () { if (Input.GetKey(KeyCode.A)) { guard.transform.position = new Vector3(guard.transform.position.x + 0.1f,...

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

375. mac laya 2.5beta ts示例工程 tsconfig.json tartget 改成es5 编译报错 [ 44%]

...09:54] Using gulpfile ~/projects/mylaya11/Tank/.laya/compile.js [09:09:54] Starting 'compile'... { Error: /Users/xxxxx/projects/mylaya11/Tank/src/script/Bullet.ts(4,29): semantic error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found. at error (/Applications/LayaAir...

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

376. 加载prefab的代码编译失败,提示“Property 'transform' does not exist on type 'Node'” [ 44%]

..., 0));             })); 但是编译时报如下错误: [23:43:30] Starting 'compile'... { Error: D:/Workspace/LayaTest/demo010/src/script/GameUI.ts(50,17): semantic error TS2339: [31mProperty 'transform' does not exist on type 'Node'.[39m at error (D:\Software\Develop\LayaAirIDE\resources\a...

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

377. [LayaAir3]关于drawToRenderTexture2D绘制后图像模糊问题补充 [ 43%]

...t A boolean indicating whether to draw the render rectangle. When true, it starts drawing from (0,0) of the render texture and subtracts the offset of the cache rectangle. When false, it keeps the sprite's original relative position for drawing. * @param flipY Optional. If true, the texture will be ...

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

378. laya.ani.swf.MovieClip_API3.0 [ 43%]

...height set_scaleX set_scaleY set_transform set_visible set_width size skew startDrag stop stopDrag timerLoop timerOnce toParentPoint updateZOrder fromImage Constructors constructor new MovieClip(parentMovieClip?: MovieClip): MovieClip Overrides Sprite.constructor Defined in laya/ani/swf/MovieClip.ts...

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

379. laya.display.AnimationBase_API3.0 [ 43%]

...height set_scaleX set_scaleY set_transform set_visible set_width size skew startDrag stop stopDrag timerLoop timerOnce toParentPoint updateZOrder fromImage Constructors constructor new AnimationBase(): AnimationBase Overrides Sprite.constructor Defined in laya/display/AnimationBase.ts:51 可以继...

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

380. laya.display.FrameAnimation_API3.0 [ 42%]

...height set_scaleX set_scaleY set_transform set_visible set_width size skew startDrag stop stopDrag timerLoop timerOnce toParentPoint updateZOrder fromImage Constructors constructor new FrameAnimation(): FrameAnimation Overrides AnimationBase.constructor Defined in laya/display/FrameAnimation.ts:31 R...

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