Answer by Howey-Do-It
Transform.position.x/y/z is a read-only property. You can't modify it directly. This should work if I understand the question correctly. By setting the X and Y values to the current position it is...
View ArticleAnswer by Howey-Do-It
For saving/loading you should look into Player Preferences, specifically, PlayerPrefs.SetString/GetString. docs.unity3d.com/Documentation/ScriptReference/PlayerPrefs.html...
View ArticleAnswer by Howey-Do-It
I am not a pro with Java so I could be wrong here. I believe "while" is what is causing the crash. I have used "while" before and it caused the same issue for me. Again I could be totally off-base here...
View ArticleAnswer by Howey-Do-It
ScreenToWorldPoint apparently always returns the center of the camera, not the mouse position. Although I could be wrong about that. [Post describing this concept further.][1] The best way is to use...
View ArticleAnswer by Howey-Do-It
using System; public class SortingVectors : MonoBehaviour { public Vector3[] playerInfo; void Start () { playerInfo = new Vector3[8]; } void Update () { Array.Sort(playerInfo, Vector3Compare); }...
View ArticleAnswer by Howey-Do-It
"if(Time.time < 5)" is used to create a consistent test of firing rate between varying framerates. Here are the results of the tests of all of the recommendations you guys gave me: This tests the...
View Article