Skip to content

NetworkTransform subclasses cannot add Inspector fields without subclassing NetworkTransformEditor #2271

@CodeSmile-0000011110110111

Description

Description

Any subclass of NetworkTransform cannot have custom public or [SerializeField] fields appearing in the Inspector automatically because its NetworkTransformEditor does not show fields in subclasses.

Reproduce Steps

  1. Make a subclass of NetworkTransform
  2. Add a public field to it
  3. Check Inspector, field doesn't show up

Expected Outcome

I would expect the NetworkTransformEditor to display any subclass fields at the bottom of the Inspector automatically.

While it is possible to subclass NetworkTransformEditor and render only the fields one has added, it is unexpected friction having to do so.

Environment

  • OS: Windows 10
  • Unity Version: 2021.3.11
  • Netcode Version: 1.1.0

Metadata

Metadata

Labels

priority:lowThis issue has low priority and will take some time to be resolvedstat:importedStatus - Issue is tracked internally at Unitytype:bugBug Report

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions