Questions tagged [scene]

This tag should be used for questions on the management of scenes (in the game engine) , across any platform. Note that the tag of the platform you are using needs to be added also.

Filter by
Sorted by
Tagged with
0 votes
1 answer
14 views

Assigning references to Prefabs placed in each Scene

I am currently working on a small 2D game which has a few different scenes, which are each a different level. I want to use my object prefabs from one scene in the others, but these do not include ...
1 vote
0 answers
38 views

Scene loading finishes (90%) in 1 frame, but isn't isDone until 3 frames later

I am loading scenes async using addressables like so ...
0 votes
1 answer
78 views

How to modify single-scene ECS setup to support multiple local players in different scenes?

I'm currently developing a game in Monogame / C#. I have the underlying game engine set up in the following way: Entity/Component/System architecture A Scene includes a map, cameras, and a list of ...
1 vote
0 answers
35 views

How to limit the character movements to a delimited area

Consider the below images get from the Final Fantasy VII and Alone In The Dark games: I assume that the above scenes are composed by a set of layers composing the background image (allowing thus the ...
0 votes
0 answers
137 views

Directional light in additively loaded scene affects already-loaded scene

The issue I'm facing is how to light my worlds. My current game setup includes scenes being loaded in additive mode as the player progresses the game. So each scene is an island which should have its ...
0 votes
0 answers
19 views

Orchestrating scene flows in Unity

New to Unity and I've now completed several of their basic tutorials (2D Ruby's Adventure and Create with Code) and am having trouble seeing the "forest through the trees" on my first toy ...
1 vote
1 answer
304 views

Remove a tile from a scene with GDScript in Godot

How do I remove a tile from a scene programmatically? I have tried the following to no avail: ...
0 votes
1 answer
88 views

An issue that could be either serialization, or Unity's SceneManager

At this point, I don't have any idea of what could the issue be. So, I was trying to make a project wide loading screen. Through an editor window, I assigned the loading scene, which was picked up via ...
0 votes
0 answers
35 views

modifying unity scenes

