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

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

651. 骨骼动画-Spine事件 [ 39%]

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

652. 缓动-时间线 [ 39%]

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

653. 物理引擎-布 [ 38%]

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

654. 鼠标交互-Hold [ 38%]

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

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

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

656. 滤镜-颜色滤镜 [ 38%]

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

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

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

658. 缓动-时间线 [ 38%]

...case Keyboard.R: this.timeLine.resume(); break; } } } new Tween_TimeLine();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...

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

659. 滤镜-颜色滤镜 [ 38%]

... ape.graphics.drawTexture(apeTexture); return ape; } } new Filters_Color();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...

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

660. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 37%]

....utils.Stat; import laya.utils.Utils; import laya.d3.core.particleShuriKen.module.StartFrame; import laya.display.Sprite; import ui.BGPageUI; import ui.MonkeyPageUI; public class Main { public function Main() { //根据IDE设置初始化引擎 if (window["Laya3D"]) Laya3D.init(GameConfig.width, Game...

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