Unity Editor: Custom Inspector Tooltips

If you ever find yourself designing an editor window and feel your custom inspector property needs a tooltip, this could come in handy:

public void GenerateTooltip(string text)
    var propRect = GUILayoutUtility.GetLastRect();
    GUI.Label(propRect, new GUIContent("", text));

Use it after the property you wish to add a tooltip to (I’m using a LayerMask in this example):

LayerMask groundLayer = EditorGUILayout.MaskField("Ground Detection Layer"), InternalEditorUtility.LayerMaskToConcatenatedLayersMask(animal.groundLayer), InternalEditorUtility.layers);
GenerateTooltip("The layer(s) this animal can walk on.");



Animalia: Animal AI

After a disheartening conversation with an asset store publisher, I decided to venture into creating an asset that can handle animal AI without a lot of clunky processing overhead, unwieldy editors, or cranky publishers that abandon all hope and jump ship when receiving abysmal initial reviews.

Release Roadmap:

  • Obstacle Avoidance
  • Nearby Enemy Detection and Avoidance
  • Age, Death, Hunger
  • Behavior Types: Passive, Cautious, Friendly, Aggressive

Future Roadmap:

  • Foot IK and Footsteps
  • Traits (Hungry, Energetic, Playful, Irritable, Curious, etc)
  • Herds and Swarms (Groups of animals headed the same place!)
  • Taming and Breeding
  • Hunting

Here’s a quick screenshot of the works in progress.