大约有 3,031 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0067 秒)
Laya_社区(1088) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(108)
API DocumentationAll Packages | All Classes | Index | Frames No Frames TimeLineProperties | Methods | Events Packagelaya.utilsClasspublic class TimeLineInheritanceTimeLine EventDispatcher Object TimeLine 是一个用来创建时间轴动画的类。 Public Properties PropertyDefined By ...
来源: laya_api 发布时间: 20170929
...要添加如下的示例代码,实现脚本控制ComboBox: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ComboBox }) public combobox: Laya.ComboBox; //组件被激活后执行,此时所有节点和组件均已创建完毕...
来源: Laya3.0_文档 发布时间: 20251010
...wHeight = Browser.height, lasers = [], tick = 0, frequency = 80, type = 0; class PIXI_Example_23 { constructor() { const WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(viewWidth, viewHeight, WebGL); Laya.stage.ali...
来源: Laya2.0_示例 发布时间: 20251209
...用域为[-90, 90]。 (图3) 下面演示获取旋转方位信息: class Gyroscope_Sample { private info: Laya.Text; constructor() { Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya...
来源: Laya3.0_文档 发布时间: 20251010
...ll Inherited Externals Only exported Menu Globals "laya/net/Socket" Socket Class Socket Socket 封装了 HTML5 WebSocket ,允许服务器端与客户端进行全双工(full-duplex)的实时通信,并且允许跨域通信。在建立连接后,服务器和 Browser/Client Agent 都能主动...
来源: Laya3.0_api 发布时间: 20231115
...Externals Only exported Menu Globals "laya/resource/PrefabImpl" PrefabImpl Class PrefabImpl 预制体导入 Hierarchy Prefab PrefabImpl Index Constructors constructor Properties _id api data destroyedImmediately lock name url uuid version DEBUG Accessors cpuMemory deps destroyed gpuMemory id obsolut...
来源: Laya3.0_api 发布时间: 20231115
...erited Externals Only exported Menu Globals "laya/d3/math/Vector4" Vector4 Class Vector4 Vector4 类用于创建四维向量。 Hierarchy Vector4 Implements IClone Index Constructors constructor Properties w x y z ONE UnitW UnitX UnitY UnitZ ZERO Methods clone cloneTo forNativeElement fromArray leng...
来源: Laya3.0_api 发布时间: 20231102
...nherited Externals Only exported Menu Globals "laya/d3/core/Avatar" Avatar Class Avatar Avatar 类用于创建Avatar。 Hierarchy Resource Avatar Implements IClone Index Constructors constructor Properties destoryedImmediately lock name url uuid AVATAR DEBUG Accessors cpuMemory destroyed gpuMemory i...
来源: Laya3.0_api 发布时间: 20231102
...ternals Only exported Menu Globals "laya/components/Animator2D" Animator2D Class Animator2D Animator2D2D动画组件 Hierarchy Component Animator2D Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked controller destroyed enabled hideFlags id isPl...
来源: Laya3.0_api 发布时间: 20231115
...mg/3.png) (图3) 下面演示获取旋转方位信息: ```typescript class Gyroscope_Sample { private info: Laya.Text; constructor() { Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); La...
来源: Laya2.0_文档 发布时间: 20210715