大约有 1,766 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0103 秒)
Laya_社区(625) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(86) Laya2.0_api(67) laya_api(64)
... 下例绘制10000个文本(根据电脑性能而定,本例为10000): class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).t...
来源: Laya3.0_文档 发布时间: 20251010
...: void; enum SoundType { BGM, Effect, Dialogue, } export class SoundManager { private static instance: SoundManager; private curBGMUrl: string; private bgmChannel: Laya.SoundChannel | null; private effectChannels: Map<string, Laya.SoundChannel>; ...
来源: Laya_社区 发布时间: 20250930
...ed Externals Only exported Menu Globals "laya/physics/RigidBody" RigidBody Class RigidBody 2D刚体,显示对象通过RigidBody和物理世界进行绑定,保持物理和显示对象之间的位置同步 物理世界的位置变化会自动同步到显示对象,显示对象本身的位移,...
来源: Laya3.0_api 发布时间: 20231115
...herited Externals Only exported Menu Globals "laya/d3/core/UI3D/UI3D" UI3D Class UI3D BaseCamera 类用于创建摄像机的父类。 Hierarchy BaseRender UI3D Implements IBoundsCell Index Constructors constructor Properties _extra _receiveShadow _singleton owner runInEditor scriptPath sortingFudge ...
来源: Laya3.0_api 发布时间: 20231115
...od stub Laya.Browser.window.location.href=data; } } //绑定父类 Laya.class(StartResource,"StartResource",StarUI); 主界面 红色是dalog 绿色是超链接按钮 点击超链接按钮。 并点击 chrome左上角的返回键。 回到主界面, 点击dalog,dalog失效 --...
来源: Laya_社区 发布时间: 20180810
...码: let PORT: number = 8080; let IP: string = "127.0.0.1"; export class NetSocket extends Laya.Socket{ private static _instance: NetSocket; public static get instance(): NetSocket { if (!NetSocket._instance) { NetSocket._inst...
来源: Laya_社区 发布时间: 20170602
...d Menu Globals "laya/d3/physicsCannon/CannonRigidbody3D" CannonRigidbody3D Class CannonRigidbody3D Rigidbody3D 类用于创建刚体碰撞器。 Hierarchy CannonPhysicsCollider CannonRigidbody3D Index Constructors constructor Properties _extra _singleton canScaleShape owner runInEditor scriptPath TY...
来源: Laya3.0_api 发布时间: 20231102
... Only exported Menu Globals "laya/d3/component/HLOD/HLODRender" HLODRender Class HLODRender Hierarchy BaseRender HLODRender Implements IBoundsCell Index Constructors constructor Properties _extra _receiveShadow owner runInEditor scriptPath sortingFudge Accessors awaked bounds boundsChange castShadow...
来源: Laya3.0_api 发布时间: 20231115
... this.preload(this.onPreloaded.bind(this)); } Laya.class(Test01, 'view.Test01', _super); var _proto = Test01.prototype; _proto.preload = function (complete) { console.log("preload..." + (++this.numPreloadCalls)); if (this.d...
来源: Laya_社区 发布时间: 20180622
...的移动,摄像机的位置也同步移动,代码如下: const { regClass, property } = Laya; @regClass() export default class CameraControll extends Laya.Script { @property( { type: Laya.Sprite3D } ) public target: Laya.Sprite3D; private camera: Laya.Camera; public distanceUp: number = 0.5;/...
来源: Laya3.0_文档 发布时间: 20251010