大约有 458 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0050 秒)
...默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用 Returns void Optional onStart onStart(): void Inherited from Component.onStart Defined in laya/components/Component.ts:287 第一次执行u...
来源: Laya3.0_api 发布时间: 20231102
...默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用 此方法为虚方法,使用时重写覆盖即可 Component onStart():void 第一次执行update之前执行,只会执行一次 此...
来源: Laya2.0_api 发布时间: 20190513
...onCreate: function(img:*):void { image = img; //增加引用,防止垃圾回收 imgCache[url] = img; }}); 这里的调用create本身就是返回一个对象了,为什么这里还能在new那个对象呢,而且如果用一个t去接create再new就会报错了,有谁知道这是什么原理...
来源: Laya_社区 发布时间: 20180702
...从父节点移除,并且清理自身引用关系,等待js自动垃圾回收机制回收。destroy后不能再使用。 destroy时会移除自身的事情监听,自身的timer监听,移除子对象及从父节点移除自己。 Sprite3D destroyChildren():void 销毁所有子对象,不销...
来源: Laya2.0_api 发布时间: 20190513
...默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用 Returns void Optional onStart onStart(): void Inherited from Component.onStart Defined in laya/components/Component.ts:287 第一次执行u...
来源: Laya3.0_api 发布时间: 20231102
...默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用 Returns void Optional onStart onStart(): void Inherited from Component.onStart Defined in laya/components/Component.ts:287 第一次执行u...
来源: Laya3.0_api 发布时间: 20231115
...物体。这种方法的`out:Vector.` — 碰撞结果[数组元素会被回收]。 下面我们先来展示A类`raycastFromTo`,`raycastAllFromTo`的使用,这段代码源自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Physics3D&name=Physics...
来源: Laya2.0_文档 发布时间: 20210715
...物体。这种方法的`out:Vector.` — 碰撞结果[数组元素会被回收]。 下面我们先来展示A类`raycastFromTo`,`raycastAllFromTo`的使用,这段代码源自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Physics3D&name=Physics...
来源: Laya2.0_文档 发布时间: 20210715
...物体。这种方法的`out:Vector.` — 碰撞结果[数组元素会被回收]。 下面我们先来展示A类`raycastFromTo`,`raycastAllFromTo`的使用,这段代码源自于官方示例([demo地址](https://layaair.ldc.layabox.com/demo2/?language=ch&category=3d&group=Physics3D&name=Physics...
来源: Laya2.0_文档 发布时间: 20210715
...默认值,如果实现了这个函数,则组件会被重置并且自动回收到对象池,方便下次复用 如果没有重置,则不进行回收复用 Returns void Optional onStart onStart(): void Inherited from Component.onStart Defined in laya/components/Component.ts:287 第一次执行u...
来源: Laya3.0_api 发布时间: 20231115