I would like to use Unity scenes (as it's visually easy to create levels) but I want to modify them as the player interacts (for instance, if the player broke a glass, the glass should be broken ...
  • 681
2 votes
1 answer
100 views

How do I view the test going on in Unity Playmode?

I'm working on a new project using TDD, and I'm doing a good job of checking everything from the ground up including checking physics interactions on instantiated prefab, but I've gotten about to the ...
  • 75
0 votes
1 answer
2k views

How to copy a scene in Unity?

When I use CMD+D on the current scene to duplicate and then I open the new scene, I get this error message: ...
  • 1
0 votes
2 answers
324 views

Unity keyboard state issue between scene loads

I'm facing an issue when loading scenes in unity. My game is composed of full screen levels where players exit to the next level when touching the edges. So, when the player touches an edge I load ...
  • 1,075
0 votes
1 answer
251 views

Should building interiors be in separate scenes in Unity?

I have an overworld with multiple buildings in it. Each building has a separate interior model with ~500 triangles. I was wondering if it would be better for performance to store the interiors in the ...
1 vote
0 answers
75 views

Unity3D Scene maximum recommended Size/Vertex count

I am about to start making a low-poly open world RPG. That said what would be too big for a single scene, as in maximum recommended amount of GameObjects/Colliders? Sorry for the stupid question but ...
  • 111
0 votes
1 answer
136 views

Prevent Unity From Loading The Next Scene After Getting to the Final Scene

I'm a beginner in Unity, I wrote a script that will load the next scene whenever monsters in a scene are dead. The script is working fine. Here's my script. ...
0 votes
0 answers
118 views

Gizmos disappear after a scene transition

I have used OnDrawGizmos function to draw some cubes. If I run the project from that particular scene, the gizmos are visible. But after a scene transition they disappear. It appears again if I select ...
0 votes
1 answer
447 views

How could I intercept a save scene action being run in Unity?

How could I intercept a save scene action being run in Unity? There is some code I would like to run in editor whenever a scene is saved. Is it possible for me to detect somehow when a scene is saved?
  • 268
0 votes
1 answer
145 views

How to pre-configure a prefab in the editor for multiple similar buttons before instantiating them

Let me explain my problem with my concrete example. I have a button prefab. A button prefab has a lot of configurations: background color, background shape, background image, text, text color, button ...
  • 268
0 votes
1 answer
69 views

Constructing a building in the "Past" scene, and finding a different version of it in the "Future" scene

I am trying to create a game where one scene would be the "Past" and one scene would be the "Future". The player can travel through a portal to move between the past and future ...
0 votes
1 answer
249 views

How do I access objects that are in the next scene I'm loading?

...
  • 1
1 vote
1 answer
627 views

Gizmos not being drawn until GameObject selected

I have implemented Scene loading in my game and have three scenes: Persistent, Main Menu and ...
  • 561
0 votes
2 answers
165 views

How to give a certain scene different preference settings then other scenes unity

In my unity game that I am creating there are 4 scenes. 3 of those scenes rely on a backdrop because they are the main menu, death screen and the escape screen(for when you escape the place). ...
  • 269
2 votes
2 answers
461 views

How to organize GameObjects into logical groups in a Unity Scene?

Obviously there are a Scene hierarchy, but the problem is that the scene hierarchy was not meant for organizing GameObjects because parent GameObjects affect the transformation of their children. For ...
2 votes
1 answer
163 views

How do I make a doorway going into the next scene?

I new to GDevelop and I use it on a Chromebook. I'm making this game that I'm kind of proud of! I've found a way to teleport players to the next scene, by just putting the condition, then just make ...
0 votes
0 answers
1k views

Is Universal Scene Description (USD) suitable for games?

I've been reading about Pixar's Universal Scene Description (USD) system after seeing it in the package list inside Unity. All the material that I've read is within the context of the Film/Vfx ...
  • 3,601
0 votes
1 answer
125 views

Add Camera Dynamically?

I have a "A1" scene, and from there, I want to create a new scene "A2" on button click and then I want to load the same scene. Creating a scene can be done with, ...
  • 101
2 votes
1 answer
893 views

Animate Loading Screen During CPU-Heavy Scene Load

I have a scene with lots of lightweight objects and one that takes anywhere between 10 and 45 seconds to load. At a high level, the Awake method does... Query database For each result do some (fairly ...
  • 828
0 votes
0 answers
154 views

Why my capsule collider sometimes stucks in other colliders?

I'm creating a third person game, and sometimes I face a strange bug that I cannot figure out. Indeed the player may remain stuck in static scene objects, and cannot escape until an angle large enough ...
1 vote
1 answer
55 views

Despite the connect() method returning 0 (enum), the function specified in the connection is not called

The subject script: ...
  • 31
3 votes
1 answer
4k views

Preload multiple scenes at the same time and activate them on demand in Unity. [Unity, async, simultaneous]

Preload scene in unity - this question tells us about how we can pre-load a scene in Unity and load it on demand. What it doesn't tell us - how do we pre-load multiple scenes at the same time and also ...
0 votes
1 answer
436 views

Additive Scene Loading Buttons not Becoming 'Active'

I'm quite new to Unity but I'm making a game, and have created a simple Pause menu, when a key is pressed (escape), I just load a Pause scene, additively, and set that Pause scene to the active scene, ...
3 votes
1 answer
568 views

How to prevent Unity from generating unnecessary changes after saving a scene with no actual changes

I was having trouble where Git shows a lot of changes (for my case, about ~3000 diff change since I have many objects in the scene) after saving a scene (.unity file) in Unity, even though there are ...
  • 43
1 vote
3 answers
2k views

Is it better to create a scene in blender or in unity?

First of all, I am really new to all of this. This is my first time so its really confusing me if it's better to create a scene and then import it into Unity or is it better to just create objects ...
  • 11
0 votes
2 answers
145 views

Switching between world and battle scene with no or minimum loading?

I am making a strategy game where the player roams a grid map. When the player encounter enemy on the map he is transferred to a "battle" scene where two armies are fighting in turn based ...
1 vote
1 answer
940 views

GameObject.Find() finds objects in the old scene

I'm trying to create a simple scene transition. On entering a collider, there is a black canvas that's slowly faded in over the duration of 3 seconds. Then, a new scene is loaded, and the scene slowly ...
0 votes
0 answers
33 views

Unity Optimization: Creating Multiple Similar Scenes Effectively

I've been working on a mobile game that uses the same framework for each level in the game, and I was wondering what would be the most efficient way to store all those levels in Unity. Should I only ...
0 votes
0 answers
37 views

How to deal with data transfer between scenes

What i would like to achieve is to have 1 global 2d map where armies could move (Scene 1). When they collide, trigger loads new scene, setup parameters like army size etc (Scene 2). Once battle is ...
  • 101
0 votes
0 answers
261 views

Scene management system for simple terraria-like game

I am building the engine for a terraria-like 2D sandbox game using SDL2. Currently, I am working on a scene management system. I was wondering if just having a single local variable in main called <...
0 votes
2 answers
2k views

How to load additive scenes to the master client, per player, in unity using photon?

I have already successfully created a multiplayer scene where multiple users can join, however there are some issues like unity not allowing multiple sound listeners per scene. In order to alleviate ...
0 votes
1 answer
29 views

Response to form triggers creation of zero or more duplicate scenes

I've got two scenes, one with room 1 and one with room 2. In room 1 I've got one table with two 3D assets on top of it. This room also has a door that connects to room 2 through a door but it's ...
0 votes
1 answer
280 views

Force Immediate Button Update in Unity

I am working in unity and I have a group of buttons that I activate/deactivate at various times in the game. However, I have noticed that when I call ...
0 votes
1 answer
827 views

How to Bring the Scene View Camera Controls into Game View

I've got a scene with a big sphere in the centre (the Earth) and a lot of smaller spheres around (the stars). Above is a screengrab in Scene View with the camera in the Front View position. I really ...
  • 161
0 votes
0 answers
54 views

How to add scene after build and deployed in Unity?

I want to be able to make new levels after build. I could use a map tool and script but I rather just add scene with all the resource packed with it. But what is the best practice forward?
0 votes
0 answers
1k views

Is it normal for the baking timer in Unity to increase?

I'm having an unusual reaction from trying to bake my scene for Occlusion Culling (the scene was starting to lag and I thought this would optimize it) and I wanted to ask for advice. What's happening:...
0 votes
1 answer
41 views

How to reset scene (stage1) when selecting it from Level stagemain menu

Good day I have a problem when the player finish stage 1 the screen look like this Then going back to selecting level When I try to play the stage 1 again. I want to reset the stage 1 so i can play ...
0 votes
1 answer
61 views

<Missing LoadingScreenManager.LoadScene> even though it's not?

What was once a smooth loading screen, is now a frozen screen. From my main menu, it usually skips the loading screen and dives into the gameplay (which isn't too bad) but the real issue, is if you're ...
0 votes
1 answer
119 views

Character not collecting animated coins

I am trying to make a simple game where the player jumps and collects animated coins. After collecting all the coins, the scene is supposed to change. For some reason, my character collects the coins ...
  • 105
0 votes
2 answers
460 views

Unassigned reference exception when proceeding from scene to scene

So, I have built a script in unity in c# called parralax. It basically parallaxes two backgrounds and looks like this:- ...
0 votes
1 answer
358 views

How should I load/change/activate scenes?

Scenes are confusing the hell out of me and I'm pretty sure they should be simple to understand. When the game loads, only the current scene has a buildIndex != -1. In order give it a 'real' build ...
  • 200
0 votes
1 answer
538 views

Is it possible to run simulation of two scenes simultaneously in Unity3D?

I have got 2 scenes in a unity project and want to play simulation of both the scenes in parallel. Has anyone tried this? Thanks!
  • 329