Answer by CaKeMeaT
If you simple need to display one thing, like FPS or a small watermark I still like the legacy OnGUI() functions http://docs.unity3d.com/Manual/gui-Basics.html You can place an IF statement inside of...
View ArticleAnswer by CaKeMeaT
Any type of floor/ceil of numbers would get that to a certain degree. eg. instead of X,Y,Z being stuff like (12.3, 0.9, 3.638372) you would get (12, 1, 4) . Essentially, if you want to simulate old...
View ArticleAnswer by CaKeMeaT
FileMode.Create is what I use, does what you ask. Create Specifies that the operating system should create a new file. If the file already exists, it will be overwritten. This requires...
View ArticleAnswer by CaKeMeaT
In the debugging options for visual studio you HAVE to specify the correct debugger type. "Open up the property dialog window for the project, and under the Configuration Properties select Debugging....
View ArticleAnswer by CaKeMeaT
I believe I provided a pretty good example... [link text][1] [1]: http://answers.unity3d.com/questions/972594/trying-to-learn-to-save-can-i-please-see-some-basi.html
View ArticleAnswer by CaKeMeaT
Well, not much of an answer, but a solution for the time being. I changed the SqlDbType to be NVarChar in the parameter.... it doesn't complain for now. command.Parameters.Add("@xmlone",...
View ArticleAnswer by CaKeMeaT
Can you try not parenting, just keep track of a new reference variable - GameObject PlatFormIAmOn. When you OnCollisionStay on it: PlatFormIAmOn = collision.transform.gameobject; and then in your...
View ArticleAnswer by CaKeMeaT
XmlSerializer serializer = new XmlSerializer(typeof(**Item**)); is dealing specifically with the serialization of type Item.
View ArticleAnswer by CaKeMeaT
I had to change all of my scripts to JoystickJS(javascript) and JoystickCS(c#) in order to get past this. Really just circumventing the problem, since I couldn't identify the origin.
View ArticleAnswer by CaKeMeaT
I have had marginal success with getting data from NIST servers. like this.. [link text][1] [1]: https://nickstips.wordpress.com/2010/02/12/c-get-nist-internet-time/
View ArticleAnswer by CaKeMeaT
the problem with greater-or-equal-than opertaions is that they can be pass as true even when you expect the later conditions to trigger instead. ammobar.GetComponent(UI.Slider).value <= 100) will...
View ArticleAnswer by CaKeMeaT
Cant run the code where I am. But I imagine you are seeing objects do this: move towards. collide. bounce back slightly. move towards. collide. bounce back slightly. -repeat- I see this a lot because...
View ArticleAnswer by CaKeMeaT
Async commands will cause your code to branch out right? so you're loading side-by-side to your other code.
View ArticleAnswer by CaKeMeaT
It looks as if it should work, maybe use a bool to explicitely control the condition if (!IsThisThingAlreadyAssigned) { ObjectiveTHing = GameObject.Find (ObjectiveName); IsThisThingAlreadyAssigned =...
View ArticleAnswer by CaKeMeaT
public GameObject sourceObject; // drop your object from inspector to this slot. // then later GameObject t = (GameObject)Instantiate(sourceObject, transform.position, transform.rotation);
View ArticleAnswer by CaKeMeaT
I have researched this topic, and everything I can find says that System.IO is not available to Windows apps
View ArticleAnswer by CaKeMeaT
You may want to pay special attention to triggers vs colliders and OnCollisionEnter vs OnTriggerEnter
View ArticleAnswer by CaKeMeaT
if(v.GetComponent() != null && v.GetComponent().getBlocked()==false)
View Article