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
1answer
24 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 ...
0
votes
0answers
18 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
0answers
25 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
1answer
28 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
1answer
26 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
1answer
99 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 ...
0
votes
2answers
113 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
1answer
39 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 ...
0
votes
1answer
66 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!
1
vote
2answers
219 views

Load scene without being in build settings and without using AssetBundle

This is the closest I've gotten: ...
0
votes
1answer
23 views

add a new single scene by script

I want to make a new scene, when my game is running by script that not added additionally to my scene. Example : I press "R" and a new scene is created.
0
votes
1answer
41 views

How do I make a GameObject carry across only 2 specific scenes?

I have a GameObject in my main menu and help scenes that I want to carry across both scenes but be destroyed on all other scenes. I am having multiple issues with it such as it wont destroy on other ...
0
votes
1answer
34 views

My script to play the intro scene the first time the player hits play from the main menu wont work

The script I am using determines if it is the players first time hitting the play button and if it is it will load the intro scene, but if they have played before it will take them strait to the game ...
0
votes
3answers
62 views

Instead of using yield wait for seconds can I use a UI button for async?

the code below is the code I use to load my game scene ater the intro animation plays. The way it works is that it preloads the game scene because it is big enough it takes time to load and activates ...
0
votes
1answer
88 views

How can I take screenshots with two cameras simultaneously in Unity?

I am trying to capture different parts of a scene created in Unity. I have two cameras capturing different parts of the scene. Now, I need to take screenshots using these two cameras simultaneously. ...
0
votes
1answer
91 views

How Can I Load Ads Particular Level?

How Can I Apply Ads Different Level?? I Create A 40 Level, Ex: Level1 complete then load ads Interstitial Level2 complete then load ads Interstitial Level3 complete then load ads Rewarded Level4 ...
0
votes
2answers
39 views

Creating UI with multiple scenes inside of a scene

I am trying to create a menu UI. I have three menus, one main one that I want to display in the center of the screen and two smaller ones that will come out from the left and right respectively. I ...
0
votes
0answers
20 views

Switch scenes and continue to receive bluetooth stream from Update

I have a scene where I'm connected to a BLE device and receive data in bytes. I want to switch scenes from the current Update and continue to receive the data without disconnecting. How should I do ...
0
votes
1answer
50 views

How to remove an element from the scene while keeping it in array?

I combined cube meshes to make a big one. I stored the info of every cube in an array within a list of chunk. Now i want to delete the cubes in the scene to only keep the combined result, but without ...
0
votes
0answers
57 views

My gameObject does not move, when it returns to its original scene

I have a map where I have a 2d Ship as gameObject, which can be dragged with the finger to travel between islands and do the corresponding activities, when the player finishes playing on the island he ...
1
vote
1answer
71 views

How do you script movement of two or more characters at the same time in RPG Maker MV?

Its not quite clear how to move 2 characters at the same time from and to fixed positions. Within the tutorials for RPG Maker MV users are shown how to script the movement of single characters at a ...
0
votes
0answers
17 views

How to keep data between scenes in unity? [duplicate]

I have a button which changes the color of line renderer, each time you press the button this changes sprite and each sprite represents a color. After the player chose a scene where he could draw with ...
0
votes
1answer
274 views

Spawning player at a certain point after a new scene was loaded

I have a Game Manager with a DontDestroyOnLoad function on it, before loading a scene I'm passing the variables needed to reset players position to a certain position. This is what my code looks like; ...
3
votes
1answer
109 views

How to make party members appear and move to begin a conversation scene in RPG Maker MV?

A common conversation starting trope in JRPGs, when the party is represented as a single character, is for the characters to come out of the player's position and begin talking with each other and the ...
0
votes
1answer
142 views

Why it isn't possible to get a progress in SceneManager.LoadSceneAsync between 0.0 and 0.9?

I am trying to understand why does SceneManager.LoadSceneAsync progress always jumps from 0.0 to 0.9, no matter how big a scene can be. To try trigger smoother ...
1
vote
1answer
45 views

Timer breaks after changing scenes

I am using this script below to move an animation in unity with no root-motion. It simply walks across the terrain. I have timer attached also so the animation doesn't start to walk for 60 seconds. ...
0
votes
1answer
580 views

Unity SceneView Positionning object with mouse position in Editor script

