Skip to main content
Game Development

Return to Question

added 194 characters in body
Source Link

I have a game with several scenes, all loaded using addressables:

  1. A persistent scene that stays loaded with things like the main camera and certain common game systems.
  2. A lobby scene
  3. A game scene
  4. There's also a non-addressable scene that loads in the persistent scene.

A persistent scene that stays loaded with things like the main camera and certain common game systems. A lobby scene AThe game loads the non-addressable scene The game which then loads the persistent scene, which then additively loads the lobby scene. The lobby scene then loads the game scene (when the user clicks something).

Lobby loads the game scene in additively, and then is unloaded.

The game scene has a world UI in it with several UI Image components. There are no sprites set, so they are a solid color. If I load directly into the game, those UI Images remain the expected solid color.

Problem: If I follow the typical game flow and load PersistentNon-Addressable-Scene->Persistent → Lobby → Game, then the UI Images don’t show up anymore unless I set a sprite in them. The camera from Persistent is automatically set on the canvas so that’s not an issue. Has anyone seen this before and figured out the issue? Is it a Unity 6 bug?

We got a real problem here, folks. Somebody save me.

I have a game with several scenes:

A persistent scene that stays loaded with things like the main camera and certain common game systems. A lobby scene A game scene The game loads the persistent scene, which then additively loads the lobby scene. The lobby scene then loads the game scene (when the user clicks something).

Lobby loads the game scene in additively, and then is unloaded.

The game scene has a world UI in it with several UI Image components. There are no sprites set, so they are a solid color. If I load directly into the game, those UI Images remain the expected solid color.

Problem: If I follow the typical game flow and load Persistent → Lobby → Game, then the UI Images don’t show up anymore unless I set a sprite in them. The camera from Persistent is automatically set on the canvas so that’s not an issue. Has anyone seen this before and figured out the issue? Is it a Unity 6 bug?

We got a real problem here, folks. Somebody save me.

I have a game with several scenes, all loaded using addressables:

  1. A persistent scene that stays loaded with things like the main camera and certain common game systems.
  2. A lobby scene
  3. A game scene
  4. There's also a non-addressable scene that loads in the persistent scene.

The game loads the non-addressable scene which then loads the persistent scene, which then additively loads the lobby scene. The lobby scene then loads the game scene (when the user clicks something).

Lobby loads the game scene in additively, and then is unloaded.

The game scene has a world UI in it with several UI Image components. There are no sprites set, so they are a solid color. If I load directly into the game, those UI Images remain the expected solid color.

Problem: If I follow the typical game flow and load Non-Addressable-Scene->Persistent → Lobby → Game, then the UI Images don’t show up anymore unless I set a sprite in them. The camera from Persistent is automatically set on the canvas so that’s not an issue. Has anyone seen this before and figured out the issue? Is it a Unity 6 bug?

We got a real problem here, folks. Somebody save me.

Source Link

Unity UI Images without a sprite set are invisible when the containing scene is loaded additively

I have a game with several scenes:

A persistent scene that stays loaded with things like the main camera and certain common game systems. A lobby scene A game scene The game loads the persistent scene, which then additively loads the lobby scene. The lobby scene then loads the game scene (when the user clicks something).

Lobby loads the game scene in additively, and then is unloaded.

The game scene has a world UI in it with several UI Image components. There are no sprites set, so they are a solid color. If I load directly into the game, those UI Images remain the expected solid color.

Problem: If I follow the typical game flow and load Persistent → Lobby → Game, then the UI Images don’t show up anymore unless I set a sprite in them. The camera from Persistent is automatically set on the canvas so that’s not an issue. Has anyone seen this before and figured out the issue? Is it a Unity 6 bug?

We got a real problem here, folks. Somebody save me.

lang-cs

AltStyle によって変換されたページ (->オリジナル) /