Search Issue Tracker

Won't Fix

Votes

0

Found in

5.6.1f1

Issue ID

932531

Regression

No

The function "GetComponentInParent" returns null when the parent object is networked

Scripting

-

Reproduction steps:
1. Open the attached project;
2. Build the scenes on Standalone platform;
3. Open the built project;
4. Click "LAN Host(H)" button and then "Change Scene: Network" button;

Actual result: ChildB.FindParentExternal.GetComponentInParent<ScriptParent>() is null.
Expected result: ChildB.FindParentExternal.GetComponentInParent<ScriptParent>() should not be a null.

Note: If you click "Change Scene:Local" button, everything would work fine, because in this scene the parent object is not networked. The issue does not appear in Editor. The bug occurs on Android platform too.

Reproduced with: 5.4.5p4, 5.5.4p2, 5.6.2p4, 2017.1.0p1, 2017.2.0b3

  1. Resolution Note:

    Mass closure of UNET Bugs.
    As UNet is Deprecated we are moving to low maintenance mode, where critical issues can get fixes.
    Closing this bug as part of cleaning-up the Bug List.

    If you feel this bug is really a road-blocker, you can reopen the bug and we will work this one.

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.