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

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

681. 输入设备-指南针 [ 33%]

...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_示例 发布时间: 20241119

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

...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_示例 发布时间: 20241119

683. 输入设备-地图 [ 33%]

...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_示例 发布时间: 20241119

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

...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_示例 发布时间: 20241119

685. 输入设备-地图 [ 32%]

...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_示例 发布时间: 20241119

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

...建出符合自己需要的文件夹。 **示例代码:** ```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

687. 缓动-缓动函数演示 [ 32%]

...tLabel(value) { this.label.text = value; } } new Tween_EaseFunctionsDemo();module laya { import Input = Laya.Input; import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import List = Laya.List; import Browser = Laya.Browser; import Ease = Laya.E...

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

688. 导入FBX报错 [ 32%]

... [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

689. 缓动-缓动函数演示 [ 32%]

...th + 10, text.y - 3); input.inputElementYAdjuster = 1; return input } })();module laya { import Input = Laya.Input; import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Text = Laya.Text; import Event = Laya.Event; import List = Laya.List; import Browser = Laya.Browser; import Ease = Laya.E...

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

690. 鼠标交互-鼠标交互 [ 31%]

...t.wordWrap = true; 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:...

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