doc-slot-core-manual/docs/faqs/03-setup-cocos-scene.md
2025-05-13 14:36:09 +07:00

25 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Cocos Scene Setup
---
## Platform Node Spawner
Use this configuration to control which prefabs appear based on the current platform.
| Setting | Value | Description |
|--------------------|----------------------|-----------------------------------------------|
| **Desktop Toggle** | ✅ Enabled | Show prefab on desktop |
| **Mobile Toggle** | ❌ Disabled | Hide prefab on mobile |
| **Target Prefab** | `prefab name` | Name of the prefab to be spawned |
## Platform ui controller
1. Attach this script to any node that should only appear on a specific platform.
2. At runtime, the node will automatically be removed if it doesnt match the active platform.
| Setting | Value | Description |
|--------------------|----------------------|-----------------------------------------------|
| **Desktop Toggle** | ✅ Enabled | Show node on desktop |
| **Mobile Toggle** | ❌ Disabled | Hide node on mobile |