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

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

21. 音频-播放演示 [ 95%]

...() { console.log("播放完成"); } } new Sound_SimpleDemo();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import SoundManager = Laya.SoundManager; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL =...

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

22. 音频-播放演示 [ 95%]

... function onComplete() { console.log("播放完成"); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import SoundManager = Laya.SoundManager; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL =...

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

23. 网络和格式-POST [ 95%]

...lete(e) { logger.text += "收到数据:" + hr.data; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import HttpRequest = Laya.HttpRequest; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Network_POST { private hr: HttpReque...

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

24. 网络和格式-GET [ 95%]

...lete(e) { logger.text += "收到数据:" + hr.data; } })();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import HttpRequest = Laya.HttpRequest; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Network_GET { private hr: HttpReques...

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

25. 骨骼动画-换装 [ 95%]

...ature.play(mCurrIndex, false); } } new Skeleton_ChangeSkin();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class ChangeSkin { private mAniPath:string; ...

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

26. 骨骼动画-换装 [ 95%]

...{ mCurrIndex = 0; } mArmature.play(mCurrIndex,false); } })();module laya { import Skeleton = Laya.Skeleton; import Templet = Laya.Templet; import Event = Laya.Event; import Browser = Laya.Browser; import Stat = Laya.Stat; import WebGL = Laya.WebGL; export class ChangeSkin { private mAniPath:string; ...

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

27. 鼠标交互-鼠标交互 [ 95%]

...rue; txt.color = "#FFFFFF"; Laya.stage.addChild(txt); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Mouse { private txt: Text; constru...

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

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

..._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 preRadian: number = 0;...

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

29. 鼠标交互-鼠标交互 [ 95%]

...FFFF"; Laya.stage.addChild(txt); } } new Interaction_Mouse();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Interaction_Mouse { private txt: Text; constru...

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

30. 鼠标交互-滑动 [ 94%]

...is.button, { x: targetX }, 100); } } new Interaction_Swipe();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Interaction_Swipe { //swipe滚动范围 priv...

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