René's URL Explorer Experiment


Title: Client NetworkObjects experience Awake, Start, OnEnable, and TriggerEnter, CollisionEnter at world 0,0,0 upon instantiation · Issue #3553 · Unity-Technologies/com.unity.netcode.gameobjects · GitHub

Open Graph Title: Client NetworkObjects experience Awake, Start, OnEnable, and TriggerEnter, CollisionEnter at world 0,0,0 upon instantiation · Issue #3553 · Unity-Technologies/com.unity.netcode.gameobjects

X Title: Client NetworkObjects experience Awake, Start, OnEnable, and TriggerEnter, CollisionEnter at world 0,0,0 upon instantiation · Issue #3553 · Unity-Technologies/com.unity.netcode.gameobjects

Description: Description When a client spawns a NetworkObject via NetworkSpawnManage.InstantiateNetworkPrefab() there is no position or rotation data passed into UnityEngine.Object.Instantiate() and therefore the object is created at world 0,0,0. On ...

Open Graph Description: Description When a client spawns a NetworkObject via NetworkSpawnManage.InstantiateNetworkPrefab() there is no position or rotation data passed into UnityEngine.Object.Instantiate() and therefore t...

X Description: Description When a client spawns a NetworkObject via NetworkSpawnManage.InstantiateNetworkPrefab() there is no position or rotation data passed into UnityEngine.Object.Instantiate() and therefore t...

