Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [initialization]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers

Entity initialization in an online game

How do online games handle creation of new entities? I currently have an EntityFactory class that requires an ID (specifying the entity type). A bunch of subroutines are executed to determine exactly ...
Kaeru's user avatar
  • 3
0 votes
1 answer

What is the Unity way to ensure that calling "initializing" events in managers happen after subscribing to them?

Example of the situation from the title: I have manager A and B. I subscribe to B's event: <...
hungry91's user avatar
3 votes
1 answer

Extra constructor call when using inheritance in Godot

I'm trying to design a character system for my game. Considering I'll need a player and non-player characters - and non-player characters will further come in many more forms, making use of ...
Marty Cagas's user avatar
0 votes
2 answers

Updating object's property on Start is visible for a second when game loads

I have a world selection scene in which I have GameObjects representing worlds. The GameObjects have default properties when the ...
Bruno's user avatar
  • 111
0 votes
1 answer

Dynamically added gameobject didn't show on canvas

I have a canvas with a Scroll View in it. When I manually add a prefab under the Content, it showed up nicely. But when I add ...
PiggyChu001's user avatar
0 votes
2 answers

Separating scene generation and scene starting in Unity?

I'm working on a game, where the map is generated, and: The map is generated in an Awake(), so when an object's Start() is called, the map should be fully initialized. But the scene's physics world ...
Tudvari's user avatar
  • 751
3 votes
1 answer

Direct3D 12 can't create a swap chain

I'm learning DirectX12 and I'm trying to create a simple application that clears the screen with a solid color, but I'm stuck in Direct3D initialization. I can't create the swap chain and the ...
Luca's user avatar
  • 143
2 votes
1 answer

LibGDX - How to do more things asynchronously

Most documentation only mentions how to load assets asynchronously, eg with code similar to ...
persson's user avatar
  • 221
1 vote
1 answer

Why does AudioSource not initializes itself?

Why does AudioSource not initializes itself? Here is my code: ...
some1 here's user avatar
0 votes
1 answer

Code vs. Configuration in Unity [closed]

I know a thing or two about Unity at this point, but I've still lots of subjective, best practice questions, Such as: How do you decide what values are obtained via Start/Awake initialization, and ...
greenland's user avatar
  • 219
4 votes
2 answers

Is it a terrible practice to NOT initialize an object in its constructor?

I'm currently working on my own game engine, more precisely on the resources management part. For now, most of my assets inherits of the following - simplified - class: ...
Aracthor's user avatar
  • 1,009
0 votes
1 answer

Error when initializing Stage

I made a new class that implements Screen, what I've seen from other people's code is that they create a constructor that takes a parameter of Game game. I did not created a constructor, I think that'...
masterYao09's user avatar
1 vote
1 answer

Automatically select back buffer format

In D3D9, you could set BackBufferFormat to D3DFMT_UNKNOWN in the presentation parameters and D3D would select the format for you....
dario_ramos's user avatar
1 vote
2 answers

Different ways to load/select characters in a RPG game [closed]

I am brand new here, and have been designing a two player card game where from tens of thousands of cards each player selects up to 80 cards DECK, and then fights with those cards. For reference Yu ...
Pratyush Dhanuka's user avatar
2 votes
2 answers

How to fill/initialize D3D11_SAMPLER_DESC properly?

If I want to set explicitly every parameter of the structure I just do so and that's it. But what if I want to set only some of them and leave the rest with default values? I've seen in some tutorial ...
NPS's user avatar
  • 2,324