Questions tagged as 'unity3d'

1
answer

What is the best way to store data in Unity3D?

I have been working on a project where I generate a procedural terrain divided by meshes , now my idea is to save these meshes in a folder and then load only the ones I need. I've seen that I can do it with FileStream but...
asked by 17.01.2016 / 01:29
3
answers

Convert string to int 32 and store your result

I am developing a multiplayer game in Unity using the services of Google Play Game Services (GPGS), each of the players that connects gets a player id through GPGS is id is a string which I need to convert to whole and its elements add them to o...
asked by 16.06.2016 / 02:21
3
answers

Destroying objects from one array to another array UNITY3D

I'm doing a Spce Invaders, where I have different types of enemies with their respective colors (green, yellow and blue) Every 15 seconds an Enemy Ship is instantiated that can bring any of the colors of the enemies mentioned above. If I destroy...
asked by 22.01.2016 / 00:58
1
answer

Unity3D Instance objects as pairs (Memory Game) by applying shuffle

I'm doing a memory game where you have to turn two equal cards to score points, otherwise the cards will turn around again. I have been asked to randomly insert the letters in the form of a grid. In my code I have a single prefab that inst...
asked by 21.06.2016 / 00:13
0
answers

My game performance goes down when I publish it on Google Play [closed]

I have developed a simple game in Unity for the Android platform. If I compile and import the APK to my device, the game works perfectly, but if I publish it and download it from the Google store, the performance goes down considerably, lowering...
asked by 04.08.2016 / 10:55
1
answer

Project XCODE generated with Unity 5.3.4 is closed when I run it on an IPAD2

I have a project in XCODE generated with Unity 5.3.4. The problem is that when you run it on an iPad2 it closes instantly. When running it on my iphone 5 it works fine. Both devices have iOS 9.2. I enclose the log that reports to me on iPa...
asked by 25.04.2016 / 23:40
1
answer

Space Invaders AI Shooter UNITY3D

I have a question about the Spaces Invaders AI: If you see below in the images of the game, the invaders at the time of shooting, shoot the closest to the player in the form of a grid That is to say: they will always start shooting the f...
asked by 20.01.2016 / 03:11
3
answers

Change the Transperency of a Prefab in Unity

I have three cubes (one in front of another) in a Unity scene and I would like it when a condition is given, the first cube would come out semi-transparent so that the one from the back could be seen. I tried the following: cubo1.GetCompone...
asked by 17.10.2016 / 13:02
1
answer

How to use the functions of one script in another with unity

I have the following problem: I have a script in unity (C #) which establishes a connection with the bd. It provides it of only, in a GameObject and without a problem it works to me by placing the method with the name Start , I can see with...
asked by 30.05.2017 / 23:45
1
answer

How to pass memory blocks (pointers) from C ++ to C #?

I have a small problem that I hope you can help me. I have this code in c++ : __declspec(dllexport) unsigned char* ProcessFrame() { VideoCapture cam; cam.open(0); Mat imagen; unsigned char* result; cam >> i...
asked by 28.08.2017 / 10:50