Opengraph URL: https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Client NetworkObjects experience Awake, Start, OnEnable, and TriggerEnter, CollisionEnter at world 0,0,0 upon instantiation","articleBody":"### Description\n\nWhen a client spawns a `NetworkObject` via `NetworkSpawnManage.InstantiateNetworkPrefab()` there is no position or rotation data passed into `UnityEngine.Object.Instantiate()` and therefore the object is created at world 0,0,0. On a later line of code the position and rotation are assigned, _after_ instantiation.\n\nThis means `Awake`, `Start`, and `OnEnable` are all called when at world 0,0,0 -- this is arguably expected and why you have `OnNetworkSpawn`.\n\nHowever, `OnTriggerEnter` (and probably `OnCollisionEnter`) **_also_** fire for things at world 0,0,0. That problem is outside of the scope of the `OnNetworkSpawn` warmup in my opinion.\n\nDevelopers should not have to write custom code to handle this problem when the position and rotation could simply be passed into the instantiation.\n\n```\ninternal NetworkObject InstantiateNetworkPrefab(GameObject networkPrefab, uint prefabGlobalObjectIdHash, Vector3? position, Quaternion? rotation)\n{\n    Vector3 defaultPosition = position ?? Vector3.zero;\n    Quaternion defaultRotation = rotation ?? Quaternion.identity;\n    var networkObject = UnityEngine.Object.Instantiate(networkPrefab, defaultPosition, defaultRotation).GetComponent\u003cNetworkObject>();\n    // networkObject.transform.position = position ?? networkObject.transform.position;\n    // networkObject.transform.rotation = rotation ?? networkObject.transform.rotation;\n    networkObject.NetworkManagerOwner = NetworkManager;\n    networkObject.PrefabGlobalObjectIdHash = prefabGlobalObjectIdHash;\n    return networkObject;\n}\n```\n\n### Environment\n\n- OS: Windows 11\n- Unity Version: 6000.1.3f1\n- Netcode Version: 2.4.2\n- Netcode Topology: Client-Server","author":{"url":"https://github.com/zachstronaut","@type":"Person","name":"zachstronaut"},"datePublished":"2025-07-17T16:53:57Z","url":"https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:87e65201-ecce-55bf-344d-b8bec8e5bdda
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9E1C:3EE843:2B3AE7F:3B496FC:6B005D54
html-safe-nonce2744f58fd22d3e56b96a46e5cbeab88a278c5cdd866440227c589addf9b3575d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTFDOjNFRTg0MzoyQjNBRTdGOjNCNDk2RkM6NkIwMDVENTQiLCJ2aXNpdG9yX2lkIjoiODg1Mjg2MDAxMDQ4MTM0MzgyOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6770f86a9fcdb94deae6bbd5d71bc40a3079c2ffa4cff902dc80fc6d53f9c9d7
hovercard-subject-tagissue:3240262686
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/Unity-Technologies/com.unity.netcode.gameobjects/3553/issue_layout
twitter:imagehttps://opengraph.githubassets.com/faae97eccfe5467eae0647042e99bc24c69bfe068ff967d92890213f22aeaa18/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/faae97eccfe5467eae0647042e99bc24c69bfe068ff967d92890213f22aeaa18/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553
og:image:altDescription When a client spawns a NetworkObject via NetworkSpawnManage.InstantiateNetworkPrefab() there is no position or rotation data passed into UnityEngine.Object.Instantiate() and therefore t...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamezachstronaut
hostnamegithub.com
expected-hostnamegithub.com
None29be975efff6507a5d135de9c7d634cf7ff8f0c55222a64386ab3202209aaf73
turbo-cache-controlno-preview
go-importgithub.com/Unity-Technologies/com.unity.netcode.gameobjects git https://github.com/Unity-Technologies/com.unity.netcode.gameobjects.git
octolytics-dimension-user_id426196
octolytics-dimension-user_loginUnity-Technologies
octolytics-dimension-repository_id116385203
octolytics-dimension-repository_nwoUnity-Technologies/com.unity.netcode.gameobjects
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id116385203
octolytics-dimension-repository_network_root_nwoUnity-Technologies/com.unity.netcode.gameobjects
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseeacd927ba6112e3b01ba99c762bd699a4a4f5df7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FUnity-Technologies%2Fcom.unity.netcode.gameobjects%2Fissues%2F3553
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FUnity-Technologies%2Fcom.unity.netcode.gameobjects%2Fissues%2F3553
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=Unity-Technologies%2Fcom.unity.netcode.gameobjects
Reloadhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553
Reloadhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553
Reloadhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553
Unity-Technologieshttps://github.com/Unity-Technologies
com.unity.netcode.gameobjectshttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects
Codehttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects
Issues35 (35)https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues
Pull requests27 (27)https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/pulls
Actionshttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/actions
Security and qualityhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/security
Insightshttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/insights
https://github.com/Unity-Technologies/com.unity.netcode.gameobjects
New issuehttps://github.com/login?return_to=https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553
New issuehttps://github.com/login?return_to=https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553
Client NetworkObjects experience Awake, Start, OnEnable, and TriggerEnter, CollisionEnter at world 0,0,0 upon instantiationhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#top
https://github.com/NoelStephensUnity
priority:mediumThis issue has medium priority and may take some time to be resolvedhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22priority%3Amedium%22
stat:importedStatus - Issue is tracked internally at Unityhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Aimported%22
type:bugBug Reporthttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
https://github.com/zachstronaut
zachstronauthttps://github.com/zachstronaut
on Jul 17, 2025https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#issue-3240262686
zachstronauthttps://github.com/zachstronaut
type:bugBug Reporthttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
stat:awaiting-triageStatus - Awaiting triage from the Netcode team.https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Aawaiting-triage%22
stat:reply-neededAwaiting reply from Unity accounthttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Areply-needed%22
on Jul 17, 2025https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#event-18684268282
https://github.com/NoelStephensUnity
NoelStephensUnityhttps://github.com/NoelStephensUnity
on Jul 17, 2025https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#issuecomment-3085352068
@zachstronauthttps://github.com/zachstronaut
feat: AttachableBehaviour and ComponentController #3518https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/pull/3518
github-actionshttps://github.com/apps/github-actions
stat:awaiting-responseAwaiting response from author. This label should be added manually.https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Aawaiting-response%22
stat:reply-neededAwaiting reply from Unity accounthttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Areply-needed%22
on Jul 17, 2025https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#event-18687294824
NoelStephensUnityhttps://github.com/NoelStephensUnity
stat:InvestigatingIssue is currently being investigatedhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3AInvestigating%22
stat:reply-neededAwaiting reply from Unity accounthttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Areply-needed%22
stat:awaiting-responseAwaiting response from author. This label should be added manually.https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Aawaiting-response%22
on Jul 17, 2025https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#event-18687295165
github-actionshttps://github.com/apps/github-actions
NoelStephensUnityhttps://github.com/NoelStephensUnity
on Jul 17, 2025https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#event-18687297510
https://github.com/zachstronaut
zachstronauthttps://github.com/zachstronaut
on Jul 17, 2025https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#issuecomment-3085410832
https://github.com/zachstronaut
zachstronauthttps://github.com/zachstronaut
on Jul 17, 2025https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#issuecomment-3085415368
NoelStephensUnityhttps://github.com/NoelStephensUnity
priority:mediumThis issue has medium priority and may take some time to be resolvedhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22priority%3Amedium%22
stat:importStatus - Issue is going to be saved internallyhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Aimport%22
stat:awaiting-triageStatus - Awaiting triage from the Netcode team.https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Aawaiting-triage%22
stat:InvestigatingIssue is currently being investigatedhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3AInvestigating%22
on Jul 29, 2025https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#event-18886452638
michalChrobothttps://github.com/michalChrobot
stat:importedStatus - Issue is tracked internally at Unityhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Aimported%22
stat:importStatus - Issue is going to be saved internallyhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Aimport%22
on Aug 4, 2025https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#event-18970873656
EmandMhttps://github.com/EmandM
stat:reply-neededAwaiting reply from Unity accounthttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Areply-needed%22
on Aug 19, 2025https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553#event-19227260621
Sign up for freehttps://github.com/signup?return_to=https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553
Sign in to commenthttps://github.com/login?return_to=https://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues/3553
NoelStephensUnityhttps://github.com/NoelStephensUnity
priority:mediumThis issue has medium priority and may take some time to be resolvedhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22priority%3Amedium%22
stat:importedStatus - Issue is tracked internally at Unityhttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22stat%3Aimported%22
type:bugBug Reporthttps://github.com/Unity-Technologies/com.unity.netcode.gameobjects/issues?q=state%3Aopen%20label%3A%22type%3Abug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.