Questions tagged [scene]

'scene' can refer to various things. Please combine this tag with other tags to put your question into perspective.

The Scene class is the container for all content in a scene graph.

Within Scenes represent game levels and screens, which are loaded one at a time according to the game mechanics. The scene is a key element in Unity editor and contains the , assets and other game elements.

996 questions
3
votes
0 answers

Reload/refresh a scene after receive remote notification swiftUI

I have this problem. I'm receiving a notification from CloudKit using application:didReceiveRemoteNotification in AppDelegate. I'm able to receive the recordId, fetch it, and save it successfully. The problem is, the scene doesn't refresh. final…
amervil
  • 63
  • 3
3
votes
3 answers

Loading scene asynchronously in Unity3D not working

So I've done some research about how loading scenes asynchronously works on unity. So far I've found two ways of doing that are very similar and that are based in the same principle. StartCoroutiune(loadScene()); private AsyncOperation…
3
votes
4 answers

Unity - Back to last scene using Android Device Back Button

In Unity, I manage to go back to the last scene by clicking the Device Android back button but the problem is when I am in the 3rd scene and I want to go back to 2nd and then back to 1st scene. From 3rd to 2nd scene, when I click back button it goes…
Johny
  • 625
  • 2
  • 6
  • 26
3
votes
5 answers

Time code and filename prefix in VLC

I find this material, http://wiki.videolan.org/Documentation:Play_HowTo/Format_String. I try the time code of the video in my filename prefix like this, "scene-$T-". But the scene filter does not output time code in the file name. Do those format…
JavaMobile
  • 409
  • 4
  • 6
  • 18
3
votes
4 answers

OnSceneLoaded not getting called on scene start

I'm having trouble understanding why SceneManager.sceneLoaded += OnSceneLoaded; isn't getting called while OnEnable is getting called. Am I doing somthing incorrectly? I'm testing it by looking for a return coming from Debug.Log("Current scene index…
greyBow
  • 1,298
  • 3
  • 28
  • 62
3
votes
0 answers

How to clean node material diffuse content memory in SceneKit?

In one of my app. i am facing issue of app crash because of i am unable to clean memory of node material diffuse content. when i am trying load node at that time memory is keeping up so i want clear memory whenever remove node from parent. please…
imjaydeep
  • 878
  • 1
  • 11
  • 34
3
votes
1 answer

Having multiple Nodes2D in a scene or having none - Godot

I am studying Godot engine and I was wondering why I can't have multiple nodes or element by themselves in the scene. Godot doesn't allow me that. Why?
Teodor Cristian
  • 349
  • 4
  • 16
3
votes
1 answer

Unity save everything (snapshot)

I'm trying to save everything whilst running my program. I want to save every Gameobject with their scripts and variables. I know that it's possible to serialize everything and save it to an XML (and other ways/formats like JSON). This would require…
Sjoerd Brauer
  • 129
  • 1
  • 12
3
votes
1 answer

JavaFX New Scene on Button Click

The title may be a bit vague, so allow me to define it a little better. I have a working piece of code (down below): a simple main menu for a game I am working on. Everything works well, except for the Start button. What I want to be able to do is…
user6904864
3
votes
0 answers

How to check if the fxml window or a stage is open or not in JavaFx?

I am working with several FXML files that are activated by pressing a button from the Main Frame. When you click the button more than once, more than one instance of the stage opens up, so it is taking too much memory (RAM) and the program becomes…
user5458938
3
votes
2 answers

Unity check if scene == gamescene?

I'm a bit new to Unity, so im asking for you guys help. How can i check if the Scene == "gamescene"? I tried something like this: if(SceneManager.loadedScene == "gamescene") { do something } I want to do an auto save only if the opened scene is the…
Kalip
  • 151
  • 1
  • 11
3
votes
2 answers

Change Scene without resize window in JavaFX

I'm trying to change Scenes on JavaFX, but without change the window size. However, when I set stage.setScene(scene2); the window size decreases, and I want to keep the both Scenes maximized. I've tried to stage.setMaximized(true) after the…
Igor
  • 645
  • 4
  • 16
  • 37
3
votes
1 answer

how to have a scene over another in javafx

I'm writing a small game. And i want a pause menu over the blured game menu to be shown when esc is pressed in the middle of the game. What I do is that i make a new scene which has a stackPane wrapping the past root and the pause menu root and then…
yukashima huksay
  • 5,834
  • 7
  • 45
  • 78
3
votes
1 answer

JavaFX: use only one scene or multiple scenes to build UI with static and dynamic content?

cheers, i am fairly new to JavaFX2. I already did some research about the basic principles: Stages that contain Scenes. Scenes in turn can be switched. But only switching parts of scene does not seem to be common usage. My Problem: I am trying to…
Tobias
  • 45
  • 1
  • 5
3
votes
1 answer

javafx - how to convert a node to another object

I'm sorry, I can't find a way around this. I have to get a "Node" object to be a "Line" object. What I mean is this: I have an AnchorPane filled with quite a lot of nodes, some of them Labels and the majority of them Lines. Setting that up works…
harlekintiger
  • 337
  • 7
  • 22