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

大约有 1,766 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0089 秒)

1321. LayaNative端使用.ttf字体 [ 52%]

...a.net.Loader; import laya.utils.Browser; import laya.utils.Handler; public class Test { public function Test() { Laya.init(550,400); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load("hu.ttf",Handler.create(this,onLoaded),null,Loader.BUFFER); } private function onLoaded():void { var arr:ArrayBuffer=Lay...

来源: Laya_社区 发布时间: 20161219

1322. [LayaAir3]如何在3D场景添加文字呢 [ 52%]

...访问到 UI3D, 再用 ui3d.sprite 获取 prefab 的根节点.   export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { let sprite3d: Laya.Sprite3D = this.scene3D.getChildByName("m_Sprite3D"); let ui3d: Laya.UI3D = sprite3d.getComponent(Laya.UI3D); let ui3d_root: Laya.Sprite = ui3...

来源: Laya_社区 发布时间: 20251020

1323. 网络通信 · LayaAir3文档 · LAYABOX [ 52%]

...备发送请求的功能。我们写个简单的例子来看下用法: class LayaSample { constructor() { //创建HttpRequest对象 let http: Laya.HttpRequest = new Laya.HttpRequest(); //设置超时时间 http.http.timeout = 10000; //发送了一个简单的请求 http.send("resources/data.txt", ...

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

1324. laya.d3.component.volume.reflectionprobe.ReflectionProbe_API3.0 [ 52%]

..."laya/d3/component/Volume/reflectionProbe/ReflectionProbe" ReflectionProbe Class ReflectionProbe ReflectionProbe 类用于实现反射探针组件 miner Hierarchy Volume ReflectionProbe Index Constructors constructor Properties _extra _isScene _singleton _updateMark owner runInEditor scriptPath TEMP...

来源: Laya3.0_api 发布时间: 20231115

1325. laya.d3.core.render.ScreenTriangle_API3.0 [ 52%]

... exported Menu Globals "laya/d3/core/render/ScreenTriangle" ScreenTriangle Class ScreenTriangle ScreenTriangle 类用于创建全屏三角形。 Hierarchy Resource ScreenTriangle Index Constructors constructor Properties destoryedImmediately lock name url uuid DEBUG Accessors cpuMemory destroyed gpu...

来源: Laya3.0_api 发布时间: 20231102

1326. laya.d3.core.particleShuriKen.module.GradientAngularVelocity [ 52%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames GradientAngularVelocityProperties | Methods Packagelaya.d3.core.particleShuriKen.moduleClasspublic class GradientAngularVelocityInheritanceGradientAngularVelocity ObjectImplements laya.d3.core.IClone GradientRotation 类...

来源: Laya2.0_api 发布时间: 20190513

1327. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 52%]

...n.ts`文件,在index.html中引用。编写以下代码: ```typescript class Main { constructor() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui....

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

1328. laya.d3.math.Matrix4x4_API3.0 [ 52%]

...ed Externals Only exported Menu Globals "laya/d3/math/Matrix4x4" Matrix4x4 Class Matrix4x4 Matrix4x4 类用于创建4x4矩阵。 Hierarchy Matrix4x4 Implements IClone Index Constructors constructor Properties elements DEFAULT ZERO Methods clone cloneByArray cloneTo decomposeTransRotMatScale decompos...

来源: Laya3.0_api 发布时间: 20231102

1329. laya.d3.core.particleShuriKen.module.GradientAngularVelocity [ 52%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames GradientAngularVelocityProperties | Methods Packagelaya.d3.core.particleShuriKen.moduleClasspublic class GradientAngularVelocityInheritanceGradientAngularVelocity ObjectImplements laya.d3.core.IClone GradientRotation 类...

来源: laya_api 发布时间: 20170929

1330. laya.physics.CircleCollider_API3.0 [ 52%]

...ls Only exported Menu Globals "laya/physics/CircleCollider" CircleCollider Class CircleCollider 2D圆形碰撞体 Hierarchy ColliderBase CircleCollider Index Constructors constructor Properties _extra _singleton fixture label owner rigidBody runInEditor scriptPath Accessors awaked density destroyed ...

来源: Laya3.0_api 发布时间: 20231115