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 [unity3d]

The tag has no usage guidance.

1
vote
1answer
89 views

Handling multiple game modes with a game controller

I have a basic GameController with a finite state machine to handle game logic. I'm adding game modes and coming across problems cleanly implementing them. The core functionality of the game stays ...
-1
votes
1answer
33 views

Best combination for 2d animation gui application

I have to make a program with 2D animations (similiar to this ones https://www.youtube.com/watch?v=fHWY1fiyIL0) as a GUI . There will be few sets of animations and each set will contain around 5 ...
4
votes
7answers
475 views

Sync one thousand vector3 across network with minimal bytes?

I am making a game with Unity, and am having problems attempting network synchronisation. Deterministic simulation is impossible because Unity's internal logic is float based. I am trying to make a ...
3
votes
1answer
232 views

Between JS clients and a Unity game server : TCP or UDP?

I'm currently building an interactive game which has a very special use case : The game is displayed on a giant screen on stage in a theatre, and the audience can play it with their smartphones (http:/...
1
vote
2answers
466 views

Test a wrapper to external static/singleton

I am integrating an external library that declares a singleton, like this: public class External : MonoBehaviour { public static External Instance { get {/*setup inner stuff*/} } public void ...
4
votes
0answers
117 views

Incorporating existing 2D OpenCL/OpenGL application in 3D scene

There is an existing real-time, scientific visualization application that uses OpenCL and OpenGL to render complex 2D graphs. My goal is to incorporate this application into a 3D rendered scene. At ...
1
vote
1answer
2k views

Encrypting my data and keeping it safe in Unity

I have a RPG kit in the Unity Store and I wanted to add some protection for the consumers for when they want to save pretty much any information. From the gear the character is wearing to inventory, ...
4
votes
1answer
449 views

What's an efficient data structure to make a lot of queries between parents/childs?

I have the following scenario for which I've been experiencing performance problems: The context is a level editor of a new engine for an old video game (whose source is unavailable) in Unity. ...
4
votes
1answer
207 views

C#: Structuring Saved Data for a Game

I'm working on the structure of the fields that are persistent in my Unity game. Things like inventory, etc. It is saved by serializing a class and saving to disk (as explained here). The problem I'm ...
1
vote
3answers
476 views

Is interface containing every method of given class a good thing?

I'm trying to write a simple game and I really want to finally create something that would be "programmatically correct". I stuck with a problem like this: I have class public abstract class ...
1
vote
4answers
232 views

Abilities interacting with aspects of other abilities - how to implement efficiently

In my game I want characters to be able to cast spells which deal a certain amount of damage of a certain type to other characters in the game. I also want abilities that negate an amount of damage ...
11
votes
2answers
4k views

Best practices for version control in Unity?

I'm a bit confused how to use version control with Unity, especially with objects such as scenes or prefabs that are not just code. We had an issue recently when my colleague and I were working on ...
0
votes
1answer
86 views

Bound Variadic Arguments: Bitmask vs Array

Intro The following assumes C# as a reference language, or any other statically typed language. This is not a question specific to Unity's API, but it is used as an example. In Unity's API, most ...