Skip to content

AutoObjectParentSync may fail if turned off and back on again because of m_CachedParent #3572

@zachstronaut

Description

@zachstronaut

Description

If you turn AutoObjectParentSync off and do some re-parenting and then turn it back on and do some re-parenting, the auto re-parenting will not send if m_CachedParent happens to have been previously set to the new parent you are targeting.

m_CachedParent maybe should be set to the current parent when AutoObjectParentSync goes from false to true.

This could also be a feature request / something for the docs I suppose.

Environment

OS: Windows 11
Unity Version: 6000.1.3f1
Netcode Version: 2.4.2
Netcode Topology: Client-Server

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:mediumThis issue has medium priority and may take some time to be resolvedstat:awaiting-responseAwaiting response from author. This label should be added manually.stat: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