大约有 744 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0085 秒)
Laya_社区(443) Laya_示例(95) Laya2.0_示例(94) Laya2.0_文档(33) laya_api(24) Laya3.0_api(23) Laya2.0_api(23) Laya3.0_文档(9)
...创建出符合自己需要的列表。 **示例代码:** ```javascript module laya { import Stage = Laya.Stage; import List = Laya.List; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_List { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, W...
来源: Laya2.0_文档 发布时间: 20210715
...te(this,playEnd)) } function playEnd() { mLabelSprite.removeSelf(); } })();module laya { import EventData = Laya.EventData; import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Sprite = Laya.Sprite; import Event = Laya.Event; import Browser = Laya.Browser; import Handler = Laya.Han...
来源: Laya_示例 发布时间: 20260303
...mY, Laya.Browser.width, Laya.Browser.height); } } new TiledMap_ScrollMap();module laya { import Stage = Laya.Stage; import TiledMap = Laya.TiledMap; import Rectangle = Laya.Rectangle; import Browser = Laya.Browser; import Handler = Laya.Handler; import Stat = Laya.Stat; import WebGL = Laya.WebGL; ex...
来源: Laya2.0_示例 发布时间: 20260303
...ff(Event.MOUSE_MOVE, this, this.onMouseMove); } } new Interaction_Rotate();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Rotate { private sp: Sprite; private preRadia...
来源: Laya2.0_示例 发布时间: 20260303
...(this, onHold); Laya.stage.off(Event.MOUSE_UP, this, onApeRelease); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Texture = Laya.Texture; import Browser = Laya.Browser; import Ease = Laya.Ease; import Handler = Laya.Handler; import Twe...
来源: Laya_示例 发布时间: 20260303
...d)) } playEnd() { mLabelSprite.removeSelf(); } } new Skeleton_SpineEvent();module laya { import EventData = Laya.EventData; import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Sprite = Laya.Sprite; import Event = Laya.Event; import Browser = Laya.Browser; import Handler = Laya.Han...
来源: Laya2.0_示例 发布时间: 20260303
...meLine.pause(); break; case Keyboard.R: timeLine.resume(); break; } } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Keyboard = Laya.Keyboard; import TimeLine = Laya.TimeLine; import WebGL = Laya.WebGL; export class Tween_TimeLine { priva...
来源: Laya_示例 发布时间: 20260303
...AStar为例,如图1-2所示, (图1-2) 会把astar包安装到node_modules目录中,并且会在package.json的dependencies属性下添加astar。 看一下package.json里的内容: { "name": "test", "version": "1.0.0", "description": "", "main": "index.js", "bin": { "test": "bin/bundle.j...
来源: Laya3.0_文档 发布时间: 20251010
...stage._canvasTransform.d) }); } })();var Matter: any; var LayaRender: any; module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; import Render = Laya.Render; export class Physics_Cloth { private stageW...
来源: Laya_示例 发布时间: 20260303
...们来操作看下。代码以及实现效果如下所示: ```typescript module game { /* ImageRunTime逻辑类 */ export class ImageRunTime extends Laya.Button{ public scaleTime:number = 100; constructor() { super(); //设置组件的中心点 this.anchorX = this.anchorY = 0.5; ...... } ...... } ...
来源: Laya2.0_文档 发布时间: 20210715