add content node

This commit is contained in:
dungdq 2025-05-15 13:13:16 +07:00
parent b08c6b98d4
commit 9c53e78623
2 changed files with 24 additions and 0 deletions

View File

@ -22,3 +22,27 @@ Use this configuration to control which prefabs appear based on the current plat
|--------------------|----------------------|-----------------------------------------------|
| **Desktop Toggle** | ✅ Enabled | Show node on desktop |
| **Mobile Toggle** | ❌ Disabled | Hide node on mobile |
## Node Spawner
Spawns a prefab at the same position as the original node and then removes the node.
#### Usage
- On scene start, the prefab replaces the node.
1. Attach the script to a placeholder node.
2. Set the `prefab` property in the Inspector.
## UI Mobile Landscape / Portrait Position
Positions a node at a specific location when the device is in landscape / portrait mode on mobile.
#### Usage
1. Attach the script to your node.
2. Set `default Position` in the Inspector.
3. The position updates automatically in mobile landscape / portrait mode.
![Position](./img/default-setting.png)

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB