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

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

181. [LayaAir3]Laya.loader.loadPackage 加载勾选版本管理的子包失败 [ 54%]

...operty } = Laya; @regClass() export class StartScene extends Laya.Script { onAwake(): void { Laya.timer.once(1000, this, () => { Laya.loader.loadPackage("common", "http://127.0.0.1:2840", (p) => { console.log("common", p); }) }); } } 2024-11-04 0 0 分享 微博 QZONE 微信 为什么被折叠...

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

182. laya.d3.core.light.LightSprite_API3.0 [ 54%]

...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new LightSp...

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

183. UI运行时 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...过的UI组件,直接使用this.即可使用。例如下面的代码: onAwake(): void { // Button添加鼠标事件,让Image不显示 this.Button.on( Laya.Event.MOUSE_DOWN, this, ()=>{ this.Image.visible = false; }); } 运行此场景来看看效果,如动图2-7所示。 (动图2-7) U...

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

184. 2D拖尾渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //在节点上添加2D拖尾渲染器 this._trail2D = this.owner.addComponent(Laya.Trail2DRender); //设置淡出时间 this._trail2D.time = 1; //设置最小距离 this._trail2D.minVertexDistance = 0.1; //设...

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

185. ios苹果手机,同时播放声音出现巨大杂音 [ 54%]

...{         console.log("播放完成2");     }          onAwake(){           this.setup();     }      }   附件 : --> Desktop.rar 2020-09-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交...

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

186. 视频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D节点 this.videoPlane = this.scene.getChildByName("Plane") as Laya.Sprite3D; //使用指定路径的视频文件 this.createVideo("resources/mov_bbb.mp4"); } //创...

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

187. laya.physics.joint.RopeJoint [ 54%]

...ted Methods MethodDefined By  _createJoint():void[override] RopeJoint _onAwake():void[override] JointBase _onDisable():void[override] JointBase _onEnable():void[override] JointBaseProperty DetailcollideConnectedpropertypublic var collideConnected:Boolean = false[首次设置有效]两个刚体...

来源: Laya2.0_api 发布时间: 20190513

188. laya.physics.joint.WeldJoint [ 53%]

...ted Methods MethodDefined By  _createJoint():void[override] WeldJoint _onAwake():void[override] JointBase _onDisable():void[override] JointBase _onEnable():void[override] JointBaseProperty Detailanchorpropertypublic var anchor:Array[首次设置有效]关节的链接点,是相对于自身刚...

来源: Laya2.0_api 发布时间: 20190513

189. laya.d3.core.light.PointLight_API3.0 [ 53%]

...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeChild removeChildAt removeChildByName removeChildren removeSelf replaceChild runCallLater setChildIndex timerLoop timerOnce instantiate load Constructors constructor new PointLi...

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

190. laya.d3.core.BaseCamera_API3.0 [ 53%]

...lag hasListener isAncestorOf off offAll offAllCaller on onAfterDeserialize onAwake onDestroy onDisable onEnable once removeAllLayers removeChild removeChildAt removeChildByName removeChildren removeLayer removeSelf render replaceChild resetProjectionMatrix runCallLater setChildIndex timerLoop timerO...

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