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

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

211. laya.d3.core.particleshuriken.ShuriKenParticle3D_API3.0 [ 48%]

...ETRICGI_PROBESTEPS WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer numChildren parent particleRenderer particleSystem scene timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addCompone...

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

212. laya.d3.core.SkinnedMeshSprite3D_API3.0 [ 48%]

...ETRICGI_PROBESTEPS WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer meshFilter numChildren parent scene skinnedMeshRenderer timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponen...

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

213. laya.d3.core.trail.TrailSprite3D_API3.0 [ 48%]

...ETRICGI_PROBESTEPS WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer numChildren parent scene timer trailFilter trailRenderer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInst...

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

214. 请问Laya如何使用第三方物理库 [ 48%]

...; public ignoreRotate: boolean = false; ...OnAwake里面创建CANNON.Body, OnEnable里面把CANNON.Body加入到CANNON.World, OnDisable则移除, onUpdate里面根据CANNONBody的信息更新(this.owner as Laya.MeshSprite).transfrom.(最好用插值,平滑点,四元数代码就拷贝Laya源码改改...

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

215. LayaBox加载TiledMap地图和注意事项 [ 48%]

...图        this.tMap.createMap("./map/desert.json", viewRect); } onEnable() {        console.log(Laya.TiledMap)    } onDisable() { }} [/code]   重点来了,我们切回到编辑模式,选中场景文件,选中脚本文件并拖拽至runtime属性中。 到了这一步,...

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

216. 2D聚光灯 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

...aya.Sprite; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { this.setSpotLight(); } // 创建聚光灯 setSpotLight(): void { this.spotLight.pos(336, 280); let spotLightComponent = this.spotLight.getComponent(Laya.SpotLight2D); spotLightComponent.color = new Laya.Col...

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

217. 请问 layaair2.0的js有没有api可以查询 例如Laya.Script [ 48%]

... export default class btn1 extends Laya.Script { constructor(){super();} onEnable(){} onClick(){ alert("id="+this.id); //这里有一个id,但是系统自动生成的,无法获知这个id代表哪个按钮被点(因为我有4个按钮都绑了这个js) alert("name="+this.name); //未定义...

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

218. laya.d3.core.SimpleSkinnedMeshSprite3D_API3.0 [ 48%]

...ETRICGI_PROBESTEPS WORLDINVERTFRONT Accessors active activeInHierarchy components destroyed displayedInStage hideFlags id is3D layer meshFilter numChildren parent scene simpleSkinnedMeshRenderer timer transform url Methods _initialize _processActive addChild addChildAt addChildren addComponent addCo...

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

219. (最新版ide和库已经测试)iOS环境浏览器使用mask黑屏 [ 48%]

...文件,之前在2.3.0ide版本中也是同样的问题,在GameControl onEnable中执行如下代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () => { this.img.mask = th...

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

220. Steam扩展实例 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

... Laya.Script { @property({type: Laya.Button}) public initBtn: Laya.Button; onEnable(): void { this.initBtn.on(Laya.Event.CLICK, this.onInit); } onInit() { alert(extendLib.initializeSteam()); } } 构建发布Windows后,需要在exe的同级目录下,新建一个steam_appid.txt 文件,其中只...

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