Package | laya.d3.core |
Class | public class MeshFilter |
Inheritance | MeshFilter GeometryFilter EventDispatcher Object |
MeshFilter
类用于创建网格过滤器。
Property | Defined By | ||
---|---|---|---|
destroyed : Boolean [read-only]
获取是否已销毁。
| GeometryFilter | ||
_isAsyncLoaded : Boolean [override] [read-only]
| MeshFilter | ||
_originalBoundingBox : BoundBox [override] [read-only]
| MeshFilter | ||
_originalBoundingBoxCorners : Array [override] [read-only]
| MeshFilter | ||
_originalBoundingSphere : BoundSphere [override] [read-only]
| MeshFilter | ||
sharedMesh : BaseMesh
获取共享网格。
| MeshFilter |
Method | Defined By | ||
---|---|---|---|
MeshFilter(owner:MeshSprite3D)
创建一个新的 MeshFilter 实例。
| MeshFilter | ||
_destroy():void [override]
| MeshFilter | ||
event(type:String, data:* = null):Boolean
派发事件。
| EventDispatcher | ||
hasListener(type:String):Boolean
检查 EventDispatcher 对象是否为特定事件类型注册了任何侦听器。
| EventDispatcher | ||
isMouseEvent(type:String):Boolean
检测指定事件类型是否是鼠标事件。
| EventDispatcher | ||
off(type:String, caller:*, listener:Function, onceOnly:Boolean = false):EventDispatcher
从 EventDispatcher 对象中删除侦听器。
| EventDispatcher | ||
offAll(type:String = null):EventDispatcher
从 EventDispatcher 对象中删除指定事件类型的所有侦听器。
| EventDispatcher | ||
on(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher
使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知。
| EventDispatcher | ||
once(type:String, caller:*, listener:Function, args:Array = null):EventDispatcher
使用 EventDispatcher 对象注册指定类型的事件侦听器对象,以使侦听器能够接收事件通知,此侦听事件响应一次后自动移除。
| EventDispatcher |
Event | Summary | Defined By | ||
---|---|---|---|---|
异步几何体资源加载完成时调度。 | MeshFilter | |||
更换sharedMesh时调度。 | MeshFilter |
_isAsyncLoaded | property |
_isAsyncLoaded:Boolean
[read-only] [override]
public function get _isAsyncLoaded():Boolean
_originalBoundingBox | property |
_originalBoundingBox:BoundBox
[read-only] [override]
public function get _originalBoundingBox():BoundBox
_originalBoundingBoxCorners | property |
_originalBoundingBoxCorners:Array
[read-only] [override]
public function get _originalBoundingBoxCorners():Array
_originalBoundingSphere | property |
_originalBoundingSphere:BoundSphere
[read-only] [override]
public function get _originalBoundingSphere():BoundSphere
sharedMesh | property |
sharedMesh:BaseMesh
获取共享网格。
public function get sharedMesh():BaseMesh
public function set sharedMesh(value:BaseMesh):void
MeshFilter | () | Constructor |
public function MeshFilter(owner:MeshSprite3D)
创建一个新的 MeshFilter
实例。
owner:MeshSprite3D — 所属网格精灵。
|
_destroy | () | method |
override public function _destroy():void
loaded | Event |
meshchanged | Event |