SlidingDoor
A class in Root.Township, the global namespace.
A Door that opens by sliding a moving part to an offset position instead of swinging.
- Listed in Global namespace: S
- Inherits or implements
Door
Constructors
| Member | What it is |
|---|---|
SlidingDoor() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
5 private and internal fields
Methods
| Member | What it is |
|---|---|
override void InitializeAsServer(SpawnData spawnData) | Server: places the part at the open or closed position to match the saved state. |
protected override void HandleChange() | Starts the slide when the door's open state changes. |