onObjectEdit
This event is triggered when an object is edited.
Parameters
Name | Type | Description |
---|---|---|
object | ObjectManager | The object being edited |
type | ObjectEditActionType | The type of edit action performed |
`prevTransform | ObjectEditTransform | The old transform of the object |
Example
engine.events.on('onObjectEdit', (object, type, prevTransform) => {
console.log('Object edited:', object, 'Edit action:', type, prevTransform);
});
Available on: Client