altavir
03/08/2019, 7:19 AMSvyatoslav Kuzmich [JB]
03/08/2019, 8:03 AMbind a property of an object to a callbackI'm not sure I'm following what you trying to achieve. What do you mean by "bind"? Could you point the name of the property you want to bind in your snippet?
altavir
03/08/2019, 8:03 AMaltavir
03/08/2019, 8:05 AMCuboidMesh(obj.xSize, obj.ySize, obj.zSize).apply {
this.centerProperty().bind(center)
this.materialProperty().bind(listener["color"].transform { it.material() })
}
altavir
03/08/2019, 8:07 AMRobert Jaros
03/08/2019, 9:07 AMaltavir
03/08/2019, 9:10 AMonChange
method in the code. The problem is how to automatically notify the properties of a library (three.js) objects. It is obviously not possible in basic kotlin, but possible in pure JS. I thought that there is some kind of trick there.altavir
03/08/2019, 9:13 AM