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

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

81. 文本-滚动文本 [ 48%]

...vX - nowX; txt.scrollY += prevY - nowY; prevX = nowX; prevY = nowY; } })();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...

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

82. 文本-滚动文本 [ 48%]

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

83. 输入设备-指南针 [ 47%]

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

84. 3D场景环境设置 · LayaAir3.0文档 · LAYABOX [ 47%]

...,一般选择16 Margin higher filter:边界是否高精度采样 Scene Module Scale:整个场景lightmap大小的缩放 6.4 烘焙 设置好参数后,点击Bake,等几分钟之后,会自动生成烘焙后的光照图,并添加到 Lightmaps 中,如图6-7所示 (图6-7) 光照贴...

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

85. 输入设备-指南针 [ 47%]

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

86. 输入设备-地图 [ 47%]

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

87. 输入设备-地图 [ 46%]

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

88. 鼠标交互-鼠标交互 [ 45%]

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

89. 鼠标交互-鼠标交互 [ 44%]

...t.color = "#FFFFFF"; Laya.stage.addChild(txt); } } new Interaction_Mouse();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:...

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

90. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 44%]

...建出符合自己需要的HScrollBar。 **示例代码:** ```javascript module laya { import Stage = Laya.Stage; import Text = Laya.Text; import HScrollBar = Laya.HScrollBar; import ScrollBar = Laya.ScrollBar; import VScrollBar = Laya.VScrollBar; import Handler = Laya.Handler; import WebGL = Laya...

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