大约有 413 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)
Laya_社区(341) Laya3.0_api(21) laya_api(19) Laya3.0_文档(11) Laya2.0_api(10) Laya2.0_文档(9) Laya_示例(1) Laya2.0_示例(1)
...还是有些复杂;所以,添加这个帖子,作为Matter.js的get start的Laya版本 在Laya中使用Matter需要在index.html的“<!--jsfile--startTag-->”标签前面添加下面的引用 (libs/matter.js 和libs/LayaRender.js) 然后创建一个Matter_getStart.js (代码如...
来源: Laya_社区 发布时间: 20170905
...个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
...时间的偏移值,仅作用于动画首次播放(0-1之间)。 Clip Start:动画文件的起始播放位置(0-1之间)。 Clip End:动画文件的停止播放位置(0-1之间)。 Clip:动画文件(.lani)。 注意:参数“Cycle Offset”不影响动画播放完整性,...
来源: Laya3.0_文档 发布时间: 20251010
...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
...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
..., 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
...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
...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
...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
...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