大约有 1,763 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(85) Laya2.0_api(67) laya_api(64)
...xternals Only exported Menu Globals "laya/d3/math/BoundSphere" BoundSphere Class BoundSphere BoundSphere 类用于创建包围球。 Hierarchy BoundSphere Implements IClone Index Constructors constructor Properties _center _radius Accessors center radius Methods clone cloneTo intersectsRayDistance i...
来源: Laya3.0_api 发布时间: 20231115
...= Laya.Stage; import Label = Laya.Label; import WebGL = Laya.WebGL; export class UI_Label { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL...
来源: Laya_示例 发布时间: 20251209
...发更高效。let SPACING = 150, X_OFFSET = 200, Y_OFFSET = 200, skins; class UI_RadioGroup { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.st...
来源: Laya2.0_示例 发布时间: 20251209
...ayaAir3]Pool对象池获取继承对象时会返回基类对象 const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onStart() { let item1 = Laya.Pool.createByClass(TestClass); console.log('item1:', item1.type); Laya.Pool.recoverByClass(item1); let item2 = Laya.Po...
来源: Laya_社区 发布时间: 20250819
...回参数 :"+obj.toString()); ExportJavaFunction.CallBackToJS(JSBridge.class, "authWxToLaya", obj.toString()); } }); 方式2: ConchJNI.RunJS("PlatformSDK.authWxToLaya(222)"); 方式3: ExportJavaFunction.CallBackToJS(JSBridge.class, "authWxToLaya", "aabbcc"); ConchJNI.RunJS("alert('hello Lay...
来源: Laya_社区 发布时间: 20200113
...ted Menu Globals "laya/d3/core/render/PostProcessEffect" PostProcessEffect Class PostProcessEffect PostProcessEffect 类用于创建后期处理渲染效果。 Hierarchy PostProcessEffect ColorGradEffect BloomEffect ScalableAO GaussianDoF Index Constructors constructor Accessors active Methods effec...
来源: Laya3.0_api 发布时间: 20231115
...type_energy"; //速度类型 Hp.HP_TYPE_SPEED = "hp_type_speed"; //Hp Laya.class(Hp,"Hp", laya.display.Sprite); var _proto = Hp.prototype; _proto.init = function(type){ this.width = 180; this.height = 21; var texture1 = Laya.loader.getRes("res/hp_bg.png"); var texture2; switch (type) { case Hp.HP_TY...
来源: Laya_社区 发布时间: 20160803
...种开发语言、LayaAirIDE让项目开发更高效。let preRadian = 0; class Interaction_Rotate { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth...
来源: Laya2.0_示例 发布时间: 20251209
...direction, _quaternion, _direction); spotLight.direction = _direction; }); class SpotLightDemo { private scene: Laya.Scene; private _quaternion: Laya.Quaternion; private _position: Laya.Vector3; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenM...
来源: Laya_示例 发布时间: 20251209
...y exported Menu Globals "laya/d3/component/Animator/AvatarMask" AvatarMask Class AvatarMask 用来描述动画层遮罩 Hierarchy AvatarMask Index Constructors constructor Methods clone cloneTo getAllTranfromPath getTransformActive setTransformActive Constructors constructor new AvatarMask(data?: an...
来源: Laya3.0_api 发布时间: 20231115