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

大约有 84 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0036 秒)

11. 可视遮罩层Layer(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 89%]

...件 每一次点击切换一个显示层 this.changeActionButton.on(Laya.Event.CLICK, this, function():void { //清除所有图层 this.camera.removeAllLayers(); //计数自加一 this.layerIndex ++; //设置可视图层 this.camera.addLayer(this.layerIndex%4 + 1); //将地板图层加入,地板...

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

12. 鼠标脚本(ActionScript-3D基础(AS3)-LayaAir3D之鼠标交互) [ 89%]

...(Collider) //当被鼠标点击 override public function onMouseDown(e:Event):void{ //trace("点击到了我box",owner.name); //从父容器销毁我自己 meshsp.removeSelf(); } } ``` > **主类**: ```typescript //给四个猴子添加脚本 staticLayaMonkey.addComponent(MouseScript); layaMonke...

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

13. 使用3D精灵 · LayaAir3.0文档 · LAYABOX [ 87%]

...tion; } } /** * 监听鼠标事件 */ onAwake(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.mouseDown); Laya.stage.on(Laya.Event.MOUSE_UP, this, this.mouseUp); this.camera = (<Laya.Camera>this.owner); } /** * 监听键盘事件 */ onUpdate(): void { var elapsedTime: number = Laya.t...

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

14. laya.d3.resource.models.Mesh_API3.0 [ 82%]

...PUMemory _setCreateURL _setGPUMemory calculateBounds clone cloneTo destroy event getBoneIndices getBoneWeights getColors getIndices getNormals getPositions getSubMesh getTangents getUVs getVertexDeclaration getVertices hasListener isCreateFromURL markAsUnreadbale off offAll offAllCaller on once setB...

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

15. Button自定义属性 [ 80%]

...lt; len; ++i){ let btn:Laya.Button = this.main.getchildbuy(i); btn.on(Laya.Event.CLICK,this.this.clickHandle); btn.xx = "xxx"; } private clickHandle(e:Laya.Event):void{ } 类似于我想给btn绑定“xxx”数据,用来给后面点击获取

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

16. laya.d3.core.TransformUV [ 80%]

...ds Packagelaya.d3.coreClasspublic class TransformUVInheritanceTransformUV EventDispatcher ObjectImplements laya.d3.core.IClone TransformUV 类用于实现UV变换。 Public Properties PropertyDefined By  matrix : Matrix4x4[read-only] 取变换矩阵。 TransformUV  offset : Vector2 取偏移...

来源: laya_api 发布时间: 20170929

17. laya.d3.core.reflectionprobe.ReflectionProbe_API3.0 [ 78%]

... addInputChild callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeC...

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

18. laya.d3.core.light.LightSprite_API3.0 [ 76%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...

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

19. laya.d3.core.Sprite3D_API3.0 [ 76%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...

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

20. laya.d3.core.light.PointLight_API3.0 [ 75%]

...ve addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer clone contains destroy destroyChildren event frameLoop frameOnce getChildAt getChildByName getChildIndex getComponent getComponents hasHideFlag hasListener isAncestorOf off offAll offAllCaller on on...

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