大约有 95 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0029 秒)
Laya2.0_示例(32) Laya_示例(32) Laya_社区(15) Laya2.0_文档(11) Laya3.0_api(2) laya_api(1) Laya2.0_api(1) Laya3.0_文档(1)
...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
...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
...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
...,一般选择16 Margin higher filter:边界是否高精度采样 Scene Module Scale:整个场景lightmap大小的缩放 6.4 烘焙 设置好参数后,点击Bake,等几分钟之后,会自动生成烘焙后的光照图,并添加到 Lightmaps 中,如图6-7所示 (图6-7) 光照贴...
来源: Laya3.0_文档 发布时间: 20231129
...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
...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
...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
...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
...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
...建出符合自己需要的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