Its basically it, my character gets into the terrain when it touches the ground after jumping. I don't know why this happens, but it happens often...
Any clue about what happens?
Ill leave the video and an image of the colliders of my character.
![alt text][1]
[1]: /storage/temp/122292-screenshot-3.png
VIDEO: https://youtu.be/zuy2Ki3JBoc
↧
My character runs into the terrain
↧
My Code that Works on an object's rotation doesn't work.
I'm coding a system, where if my 3d object moves forward, it's rotation goes down to a certain point, when I try my code, it will keep rotating for ever when I use it (pressing W)....
Code:
if (Input.GetKey(KeyCode.W)) { transform.Translate(0f, 0f, speed * Time.deltaTime); // Forward movement of the player's character. if (transform.rotation.y <= 20) //If the rotation of the object is below or = 20, make the rotation higher { transform.Rotate(rotationSpeedWhileMoving * Time.deltaTime, 0f, 0f); } } else if (transform.rotation.x > 0) //Returns THe object's rotation to 0 { transform.Rotate(-1 * rotationBackwardsSpeed * Time.deltaTime, 0f, 0f); }
if (Input.GetKey(KeyCode.W)) { transform.Translate(0f, 0f, speed * Time.deltaTime); // Forward movement of the player's character. if (transform.rotation.y <= 20) //If the rotation of the object is below or = 20, make the rotation higher { transform.Rotate(rotationSpeedWhileMoving * Time.deltaTime, 0f, 0f); } } else if (transform.rotation.x > 0) //Returns THe object's rotation to 0 { transform.Rotate(-1 * rotationBackwardsSpeed * Time.deltaTime, 0f, 0f); }
↧
↧
Unity 2018.1 Editor Glitch
Actually, this glitch happens to me with whatever version I install. Sometimes, some black-gray rectangles show up on top of the menu which prevents me from seeing what I am doing. The worst thing is the tile palette: basically, I cannot see the tiles I insert on the tile palette, so I have to look for the tile I need every time. Very annoying.![alt text][1]
[1]: /storage/temp/122318-unity.png
↧
outlook error
I am using the [ms outlook support][1] 2007 but from few days I am unable to send and receive the email how to solve this error?
[1]: https://supportprop58.com/microsoft-office-support/
↧
Power Hover allways go left PC,
Power Hover allways go left automatically
I ve bought it from steam
Why?
I can't even change the keys input,
↧
↧
Input.GetAxis("Horizontal") - Keyboard don't respond.
When i press "a" or "d" the character don't move.
↧
Android Admob rewarded Video error the game close when I try to open it
Hi I´m tryng to put a rewarded vídeo un my unity game, but when I open it on my smartphone, it closes inmediately, I´ve tryed it on another devices and even on an emulator, but it doesn´t work.
when I build the apk without the rewarded video it runs perfectly.
I´ve tryed with different unity versions, and the probblem still persist (unity 5.6.0 , unity 2017.2.3 and finally unity 2018.2.2f1).
when I run the game on de editor, it works perfectly, and the log says that it have to run the video.
i also tryed with differents ads ID, and it´s always the same.
The latest version of unity trows me an error after i Build the app, but builted it anyway.
I´ve also tryed with two different codes, but nothing seems to work
The banner ads doesn´t work too but only don´t show on the device.
Sorry for my English my mother tongue is Spanish.
![alt text][1]
![alt text][2]
[1]: /storage/temp/122369-11.png
[2]: /storage/temp/122370-12.png
↧
Input.GetAxis("Horizontal") - Keyboard don't respond.
When i press "a" or "d" the character don't move.
↧
Argument out of range exception List
Really confused why I'm getting this error: ArgumentOutOfRangeException: Argument is out of range.
Parameter name: Index
From this code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class AnswersController : MonoBehaviour
{
public List answerList = new List();
public Button answer1;
public Button answer2;
public Button answer3;
public Button answer4;
private Text answer1Text;
private Text answer2Text;
private Text answer3Text;
private Text answer4Text;
private void Start()
{
answerList.Add("Whit");
answerList.Add("Wha");
answerList.Add("Whe");
answerList.Add("Huw");
}
public void SetAnswerText()
{
answer1Text.text = answerList[0];
answer2Text.text = answerList[1];
answer3Text.text = answerList[3];
answer4Text.text = answerList[4];
}
}
Even though this code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class QuestionsController : MonoBehaviour {
public List questionList = new List();
public Text questionText;
private void Start()
{
questionList.Add("What");
questionList.Add("Who");
questionList.Add("Why");
questionList.Add("How");
}
public void SetQuestionText(int questionNum)
{
questionText.text = questionList[questionNum];
}
}
Works perfectly.
I have another code that simply just calls the two methods.
↧
↧
Can't open projects in 2018.2.2f1,Unity can't open in 2018.2.2f1
I downloaded Unity today on Windows. When I opened it, I got this error:
![error][1]
I clicked Try Again and it just popped back up. I click Force Quit and it quits obviously. But when I click Cancel, it opens up the Unity project selector thing. But the problem is, this is all that happens:
![blank window][2]
I sit and wait for a while, but nothing new happens. How can I fix it?
[1]: /storage/temp/122440-error.png
[2]: /storage/temp/122441-blankwindow.png
↧
Making a 2D Wall Jump
Hi, I'm a noob in programming, and unity in general so I need help! I'm having problems with the 2d Character Controller in terms of Wall Jumping. My character do jump off the wall, but it does with a low force jump and only going horizontally. Someone has any clue of what happens?
![alt text][1]
[1]: /storage/temp/122473-screenshot-4.png
CODE: https://www.hastebin.com/ahegixibeb.cs
↧
Error CS1525: unexpected symbol ´else' (line 34)
I wanted to make a game in the first person, but there is an error. How can i fix it?
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FPS_camera : MonoBehaviour {
public FPS_camera FPSCamera;
public float horizontalSpeed;
public float verticalSpeed;
float h;
float v;
// Use this for initialization
void Start() {
}
// Update is called once per frame
void Update() {
h = horizontalSpeed * input.GetAxis("Mouse X");
v = verticalSpeed * input.getAxis("Mouse Y");
transform.Rotate(0, h, 0);
FPSCamera.transform.Rotate(-v, 0, 0);
if (Input.GetKey(KeyCode.W))
transform.translate(0, 0, 0.1f);
{ else }
if (Input.GetKey(KeyCode.S)) {
transform.Translate(0, 0, -0, 1f);
} else {
if (Input.GetKey(KeyCode.A)) {
transform.Translate(-0.1f, 0, 0);
} else {
if (Input.GetKey(KeyCode.D)) {
transform.Translate(0.1f, 0, 0);
}
}
}
}
}
↧
Can't Add Script Behavior...
I've been struggling with this issue for about two days now, trying everything I could find via searching the web etc.
All of my scripts suddenly stopped working. Under the inspector, they all say "No MonoBehaviour scripts in the file, or their names do not match the file name." All of my scripts have classes that match the file names and all are properly extending MonoBehaviour.
What's really weird is when I try to drag a script onto a GameObject, I get this sort of error message:
![alt text][1]
[1]: /storage/temp/121617-screenshot-1.png
It used to be "Can't add script behaviour TMP_CoroutineTween. To attach a script it needs to be derived from MonoBehaviour." (Or something to that effect, best I can remember.)
I've tried closing and opening Unity. I've tried restarting my computer. I even uninstalled Unity and did a fresh reinstall of it.
I'm new to Unity, so maybe there's something obvious I'm missing, but for the life of me I can't figure it out. I don't recall taking any particular action that seemed to trigger this error, I just opened my project to start work again for the day and suddenly none of my scripts worked.
Thanks in advance for your time and help!
↧
↧
My project doesn't work anymore when I re-open Unity
I'm noob using Unity and just started working in a small project with a tutorial and everything was working fine.
When I save and close the project the next time I re-opened it the console shows the following errors:
![alt text][1]
The NullReferenceException keep growing and every script shows this:
![alt text][2]
I don't know whats happenning. I already tried reimporting all the assests, deleted the library folder and restart the whole project again but when I save and close the next time I re-open this happen again. Reinstalled Unity too but the console keep showing this errors when I open the project.
Thanks.
[1]: /storage/temp/122577-consoleerror.png
[2]: /storage/temp/122578-scripterror.png
↧
Menu Component/MaterialUI/EZAnim can't be checked because doesn't exist
I am getting 6 errors in the console about Menu Component/MaterialUI/(VARIOUS COMPONENTS) not being able to be checked because it doesn't exist.
This is happening for Ripple Config, Shadow Config, Rect Transform Snapper, Shadow Generator, Toaster, and EZAnim.
Does anybody know how to fix this?
Thanks
↧
Assertion failed on expression: 'chanType.dimension == 0'
Assertion failed on expression: 'chanType.dimension == 0'
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
![alt text][1]
***Please can anyone help me to solve this issue.***
[1]: /storage/temp/122629-capture.png
↧
Assertion failed: Invalid mask passed to GetVertexDeclaration()
This error came up after reimporting all my files.
I did that because I was getting case errors with my .mat and .mat.meta files. (Unity would automatically capitalize my materials, which probably had something to do with it)
↧
↧
ImportFBX error resulting in meshes missing
I'm coming across the following issue, which results in meshes missing.
`ImportFBX Errors: Couldn't real file [...] Rock.FBX`
I'm using SourceTree source control, and what I'm finding is that Unity is unable to properly import the .fbx files that our artist added into the project folder. **This is only happening on my computer.** We are all using the same version of Unity 2017.4.8., and all our branches up-to-date. I have had no issue importing the .fbx files myself on my computer (drag-and-dropping into the project folder).
Other things I have tried so far:
- Installing Blender and Autodesk 3ds Max.
- Reinstalling Unity.
Our artist uses 3ds Max. I'm using a Windows.
Is anybody familiar with this issue or with how I could resolve it? Some guidance would be greatly appreciated!
↧
Unity Package Manager Error
I have this error.Please help me
↧
3d game Mode Selection
Hi, i am creating a game in which there are 3 modes (simple, raining, and night) which consists of 10 levels each, now there is a solution that i duplicate scene which has 10 levels and just activate and deactivate rain and night mode but some one told me they i required 3 game mangers for that but i am confused how to set player pref for each mode.
↧