Search Issue Tracker

By Design

Votes

0

Found in [Package]

1.4.0-pre.3 - Entities

Issue ID

ECSB-1737

Regression

Yes

"ArgumentException: Unknown Type:UnityEngine.Camera" is thrown when entering Play Mode

Package: Entity Component System (ECS)

-

How to reproduce:
1. Open the “IN-108964_CameraEntitiesError“ project
2. Enter Play Mode
3. Observe Console

Expected result: No errors appear
Actual result: An error is thrown: “ArgumentException: Unknown Type:{{UnityEngine.Camera}} All Entities component types must be registered with the TypeManager.“

Reproducible with: 1.4.0-pre.3 (6000.0.54f1, 6000.1.13f1, 6000.2.0b11, 6000.3.0a3)
Not reproducible with: 1.4.0-exp.2 (6000.2.0b11, 6000.3.0a3)

Reproducible on: macOS 15.5 (M1 Max), Windows 10 (by user)
Not reproducible on: no other environments tested

  1. Resolution Note:

    It is necessary to register the component with the type manager now as per the error message:

    `throw new ArgumentException($"Unknown Type:`{typeof(T)}` All Entities component types must be registered with the TypeManager. For generic components and UnityEngine components, register with [RegisterGenericComponentType] and [RegisterUnityEngineComponentType] respectively. "

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.