ObjectInput

Used for creating object inputs in an editor

Constructor

new ObjectInput(type, editor, object, domElement)

private constructor user should not override it !!

Parameters:
NameTypeDescription
typestring

type of object input

editorEditor

editor running this script

objectobject

object to edit

domElementHTMLElement

where ui element should be appended

Classes

ObjectInput

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:
NameTypeAttributesDescription
argsany<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