大约有 1,766 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0074 秒)
Laya_社区(625) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(86) Laya2.0_api(67) laya_api(64)
...加入下述代码,实现一个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
...建一个空项目,语言选择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
... 代码如下: 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
... 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
...址](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?category=&class=_laya_d3_core_material_renderstate_.renderstate#srcblendrgb))。  框选部分为渲染状态,可以通过这些值修改渲染状态。 非框选部分为渲染状态枚举。 **注意**:如果设置...
来源: Laya2.0_文档 发布时间: 20210715
...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
...时,完成初始化。 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
...动吗 冰水blue • 2018-06-04 21:15 @(^_^):http://brm.io/matter-js/docs/classes/Body.html 自己看看吧。 冰水blue • 2018-05-23 14:49 已经添加到world了啊。
来源: Laya_社区 发布时间: 20180522
..."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
...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