Description
The Delete
method is a public instance method of the Editor.BaseDropObject
class. It is used to delete the current drop object, effectively marking it as removed from the editor environment. This method does not take any parameters and does not return a value.
Usage
To use the Delete
method, simply call it on an instance of BaseDropObject
. This will set the Deleted
property to true
, indicating that the object has been deleted. Ensure that any necessary cleanup or state management is handled after calling this method, as the object will no longer be considered active in the editor.
Example
// Example of using the Delete method
// Assume 'dropObject' is an instance of BaseDropObject
BaseDropObject dropObject = new BaseDropObject();
// Perform operations with dropObject
// ...
// Delete the drop object when it is no longer needed
dropObject.Delete();
// Check if the object is marked as deleted
if (dropObject.Deleted)
{
// Handle post-deletion logic
// ...
}