I would like to create an editor tool who can change the position of an object in the scene view into other object in the world, based on mouse position, like in the picture bellow (the red pyramid is ...
5
votes
1answer
338 views

Concept of “scene” in Godot, misunderstanding

Could anyone clarify a beginner's question in Godot? As in this 3D video tutorial (https://www.youtube.com/watch?v=-D-IcbsdT04), the guy creates one scene for the floor, another scene for the wall, ...
0
votes
1answer
203 views

Unity HDRP Testing - Scene View Issues / Lighting / Shaders / Shadows

Yo Guys. Makings this dope, GlassChess Game, Wanted to try out the new HDPR in unity 2018, add the package and volia, its working. (done all settings) So I used custom glass shader before trying out ...
3
votes
0answers
71 views

Revert a GameObject to a previous version

Is there a way to use an old version of a scene.unity file to revert changes for specific GameObjects only? Occasionally Unity GameObjects can lose all their references in the Inspector (If a prefab ...
2
votes
1answer
72 views

How can I change view to orthographic using a menu?

I'm writing the custom menu using MenuItem and I'm stuck trying to make scene view orthographic when 5 is pressed. What is the ...
0
votes
1answer
39 views

How can I add an in-game level editor?

I have 200 prefabs and a scene with an infinite flat plane. I want to allow user to edit the scene - add, remove, rotate, place that prefabs and save/load resulting "scene" in some custom format. ...
-1
votes
1answer
167 views

The game is running but it gives me Object reference not set to an instance of an object error on console [duplicate]

When I play the game it works perfectly fine but it shows an error in the console when pressing buttons but it is still working just causing a bit of lag. This is the error: NullReferenceException: ...
0
votes
2answers
35 views
1
vote
1answer
56 views

My Canvas has an image which I am using for my background but it is blocking my Camera from seeing my Game Scene

So I am not entirely sure how to explain this as I have not had any luck searching online and I'm sure this is a simple problem but I'm being stupid and can't see it. I have a Canvas which is for my ...
1
vote
0answers
18 views

SceneNode transform and Eye and Center position

I am learning some inner workings of game engine development and have come across this confusion. To explain what I am trying to do, I want to start with an example: Let's say that I have an object (...
0
votes
0answers
34 views

Restore scene by adding stored objects

My game has a bunch of GameObjects that I created with code at runtime and that I "store" in an array in a static class. When I unload the scene and load it again, these objects are gone (of course). ...
2
votes
2answers
526 views

GODOT Change scene in node

I will change a scene on button click. But not change the main scene with button. Node structure: main - scene (with childs) - button button.gd: ...
1
vote
0answers
27 views

Rendering a scene or prefab in a gallery style view in Unity3D?

I'm working on a project that is a bit like YouTube where someone browses some content, clicks on one and sees it in the youtube player while still seeing the rest of the content. In my case the ...
-4
votes
1answer
48 views

Find objects with a specific class in Scene in Unity

I need to find every object of the same class in the scene. How can I do this?
1
vote
0answers
108 views

How can I load a scene and move the character to a certain location?

I am making a dungeon crawler RPG game in Unity 2D and I want to allow the player to go back and forth between rooms of the dungeon. This is the code for a Master script that sends the player to a re-...
1
vote
1answer
710 views

Keep the timer counting after changing scenes

In my game you have 2 minutes to finish the whole game and after searching for an answer to my problem I think I should use DontDestroyOnLoad but I can't understand ...
0
votes
1answer
67 views

How Do I Save A Value In c# Unity [duplicate]

...
3
votes
0answers
323 views

What is the optimal scene size?

I'm coding a small "Binding of Isaac"-like game, with a little help from the official "Scavengers" Unity tutorial, since it's my first game. In the tutorial every level is comprised of only one room. ...
0
votes
1answer
378 views

creating a trigger to play multiple animations at once

I need a "button" like trigger. The player would walk within the invisible cube that is the trigger, once the player is in the trigger (and only in the trigger) they would be able to press 'e' on ...
1
vote
0answers
933 views

Unity crash upon opening a specific scene

I have this one specific scene that I spent over 20 hours building. But as of today when I attempt to open it unity crashes. I have opened the error log and it states: ...
1
vote
2answers
81 views

Loading scene doesn't reactivate gameobjects

I have some levels and a main menu. When starting the game from the main menu (in the editor debug mode) I can select a level a load it, no problem. However, when I wish to go back to the main menu ...
1
vote
3answers
134 views

Count the number of on-screen pixels occupied by an object

I need to find the number of pixels an object occupies on screen. How do I do that using DirectX?
1
vote
1answer
2k views

SceneManager.LoadScene doesn't seem to be working in Unity IDE

I'm in the start screen scene of my game and I'm trying to load the actual game. I use the following code: ...
2
votes
2answers
2k views

Fast zoom in and out in Unity Editor

Is it possible to zoom out and zoom in in Unity Editor in Scene View faster than just with the help of scroll wheel on the mouse? I hope there are exist some shortcut for that. Am I right?