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

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

61. 渲染队列排序问题,导致Alpha混合效果出错 [ 58%]

...ender=renders ;             if (camera._isLayerVisible(render._owner._layer)&& render._enable){                 Stat.frustumCulling++;                 if (!camera.useOcclusionCulling || render._needRender(boundFrustum)){              ...

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

62. TiledMap地图 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...e2D下 private onLoaded(): void { this.tMap.mapSprite().removeSelf(); this.owner.addChild(this.tMap.mapSprite()); } //地图加载完成的回调 private completeHandler(e: any = null): void { this.onLoaded(); } } 编译运行代码,效果如图3-3所示,说明地图已创建成功。 (图3-3...

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

63. 显示文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...aya; @regClass() export class LabelControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake...

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

64. laya.d3.component.volume.reflectionprobe.ReflectionProbe_API3.0 [ 57%]

...Constructors constructor Properties _extra _isScene _singleton _updateMark owner runInEditor scriptPath TEMPVECTOR3 defaultTextureHDRDecodeValues Accessors ambientColor ambientIntensity ambientMode ambientSH ambientSphericalHarmonics awaked bounds boundsMax boundsMin boxProjection customReflection d...

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

65. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 57%]

...器 createLightOccluder(): void { this.lightOccluder.pos(233, 265); this.owner.addChild(this.lightOccluder); let lightOccluderComponent = this.lightOccluder.addComponent(Laya.LightOccluder2D); lightOccluderComponent.canInLight = true; lightOccluderComponent.outside = true; let poly: Laya.PolygonPoin...

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

66. 初学者的提问,如何在场景中获取到对象 [ 57%]

...下: btnclick.js 如下: onAwake(){         this.btn = this.owner;         this.btn.on(Laya.Event.CLICK,this,this.cli)                    }         cli(){         /// how to 获得text 对象,并改变text的值???     } 2020-04-12 ...

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

67. 如何通过代码控制prefab上面的时间轴动画animation? [ 57%]

...作。 ... ani_show:Laya.FrameAnimation; onAwake(){ this.ani_show = this.owner["play"] as Laya.FrameAnimation; // 在onAwake中添加播放完成事件,基于某些原因,可能在onDisable的时候被移除,如果发现异常,可以选择在onEnable里面添加事件 this.ani_show.on(Laya.E...

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

68. 微信小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

... } = Laya; @regClass() export class Script extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake()...

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

69. 如何对3D精灵进行鼠标检测(JavaScript-3D基础(JS)-LayaAir3D之鼠标交互) [ 56%]

...到的物体 this.text.text = "碰撞到了" + this.outHitResult.collider.owner.name ; console.log("碰撞到物体!!") } } ``` ![](img/2.gif)(图2)

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

70. 如何对3D精灵进行鼠标检测(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 56%]

...到的物体 this.text.text = "碰撞到了" + this.outHitResult.collider.owner.name ; console.log("碰撞到物体!!") } } ``` ![](img/2.gif)(图2)

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