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

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

1371. 2D网格渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...加入下述代码,实现一个2D网格渲染器的效果: const { regClass, property } = Laya; @regClass() export class Mesh2DRender extends Laya.Script { @property({type: Laya.Sprite}) private layaMonkey: Laya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): v...

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

1372. JSONP跨域读取数据(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 50%]

...建一个空项目,语言选择as3,具体代码如下所示: ```java class LayaSample { constructor() { Laya.init(100,100); var script:any = Laya.Browser.createElement("script"); Laya.Browser.document.body.appendChild(script); script.src = "http://localhost:9090/?a=1"; } public static onComple...

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

1373. mac下用FB打包发布测试页面,chrome浏览器看不到预期显示文字 [ 50%]

... 代码如下: package {     import laya.display.Text;     public class LayaAirTest     {         public function LayaAirTest()         {             Laya.init(600, 300);             var txt:Text   = new Text();             txt.text     = "abc"+Laya....

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

1374. laya.d3.webxr.core.WebXRSessionManager_API3.0 [ 50%]

... Menu Globals "laya/d3/WebXR/core/WebXRSessionManager" WebXRSessionManager Class WebXRSessionManager Manages an XRSession to work with layaAir engine author miner Hierarchy EventDispatcher WebXRSessionManager Index Properties baseReferenceSpace currentFrame currentTimestamp defaultHeightCompensation...

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

1375. ShaderPass介绍(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 50%]

...址](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?category=&class=_laya_d3_core_material_renderstate_.renderstate#srcblendrgb))。 ![](img/3.png) 框选部分为渲染状态,可以通过这些值修改渲染状态。 非框选部分为渲染状态枚举。 **注意**:如果设置...

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

1376. LayaAir IDE 语言包的使用? [ 50%]

...aya.net.Loader; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { public function Main() { Laya.init(640, 960, WebGL); Laya.stage.scaleMode = Stage.SCALE_FULL; Laya.stage.bgColor = "#eeffcc"; Laya.loader.load("lang.lang",Handler.create(this,onLoaded),null,Loader.JSON); } privat...

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

1377. Steam扩展实例 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...时,完成初始化。 import { extendLib } from "./extlib"; const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({type: Laya.Button}) public initBtn: Laya.Button; onEnable(): void { this.initBtn.on(Laya.Event.CLICK, this.onInit); } onInit() { ale...

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

1378. 物理Bodies绑定Laya.Sprite [ 50%]

...动吗 冰水blue • 2018-06-04 21:15 @(^_^):http://brm.io/matter-js/docs/classes/Body.html 自己看看吧。 冰水blue • 2018-05-23 14:49 已经添加到world了啊。

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

1379. laya.d3.component.volume.batchvolume.StaticBatchVolume_API3.0 [ 50%]

..."laya/d3/component/Volume/BatchVolume/StaticBatchVolume" StaticBatchVolume Class StaticBatchVolume 类用来描述一个可合并渲染节点的体积 Hierarchy Volume StaticBatchVolume Index Constructors constructor Properties _extra _singleton owner runInEditor scriptPath Accessors awaked boundsMa...

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

1380. laya.d3.physics.constraints.ConstraintComponent_API3.0 [ 50%]

...bals "laya/d3/physics/constraints/ConstraintComponent" ConstraintComponent Class ConstraintComponent ConstraintComponent 类用于创建约束的父类。 Hierarchy Component ConstraintComponent ConfigurableConstraint FixedConstraint Index Constructors constructor Properties _extra _singleton disabl...

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