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

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

1. 鼠标交互-Hold [ 100%]

...andler; var Tween = Laya.Tween; var WebGL = Laya.WebGL; const HOLD_TRIGGER_TIME = 1000; const apePath = "../../res/apes/monkey2.png"; //触发hold事件时间为1秒 var ape, isApeHold; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL...

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

2. 文本-位图字体 [ 83%]

...ext(); txt.width = 250; txt.wordWrap = true; txt.text = "Do one thing at a time, and do well."; txt.font = font; txt.leading = 5; txt.pos(Laya.stage.width - txt.width >> 1, Laya.stage.height - txt.height >> 1); Laya.stage.addChild(txt); } })();module laya { import BitmapFont = Laya.BitmapFont; impor...

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