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

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

661. 鼠标交互-双指旋转(多点触控) [ 37%]

...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_示例 发布时间: 20241001

662. 鼠标交互-Hold [ 37%]

...(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_示例 发布时间: 20241001

663. 骨骼动画-Spine事件 [ 37%]

...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_示例 发布时间: 20241001

664. 缓动-时间线 [ 37%]

...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_示例 发布时间: 20241001

665. 物理引擎-布 [ 37%]

...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_示例 发布时间: 20241001

666. runTime使用(TypeScript-IDE篇(TS)-组件化开发相关) [ 37%]

...们来操作看下。代码以及实现效果如下所示: ```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

667. 鼠标交互-Hold [ 37%]

...e.off(Event.MOUSE_UP, this, this.onApeRelease); } } new Interaction_Hold();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...

来源: Laya2.0_示例 发布时间: 20241001

668. 小米快游戏 · LayaAir3.0文档 · LAYABOX [ 37%]

...设置中进行配置。 游戏包名 游戏包名的格式是 com.company.module 第一位com不要变,第二位是公司名,第三位是项目名。都要写英文,例如:com.layabox.demoGame。 游戏版本 游戏版本与版本名称用处不同,这里是渠道平台用于区别版本...

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

669. 滤镜-颜色滤镜 [ 37%]

...../../res/apes/monkey2.png"); Laya.stage.addChild(ape); return ape; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import ColorFilter = Laya.ColorFilter; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.Web...

来源: Laya_示例 发布时间: 20241001

670. 鼠标交互-双指缩放(多点触控) [ 36%]

...stageY; distance = Math.sqrt(dx * dx + dy * dy); } return distance; } })();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_Scale { //上次记录的两个触模点之...

来源: Laya_示例 发布时间: 20241001