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

大约有 352 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)

31. 网络和格式-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_示例 发布时间: 20251130

32. 鼠标交互-修正交互区域 [ 95%]

...rget.name + "\n"; } } new Interaction_FixInteractiveRegion();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_FixInteractiveRegion { private log...

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

33. 使用UrlLoader加载图片,flash获取data为byteArray,翻译成h5后data为image? [ 95%]

...,flash获取data为byteArray,翻译成h5后data为image? package { import flash.display.Bitmap; import flash.display.Loader; import flash.display.Sprite; import flash.events.Event; import flash.net.URLLoader; import flash.net.URLLoaderDataFormat; import flash.net.URLRequest; import flash.utils...

来源: Laya_社区 发布时间: 20151228

34. 骨骼动画-换装 [ 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_示例 发布时间: 20251130

35. 为什么我获取不到鼠标滚轮的delta值,我查看laya.events.Event 里面没有这个属性 [ 95%]

...• 2017-03-21 10:52 //我用TS但是里面没有delta属性 module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; import Rectangle = laya.maths.Rectangle export class Interaction_Scale { constructor...

来源: Laya_社区 发布时间: 20170321

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

...ce = 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 { //上次记录的两个触模点之间距离 privat...

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

37. 音频-播放演示 [ 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_示例 发布时间: 20251130

38. 音频-播放演示 [ 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_示例 发布时间: 20251130

39. 文本-滚动文本 [ 94%]

...vY - nowY; prevX = nowX; prevY = nowY; } } new Text_Scroll();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Scroll { private txt: Text; private prevX: number = 0; private prevY: ...

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

40. 计时器-延迟执行 [ 94%]

...0.5 this.button2.alpha -= 0.5; } } new Timer_DelayExcute();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_DelayExcute { private button1: Sprite; private button2: Sprite; con...

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