Constructor
new ObjectInput(type, editor, object, domElement)
private constructor user should not override it !!
Parameters:
Name | Type | Description |
---|---|---|
type | string | type of object input |
editor | Editor | editor running this script |
object | object | object to edit |
domElement | HTMLElement | where ui element should be appended |
- Source
Classes
Members
domElement :HTMLElement
Type:
- HTMLElement
editor :Editor
Type:
object :object
Type:
- object
type :string
Type:
- string
(static) TYPE
to know which kind of object is edited
Methods
condition(…args) → {boolean}
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args | any | <repeatable> | arguments (id for scriptVariables input & gameobject3d for userData) |
Returns:
- if true this object input can edit the concern object
- Type:
- boolean
dispose()
Call when this is disposed
init()
Call when this is instanciated
tick()
Call every frame computed
(static) condition() → {boolean}
Returns:
- if true this object input can edit the concern object
- Type:
- boolean