Questions tagged [initialization]

The tag has no usage guidance.

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

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: <...
user avatar
3 votes
1 answer
268 views

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 ...
user avatar
0 votes
2 answers
50 views

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 ...
user avatar
  • 111
0 votes
1 answer
26 views

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 ...
user avatar
0 votes
2 answers
81 views

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 ...
user avatar
  • 626
3 votes
1 answer
3k views

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 ...
user avatar
  • 143
2 votes
1 answer
596 views

LibGDX - How to do more things asynchronously

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

Why does AudioSource not initializes itself?

Why does AudioSource not initializes itself? Here is my code: ...
user avatar
0 votes
1 answer
85 views

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 ...
user avatar
  • 219
4 votes
2 answers
1k views

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: ...
user avatar
  • 999
0 votes
1 answer
213 views

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'...
user avatar
1 vote
1 answer
2k views

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....
user avatar
1 vote
2 answers
200 views

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 ...
user avatar
2 votes
2 answers
1k views

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 ...
user avatar
  • 2,214