Skip to content

Example TArray does not appear in Inspector and throws an Error #1

@RobertOrange

Description

@RobertOrange

I'm using the example script and none of the example TArrays appear in the inspector and I receive an error in the console which says "ArgumentException: Getting control 1's position in a group with only 1 controls when doing repaint
Aborting"

I'm using Unity Version 2021.3.15f1 and I'm on Windows 10.

To reproduce the issue:

  1. Create a New Scene.
  2. Create a new empty game object
  3. Add the TArray Example component script to the game object.
  4. Observe.

From my own research it seems this has to do with using EditorGUILayout in the propertydrawer script.

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions