new U3dObject(opt)
| Name | Type | Default | Description |
|---|---|---|---|
opt |
U3dObject~U3dObjectCO | {} | optional |
Methods
-
dispatch(type)
-
객체의 type 으로 등록된 리스너로 이벤트를 발생 시킵니다.
Name Type Description typestring -
getName()string
-
객체의 이름을 리턴합니다.
Returns:
Type Description string 객체의 이름 -
has(type, listener)boolean
-
객체에 type으로 등록된 listener가 있는지의 여부를 리턴합니다.
Name Type Description typestring 이벤트 타입
listenerEventCallBack 리스너 함수 또는 리스너 이름
Returns:
Type Description boolean listener 등록 여부
Type Definitions
-
U3dObjectCOobject
-
~extends UEventDispatcher~UEventDispatcherCO
U3dObject 생성자 옵션 입니다.Properties:
Name Type Argument Description namestring <optional>
객체 이름