Hi, devs! How you doing?
I've been trying to build a dedicated server for Linux and upload it to UGS. My team could build it correctly for past commits, but my project refuses to build it correctly. Here's the issue:
We have a subscene with bunch of objects. One of them is an object (called NetcodeSpawner) with an Authoring that holds every prefab that we need to connect players (all the ghosted prefabs.)
The entity that should be created is never being created on build. I've tested it using a system that queries for its type and logs the creation status, and there's never a message saying that the entity exists.
Notes to give better context:
- No system destroy this entity, it should be permanent during the server lifetime.
- To build, I turn off the scene using the checkbox on the right side at the Hierarchy.
- I've tried to clear all the project cache and all of the Editor cache.
- I've tried to checkout to the latest working build commit and still have the same problem.
- It's a
IL2CPPdedicated server build for Linux - The subscene isn't on
Build Settings, only its parent scene. - The object doesn't have the
Editor Onlytag, only objects like the one above it, used for scene organization (see the screenshot) - Other dev always have built it correctly and this entity was showing up on his builds.
- I'm using the correct Unity account to build and connect to UGS.
- Systems that uses it as
RequireForUpdateare not updating, proving that the entity doesn't exist on build. - Searched on the Internet and got help from others of my team and some of the upper notes are failed solutions, thats why I'm here.
The authoring code is really simple (and should work since it works on other devs machines) as it follows: https://paste.ofcode.org/36m4qLKFj5SbKtRtjQcaWaB
