Hey,
I am trying to create dynamically sized EntityBaseDraggable Objects based on custom properties in BuildEntityButton.
In the BuildEntityButton I have shapeWidth and shapeHeight for the EntityBaseDraggable Object I want to create.
My Problem is that I can’t seem to get it to work. No Matter what I try to change in the BuildEntityButton, the button always creates a new Object
with the default Values. The only thing that works is the right size while dragging the object (set in the onEntityPressed Event with the creationEntity property). But as soon as I let go of the created object it reverts back to the default size. I tried to change the size in the onEntityRelease and onEntityWasBuilt Event but to no avail.
I also tried to set the size in the creationProperties also with the creationEntity property, but that throws an error.
”
<Unknown File>: QML Component: createObject: value is not an object
file::/qml/VPlay/scripts/EntityManager.js:200: TypeError: Result of expression ‘entity’ [null] is not an object.”
Any Idea what I might be doing wrong?