Quick Actions

Shortcuts and productivity features for efficient workflow

Quick Actions

The Quick Actions section in the NSliceLayoutGroup inspector provides convenient shortcuts for common layout operations, helping you work more efficiently with your grid layout.

Available Actions

Auto-Create Children for All Tiles

Automatically creates empty game objects for every tile in the grid and assigns them accordingly. This is useful when you want to quickly populate your entire layout with placeholder objects that you can customize later.

Auto-detect Existing Children

Scans the existing child game objects and assigns them to tiles in sequential order. This helps when you already have child objects and want to quickly organize them into the grid layout without manual assignment.

Clean Up Null References

Removes any null or missing object references that may have been assigned to tiles. This can happen when objects are deleted or renamed, leaving invalid references in the layout. This action cleans up these invalid assignments.

Clear All Mappings

Removes all object assignments from the entire grid, returning all tiles to their empty state. Use this when you want to start fresh with your layout or completely reorganize your tile assignments.

Usage Tips

  1. Start with Auto-Create: When building a new layout from scratch, use "Auto-Create Children for All Tiles" to quickly populate your grid with placeholder objects
  2. Organize Existing Objects: If you already have child objects, use "Auto-detect Existing Children" to automatically assign them in order
  3. Clean Up Regularly: Use "Clean Up Null References" after deleting or modifying objects to maintain a clean layout
  4. Reset When Needed: Use "Clear All Mappings" when you want to completely reorganize your layout structure

These quick actions streamline common tasks and help maintain clean, organized layouts throughout your development process.