aggsol
  • Member for 8 years, 10 months
  • Last seen more than a month ago
How is a Game Manager supposed to be constructed?
Accepted answer
3 votes

UI and HUD is better managed elsewhere. the GameManager is supposed to manage the game state and transitions between game states and nothing else. Possible states could be title, menu, loading or ...

View answer
Single Switch Script vs Multiple Scripts
Accepted answer
2 votes

The Unity3D tutorials actually have a chapter about this: https://unity3d.com/learn/tutorials/modules/intermediate/scripting/coding-practices The author would argue that your switch already gives ...

View answer
Unity engine vs JS engine for browser game
Accepted answer
2 votes

Unity3D is a good candidate with WebGL support coming soon in version 5. S,o no plugin in the browser is required. You also can program it in JavaScript. Info about it here

View answer
Normal mapping for Android and iOS
2 votes

The model itself is not more costly to made but an additional texture is required. Depending on the artist a new texture has to be drawn or the bumpiness is created from a high detail version of the ...

View answer
What is the best practice for handling touch events on different GameObjects in Unity2D?
Accepted answer
2 votes

You have to route the input by priority or z-order. First check HUD or GUI elements (on top) and the actual world ground at last (beneath). If a valid touch target is found/hit then you have to ...

View answer
How to put the game object to the upper left corner of the screen in Unity and make it visible entirely on all screens of mobile devices
Accepted answer
2 votes

From Unity 4.6 on the GUI system easily allows you to place any texture or sprite in screen space. It allows you to build complex HUDs including helath bar. See this video for an introduction

View answer
Play continuous music when swapping between multiple scene in Unity3d
1 votes

Use DontDestroyOnLoad for the music player. Reference Also make sure that the music player is a singleton and is not instanciated when re-loading scenes. See here for details

View answer
How can I copy an asset folder programatically depending upon a constant?
1 votes

First of, you should have separate projects for individual games and not all games in one project. You can just move the assets around if you know what the current select game is. First, move the ...

View answer
Why does Unity save textures in bitmap format for APKs and IPAs?
1 votes

Your source texture is stored and converted regarding the individual platform settings. These settings include resolution, compress and the like. On Android for example you can choose between RGBA16 ...

View answer
In Unity, how can I read the color from _LightColor0 in a shader?
Accepted answer
1 votes

I was thinking wrong. I do not more passes to receive every light in the scene. I took a shortcut and used a surface shader in the end. I post it here for reference Shader "Custom/Test01" { ...

View answer
3D Unity characters without Maya
0 votes

For future reference: Anim8or is a 3D modeling and character animation program in development for over decade. It is very accessible for beginners and hobbyists. It is taught in schools and a lot of ...

View answer
Mock Collision Object in Unity
-2 votes

Do not new MonoBehaviour just add them as components. Your approach won't work. EDIT: I still advise you against breaking the component and Monobehaviour approach. If you want testing then have a ...

View answer