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

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

371. laya.d3.math.BoundSphere_API3.0 [ 74%]

...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

372. UI-Label [ 74%]

...= 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

373. UI-RadioGroup [ 74%]

...发更高效。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

374. [LayaAir3]Pool对象池获取继承对象时会返回基类对象 [ 74%]

...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

375. Laya的安卓二次开发主动调用js层,无法实现传回数据给js层 [ 74%]

...回参数 :"+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

376. laya.d3.core.render.PostProcessEffect_API3.0 [ 74%]

...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

377. 【简单跑酷--JS版】---Lv.6 终篇 [ 74%]

...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

378. 鼠标交互-双指旋转(多点触控) [ 73%]

...种开发语言、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

379. 灯光-聚光 [ 73%]

...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

380. laya.d3.component.animator.AvatarMask_API3.0 [ 73%]

...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