Troubleshooting
Detection area mispositionned (v1)
Two cases: 1- The misalignment of the detection area is likely due to a Prefab issue.
If your door is a Prefab, which is typically the case for consistency, you'll need to click on "Calculate Detection Area" once it's instantiated in your scene. Since the detection area is based on world position, it won't move with your door when it opens or closes.
Therefore, if you position the detection area within the Prefab space, it may not align properly with the world position in your scene.
2- A mispositioned detection area can also be caused when the parent (containing the SmartDoor component) and the child (the actual door) do not have their forward directions aligned. Make sure to rotate them so they face the same direction, reset the open/close position, and then recalculate the detection area.
Door is not opening ?!
Most of the time, doors that don't open are due to misconfigurations:
Ensure that the SmartDoor component is added to an empty parent GameObject. Learn more.
Make sure your doors and their children are dynamic GameObjects and not static. Uncheck the static option if necessary. Learn more.
Check the Layer Mask and Tag Mask settings for your Detection Area.
Verify that your Player is assigned to the correct Layer and has the appropriate Tag.
Align the forward direction of the SmartDoor GameObject as described here.
Door is deformed when opening (v2)
Check the Scale of the GameObject containing SmartDoor component. This scale must be uniform (1,1,1 or 2,2,2 or 3,3,3, etc...).
If you need a non uniform scale, just apply it on the child instead.
Doors don't work since v2
If you previously had Door System v1, you need to perform some operations to deal with the breaking changes.
Fortunatly, Door System v2 is shipped with a powerful Migration Tool. You can learn how to use it right here.
Last updated
Was this helpful?