1.4.1
Small bugfix and addition of needed API
Changes
- Added
RegisterForceDeleteObject
- Will forcefully remove an entire GameObject if a specific component is found on it
- Useful for multiple components attached to a GameObject that are reliant on each other
- Fixed bug where ApplyComponentRestrictions would fail due to a null GameObject or Component
API Changes
RegisterForceDeleteObject
This method will remove an entire GameObject if a specific component type is found on it. This can be useful for multiple components on one GameObject that rely on each other.
Here is an example on how to register the EventSystem
and StandaloneInputModule
component
Security.RegisterForceDeleteObject<EventSystem>();
Security.RegisterForceDeleteObject<StandaloneInputModule>();
and that's it!