Questions tagged as 'unity3d'

1
answer

Error in Unity5: 'Player' AnimationEvent 'RestartLevel' has no receiver! Are you missing a component? "

Good evening. I'm following a tutorial of a game and when I run it it works, but it soon hangs and this error appears: "'Player' AnimationEvent 'RestartLevel' has no receiver! Are you missing a component?" , the only difference that has of my ga...
asked by 22.05.2015 / 00:43
1
answer

How can I be solving these Errors in Unity 5 and adding these components?

using UnityEngine; using System.Collections; public class RandomParticlePoint : MonoBehaviour { [Range(0f, 1f)] public float normalizedTime; void OnValidate() { particleSystem.Simulate(normalizedTime, true, true); }...
asked by 07.04.2015 / 03:51
1
answer

Unity 3D - Movie scenes (cutscenes)

I've been studying Unity3D recently, and I'd like to know the best way to do "cinematic scenes" (cutscenes) ... For example, in RPG Maker could create events in such a position, that they were triggered when arriving at that place. From there yo...
asked by 23.03.2015 / 18:43
1
answer

Best score with unity-android playerprefs

Hello. I did a normal best score system in unity (when score > playerprefs, it will set the text of the textmesh). On the computer it worked, but when I step to Android the bestscore gets 0 Someone would know what iss is     
asked by 11.01.2015 / 13:13
0
answers

Firebase only works in Unity Editor and in pC it does not work on Android

Can anyone tell me, what's going wrong? It works only in Unity Editor. When buildo for android, it does not work, but does not report any kind of error. When testing on the pc it works normally. public void CadastrarPorEmail() { em...
asked by 09.11.2018 / 20:43
0
answers

Colliders in Unity3D in C # [closed]

I would like to detect if my left cube is leaning against the side of my cube on the right, but I can not do that. Is there any method without having to create null objects, raycasts or Linecast that can help me do this?     
asked by 31.10.2018 / 16:22
0
answers

how to change the material of an onclick object

I'm using unity3d, I have a prefab of a sphere and another of a cube, with a simple material, and I'd like to know how I can change the material of those objects by clicking a button on UI .     
asked by 02.11.2018 / 15:16
1
answer

Return to beginning of phase in C # [closed]

HereistheobjectthatIwantittogobacktothebeginningHere'sthecharacterWellguys,I'mabeginnerandIneedtodeliverthisgameprojectforthismonthandIwantedtoseewhenthecharactertouchestheblockhereturnstothebeginningofthephase.Idothisbuttheprogramdoesnotrecog...
asked by 17.09.2018 / 17:59
0
answers

NullReferenceException Unity 3D

I started a course where I teach to create a 2D game using Unity3D, I tried to add more things in the game but I'm failing miserably and then I decided to come and try a little help. In the case, I tried to create a powerup where when the pla...
asked by 14.07.2018 / 15:05
0
answers

Why does not DontDestroyOnLoad change when I change the scene?

I have gameObject with the script with all the information about the level, xp and etc for the game. It loads into the Loader scene, when I switch to the next scene, I do not want to lose this gameObject . When I use DontDest...
asked by 16.06.2018 / 20:05