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

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

691. 文本-滚动文本 [ 32%]

...scrollY += prevY - 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; p...

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

692. 输入设备-指南针 [ 32%]

...nIndicator.y = -1 * Math.floor(info.beta) / 90 * 70 + compassImg.y; } })() module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Gyroscope = Laya.Gyroscope; import RotationInfo = Laya.RotationInfo; import Browser = Laya.Browser; import Handler = Laya.H...

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

693. 输入设备-指南针 [ 32%]

...h.floor(info.beta) / 90 * 70 + compassImg.y; } } new InputDevice_Compass();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Gyroscope = Laya.Gyroscope; import RotationInfo = Laya.RotationInfo; import Browser = Laya.Browser; import Handler = Laya.H...

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

694. 输入设备-贪吃蛇(重力感应) [ 32%]

...om() * Laya.stage.width; food.y = Math.random() * Laya.stage.height; } })()module laya { import Sprite = Laya.Sprite; import AccelerationInfo = Laya.AccelerationInfo; import Accelerator = Laya.Accelerator; import Point = Laya.Point; import Browser = Laya.Browser; import Handler = Laya.Handler; impor...

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

695. 输入设备-地图 [ 31%]

...e if (e.code == Geolocation.PERMISSION_DENIED) alert("无权限"); } })(); module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Geolocation = Laya.Geolocation; import Position = Laya.GeolocationInfo; import Browser = Laya.Browser; import Handler = Laya.Handler; export class Input...

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

696. 输入设备-贪吃蛇(重力感应) [ 31%]

...his.width; return new Point(tx, ty); } } new InputDevice_GluttonousSnake();module laya { import Sprite = Laya.Sprite; import AccelerationInfo = Laya.AccelerationInfo; import Accelerator = Laya.Accelerator; import Point = Laya.Point; import Browser = Laya.Browser; import Handler = Laya.Handler; impor...

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

697. 导入FBX报错 [ 31%]

... [info] Application Directory: C:\Program Files\LayaAirIDE3\resources\node_modules\nativetools\bin\ [2023-06-20 18:19:19.035] [resource_tool] [info] FBX file format version for this FBX SDK is 7.7.0 [2023-06-20 18:19:19.035] [resource_tool] [info] lAbsFolderName: D:\2023_6_20_秘密超市\demo\asset...

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

698. Tree属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 31%]

...建出符合自己需要的文件夹。 **示例代码:** ```javascript module laya { import Stage = Laya.Stage; import Tree = Laya.Tree; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; import Utils = Laya.Utils; export class UI_Tree { constructor() { // ...

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

699. OPPO小游戏 · LayaAir3.0文档 · LAYABOX [ 31%]

...设置中进行配置。 游戏包名 游戏包名的格式是 com.company.module 第一位com不要变,第二位是公司名,第三位是项目名。都要写英文,例如:com.layabox.demoGame。 游戏版本 游戏版本与版本名称用处不同,这里是渠道平台用于区别版本...

来源: Laya3.0_文档 发布时间: 20240926

700. 输入设备-地图 [ 31%]

...olocation.PERMISSION_DENIED) alert("无权限"); } } new InputDevice_Map();module laya { import Stage = Laya.Stage; import Text = Laya.Text; import Geolocation = Laya.Geolocation; import Position = Laya.GeolocationInfo; import Browser = Laya.Browser; import Handler = Laya.Handler; export class Input...

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