CharacterInitialSpawnPositionEditor - jimdroberts/FishMMO GitHub Wiki

Description

CharacterInitialSpawnPositionInspector is a custom Unity editor for FishMMO that allows adjustment of the initial spawn position of a character in the scene. It inherits height adjustment and mouse event logic from BaseHeightAdjustEditor, enabling interactive placement of character spawn points in the Unity Editor.


Basic Usage

Setup

  1. Attach the CharacterInitialSpawnPosition component to a GameObject in your scene.
  2. The CharacterInitialSpawnPositionInspector editor will automatically be used for this component in the Unity Editor.
  3. Use the scene view and mouse events to adjust the spawn position interactively.

Example

// Example 1: Using the custom editor in the Unity Editor
// 1. Select a GameObject with the CharacterInitialSpawnPosition component.
// 2. Use the mouse in the scene view to adjust its height and position interactively.

Best Practices

  • Use this custom editor to quickly and accurately place character spawn points in your scenes.
  • Leverage the inherited height adjustment logic for consistent placement above ground or surfaces.
  • Document the use of custom editors for team workflows and maintainability.
⚠️ **GitHub.com Fallback** ⚠️