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

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

611. layaNative2.0在android上crash报错 [ 44%]

...Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined module写法的模块无法使用,其他地方使用会报错 播放背景音乐的问题 刚打开 桌面调试出现报错Uncaught (in promise) DOMException: play() 用了ByteArray的zlib.min.js后报错 runtime运行报...

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

612. Sprite-轴心点 [ 44%]

...ate); } function animate(e) { sp1.rotation += 2; sp2.rotation += 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Pivot { private sp1: Sprite; private sp2: Sprite; ...

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

613. 骨骼动画-藤蔓 [ 44%]

...getAnimNum()) { 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 Skeleton_SpineVine { pri...

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

614. 计时器-间隔循环 [ 44%]

...() { this.rotateFrameRateBasedText.rotation += 1; } } new Timer_Interval();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_Interval { private rotateTimeBasedText: Text; private rotateFrameRateBasedText: Te...

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

615. 骨骼动画-橡胶人 [ 44%]

...getAnimNum()) { 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 Skeleton_SpineStretchyma...

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

616. 输入设备-摇一摇 [ 44%]

...ake.instance.stop(); console.text += "停止接收设备摇动"; } } })(); module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Shake = Laya.Shake; import Browser = Laya.Browser; import Handler = Laya.Handler; import Event = Laya.Event; export class I...

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

617. Sprite-节点控制 [ 44%]

....ape1.rotation += 2; this.ape2.rotation -= 4; } } new Sprite_NodeControl();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_NodeControl { private ape1: Sprite; private ape2: ...

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

618. 文本-字符限制 [ 44%]

...t.padding = [0, 4, 0, 4]; Laya.stage.addChild(input); return input; } })();module laya { import Input = Laya.Input; import Stage = Laya.Stage; import Text = Laya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_Restrict { constructor() { // 不支持WebGL时自动切...

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

619. Sprite-切换纹理 [ 44%]

... 0); // 设置交互区域 ape.size(texture.width, texture.height); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Texture = Laya.Texture; import Handler = Laya.Handler; import Browser= Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_SwitchTexture { ...

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

620. Sprite-轴心点 [ 43%]

...{ this.ape1.rotation += 2; this.ape2.rotation += 2; } } new Sprite_Pivot();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Pivot { private sp1: Sprite; private sp2: Sprite; ...

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