Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
1answer
35 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. ...
0
votes
0answers
17 views

Does the Unity Editor have some sort of OnSceneSave() event or method?

For background, I am currently building an open-world game with what I usually call "story saves", or automatically triggered saves that remember where you were, what you had, and relevant world data ...
-1
votes
1answer
39 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
24 views
0
votes
0answers
22 views

OnServerSceneChanged is called many times

In my NetworkManager class, the OnServerSceneChanged function is called many times after change the scene on the server. As I understand it, this function will be called every time I change the ...
1
vote
1answer
37 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 ...
0
votes
0answers
61 views

Reusable Components - Xcode 9 Scene Editor

I previously used Cocos2d in conjunction with SpriteBuilder. Within SpriteBuilder I could create a ccb file, add nodes to it, and for any given node I could create "custom properties", i.e. name, ...
1
vote
0answers
10 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
133 views

Changing an object in one scene changes it in 2

I'm using Unity and I have a scene with a tablet in it. I copied this scene and changed a few things but besides a few texture changes its the same scene. In the second scene I changed the animation ...
-1
votes
2answers
145 views

How to copy information in a script from one scene to another script in a different scene? [duplicate]

I am stuck in a basic problem. I have 2 scripts. Lets call them "AScript" and "BScript". I have an input in "AScript" and when a button on an InputField is clicked, that information is passed in the ...
0
votes
0answers
30 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
245 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: ...
0
votes
0answers
42 views

Override scene used in Unity Test with custom one

I have a Unity Test which should load my main scene and start getting some components from there and interacting with them. But I have found that I can not load such scene, I'm getting the following ...
1
vote
0answers
26 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 ...
-5
votes
1answer
38 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
53 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
217 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
62 views
2
votes
0answers
133 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
133 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
502 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
62 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
2answers
90 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
961 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
1answer
573 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?
1
vote
1answer
147 views

Importing levels at runtime

I know that the Unity editor can import/export packages which could contains Scenes (levels), but is it possible to import a Scene into a game at runtime without the Unity Editor? What I am trying to ...
0
votes
0answers
47 views

Determining whether a large building should be split into multiple scenes

This is about designing a first person retro game in Unity3d. In this game the player would walk around inside a large maze-like building that has corridors on 10-15 different floors. Each floor has ...
0
votes
0answers
707 views

Why is Particle System Not Visible Without Scene Window Viewing the Origin?

I have a particle system, which is supposed to be highlighting an important game object, but the Particle System doesn't show on the game window unless the Scene window camera has the Origin (0,0,0) ...
10
votes
2answers
711 views

How can I visually see changes made to a scene since the last git commit

I'd like to see the changes made in a scene (.unity file) before I commit them to git. I have looked into several GIT/Unity solutions but all of them are made for merging changes and not for showing ...
3
votes
1answer
105 views

Help understanding camera/scene Unity

I'm a brand new unity developer and I watched a few tutorials and then found a game on the Asset Store to provide a nice base for my game. However the setup, especially with multiple scenes is quite ...
1
vote
1answer
755 views

How to create UI with multiple panels for multiple resolutions

I am trying to create scene that has multiple panels, but only one is visible. When user clicks on appropriate button a transition is happening: camera moves to the right revealing panel on the right ...
1
vote
2answers
326 views

Unity: How to keep the music muted on reloading the scene?

I am giving the user a UI button to mute and unmute the ingame sounds but the problem is when I mute the sounds and then when the game ends and the game scene reloads the sounds comes back up which is ...
0
votes
3answers
1k views

On button click wait

I have a button I got from google material design asset pack which has a ripple animation when pressed. I'm using the button's click option in the inspector that calls a method that switches scenes. ...
-1
votes
1answer
797 views

Unity-How to use one scene's camera in another scene?

I have two scenes in my game, one is the menu scene with the UI and the other is the scene where all my game items are. Right now my UI looks too plain so what I want is to display my actual game ...
1
vote
0answers
65 views

Scene doesn't load in editor but loads perfectly fine in final build

When my character dies the game is supposed to load a new scene. The code is perfectly fine because it does this when I make a web build for it. But in the editor I get this: I have no idea what the ...
3
votes
1answer
1k views

Respawn not working properly upon scene reload. Why is this?

So I made a respawn function and what is supposed to happen is the script it supposed to load a saved checkpoint. However I need to reset the scene (and again this worked just fine last night which ...
0
votes
1answer
224 views

Making Scene at editor mode

On Button click at editor mode I am trying to make a scene of selected Hierarchy game-object but the problem is as i click the button new scene become upon and I lost the scene where i were ...
-3
votes
2answers
888 views

What would be a perfect manner to load a scene then the player's position in Unity 5.3?

I have problem with scene's and objects' positions. My problem is that the position of object/player changes after I load the scene. I don't know why this happens. I have saved my object position ...
6
votes
1answer
2k views

Unity scene performance - better to use one scene and toggle what is active?

Unity scene performance questions In Unity, were one to have a scene that is basically identical in all but a few ways, would it be better to keep them as separate scenes, or to have them be one ...
2
votes
1answer
1k views

Game states & passing data between scenes

I'm not entirely sure if I'm doing this right, but I always considered the scene system in Unity as some sort of state management (rather than e.g. a level system) which allows to group the contents (...
1
vote
0answers
288 views

Custom Scene Component Do Not Register Children

I have made a class that is derived from USceneComponent which contains 4 references for itself and two UStaticMeshComponents. Simply I am trying to make a tree structure. When I first create actor (...
1
vote
1answer
167 views

How to reregister gamecontroller changedvalue handler upon game scene reload

I'm working on a tvOS game that uses the siri gamepad controller. Everything works fine the first time out. If the user loses the round I reload the same scene using presentScene. After reloading the ...
0
votes
1answer
86 views

Scene node system [closed]

I read Real-Time Rendering and the author explains that scene graphs can be used to propagate "materials" and light sources down the hierarchy, that's cool but it really ends right there. There's no ...
1
vote
1answer
116 views

Is it ok to use polymorphism as a way of “interfacing” with objects in a scene? [closed]

I'm designing a class that holds values representing a 3D scene. This includes lights, cameras, meshes, materials, etc. The way how I'm setting it up is that each "thing" has a name. A camera has a ...
3
votes
2answers
247 views

What is the Basic Game Screen/Scene Life Cycle?

Question What is the standard or basic game screen/scene life cycle used in most games? What is Screen/Scene? The term screen or scene refers to the current displayed entity holder where game ...
7
votes
1answer
355 views

Implementing a SceneManager using OpenFL

I'm trying to implement a basic SceneManager using OpenFL and Haxe. I don't have a lot of experience using OpenFL and Haxe so I have a few problems. Here is how I designed the SceneManager class: <...
1
vote
1answer
1k views

Unity3d seamless level loading

I've read that application.loadLeveAdditiveAsync is a pro only feature. I'm looking for an asset that can do something similar. I would like to load assets based on the camera/player position. Ideally,...
0
votes
1answer
84 views

Camera (pole cam) implementation problem

In my project I have simple scene graph to render whole scene and Bullet physics SDK to provide physics simulation. Each rendered object is represented as scene node. Camera always has target and ...
3
votes
2answers
554 views

Unity Change Sceneview to camera view

On selecting camera, I get the camera preview. In Unity, while editing the scene, I wish to switch in such a perspective view that is exactly visible by the main camera. Is there a short cut to ...
0
votes
1answer
31 views

How to put labels at a specific point on any resolution

I am working on a project in Unity 4.6.1 and I put the label at the top: But when I put the Scene in full view this happened: I made a Development Build and when I select my resolution (1366x768) ...