All Questions
50 questions
0
votes
2
answers
577
views
Unable to build unity app - issue not clear
Need help when i am trying to build my unity project its giving below error.
But i could not rectify error due to same. Any help will be useful.
Error 1
Error: Failed to add D:\jbINTEG\Temp\...
0
votes
1
answer
156
views
Animation Issue on Unity 3D
I made an 2D animation on Photoshop and I'm building 2D interactive novel for Android. I added 16 images to my scene and named it Myanimation. I need to play this animation after 10 secs from ...
1
vote
0
answers
57
views
Destroying gameobjects when restart the game
In my game I am using dontDestroyOnload for some gameobjects to pass them on another level. Now the problem is that I don't want dontDestroyOnload happening when I restart the game when I die because ...
0
votes
1
answer
730
views
uneven scene change delay in unity
I made and android 2d game in unity 5 with about 15 scenes and applied scene change script to buttons, I observe uneven delay of scene changing by onclick button, some scenes load quickly while other ...
4
votes
0
answers
3k
views
InvalidOperationException: This cannot be used during play mode, please use SceneManager.CreateNewScene() instead
As i am new to unity . I am trying to automate Unity game using unity inbuild tool "Editor Tests runner". I am able to write test cases but when i am running test cases getting below error.
...
2
votes
4
answers
2k
views
UNITY 2D: Player flying when space/mousebutton is holded
So basicy i need my character to go up when space or mousebutton are pressed. I added rigbody 2d and box colider 2d to my gameobject (player). The problem is when I hit space or mousebuttonit only ...
0
votes
2
answers
803
views
Toggle button Pause / Unpause Audio Listener
How my toggle button, can pause and unpause the Audio Listener from my main camera? OR Stop and Play again that Listener
1
vote
2
answers
79
views
Set limit camera screen WITDH
Look my game has a fixed camera, configured as a standard 1280x720.
I placed at each end of the cam width of an empty object with a collider to prevent the player pass this point.
Everything works ...
1
vote
3
answers
227
views
Enable object Parent in the hierarchy
How do I get an object in the hierarchy is enabled through scrip?
void OnCollisionEnter2D (Collision2D colisor)
{
if (colisor.gameObject.tag == "Floor") {
Destroy (gameObject,...
0
votes
1
answer
96
views
Load Prefab through PlayerPrefers at new scene
In the main menu of my game there is a section for the player to choose the skin of your character and enter the game.
I'm struggling to save the "Controller Animator" & "Transform" in ...
1
vote
1
answer
3k
views
Show Result Unity ADS rewards
When you pause the game, there is a button where you can click and view a non-skippable video at the end of this video. I want to implement the following:
If the video is watched to the end they gain ...
4
votes
1
answer
871
views
Why isn't my definition for OnCollisionEnter() being used?
I have a character that a Boolean flag which determines whether or not he is jumping (if he is jumping, he cannot jump again). When he jumps, the jump flag is set to true, and when he collides with ...
0
votes
0
answers
79
views
Unity3D-2D: Setting Time.timeScale to 0 for a certain public prefab until positioned?
So I have a button in my game which spawns a "tower" at a given location. The tower, when spawned, acts normally and I can drag it around using my drag script.
I wonder how can I set the Time....
0
votes
0
answers
350
views
Making a spawn button in Unity2D with the following script
So I want to make some kind of button (either with or without UI) in unity 2D which spawns a "tower" and then I drag it to the desired location.
The script dragging script is as follows:
using ...
3
votes
1
answer
7k
views
How to make 2D colliders scale with the UI element they're bound to?
I'm still quite new to Unity and I'd appreciate any help on this problem.
I have this setup which works well using the screen resolution I was designing on. I believe the UI elements scales well when ...