Currently, the system searches for PlayerStart components when determining where the player starts in the scene. However, I don't want to reference by the number or its name. Instead I created a SceneReference class that allows me to directly reference the scene -- ensuring the link is maintained if its buildIndex or name changes. I created a new Action to load scenes with this class, but I can't use it in the PlayerStart component.
I could extend the PlayerStart component and create a custom editor to hide the fields that I don't want visible. But I think the system having an IPlayerStart interface would be more flexible in the long term.
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Possibly. The code for determining if a PlayerStart is the correct one to use is handled within its own MatchesPreviousScene function. I'll give it some thought, thanks for the breakdown.