This site uses cookies! Learn More

This site uses cookies! uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.


  • Content count

  • Joined

  • Last visited

Community Reputation

1,177 Excellent

About OneManArmy

  • Rank
  • Birthday 04/19/1983

Profile Information

  • Gender
  • Location:
  • Interests
    Game development

Recent Profile Visitors

10,914 profile views
  1. No, last example will not work. Theoretically you can put all info in string and write line by line, then split and parse back, but it's not worth...
  2. I'll say yes. But you can try to write 5-10 times a second, or populate list with 10 records and then write. using UnityEngine; using System; using System.Collections; using System.Collections.Generic; using System.IO; public class ExampleText : MonoBehaviour { public List<string> data = new List<string>(); void Update(){ if(Input.GetKeyDown(KeyCode.A)){ WriteToTextFile(transform.eulerAngles.y); } if(Input.GetKeyDown(KeyCode.D)){ ReadFromTextFile(); } } void WriteToTextFile(float info){ File.AppendAllText("TestWriteRead", info + "\n"); } void ReadFromTextFile(){ using (StreamReader sr = new StreamReader("TestWriteRead")) { while (sr.Peek() >= 0) { data.Add(sr.ReadLine()); } } } }
  3. so, you want write 5-10 times a second to disk?
  4. Easiest way will be to use trigger areas and when AI tries to leave area - you can change path (set other target).
  5. Just bake Navmesh on two separate meshes.
  6.!/content/42677 P.S. Reason why we can't stream MP3 files:
  7. I don't think that you should worry about saving in memory (at least not at very beginning). Here will be example how to write/read from file. Scripts.rar If you want save some time:!/content/690
  8. But he wrote that everything works perfectly. Problem is only with android build. php must be on webhost. These 2 tutorials shows you everything step by step.
  9. Maybe this topic will help?
  10. In this case anyone can get access to your database within a minute. Even for tests better use one of free hosts (like it was done in tutorial):
  11. how about: if(a < b) a += Time.deltaTime; or a = Mathf.MoveTowards(a, b, Time.deltaTime);
  12. hi, i have a question, can i use your fps kit for commercial use? i'm really interesting with your fps kit. if u agree, i want to release a game with it. please answer my question, thanks!

  13. you can use any texture. Create small 32x32 image in paint and import in unity.
  14. hello what di you use for multiplayer, Photon, or unity basics

  15. In Web Player and Editor cursor should automatically unlock if you press Esc. In standalone build you must have full control over cursor state. Maybe they changed something in engine (not sure). void Update(){ if(Input.GetKeyDown(KeyCode.Escape)){ Cursor.visible = true; Cursor.lockState = CursorLockMode.None; } }