Commit 3706834
committed
fix
Added internal NetworkObject.ResetOnDespawn which resolves issue where m_LatestParent could still be set if using object pools.
It can now also be used to reset anything that needs to be reset at the end of a NetworkObject despawn.1 parent c2b1a7e commit 3706834
File tree
2 files changed
+23
-6
lines changed- com.unity.netcode.gameobjects/Runtime
- Core
- Spawning
2 files changed
+23
-6
lines changedLines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
1959 | 1960 | | |
1960 | 1961 | | |
1961 | 1962 | | |
1962 | | - | |
1963 | 1963 | | |
1964 | 1964 | | |
1965 | 1965 | | |
| 1966 | + | |
| 1967 | + | |
| 1968 | + | |
| 1969 | + | |
| 1970 | + | |
| 1971 | + | |
| 1972 | + | |
| 1973 | + | |
| 1974 | + | |
1966 | 1975 | | |
1967 | 1976 | | |
1968 | 1977 | | |
| |||
2695 | 2704 | | |
2696 | 2705 | | |
2697 | 2706 | | |
| 2707 | + | |
| 2708 | + | |
| 2709 | + | |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
| 2713 | + | |
| 2714 | + | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
2698 | 2718 | | |
2699 | 2719 | | |
2700 | 2720 | | |
| |||
Lines changed: 2 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1717 | 1717 | | |
1718 | 1718 | | |
1719 | 1719 | | |
1720 | | - | |
1721 | | - | |
| 1720 | + | |
| 1721 | + | |
1722 | 1722 | | |
1723 | 1723 | | |
1724 | 1724 | | |
| |||
1730 | 1730 | | |
1731 | 1731 | | |
1732 | 1732 | | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
1736 | 1733 | | |
1737 | 1734 | | |
1738 | 1735 | | |
| |||
0 commit comments