Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

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

Search the Community

Showing results for tags 'crashed'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • GENERAL
    • Introduce yourself
    • Discussions
    • Showcase
    • Need help?
    • Seeking team members?
    • Offtopic
  • RESOURCES
    • Example Projects
    • Scripts
    • Shaders
    • Unity Tutorials
    • FPS Kit Tutorials
    • 3D models
    • Animated 3D Models
    • Graphic design
    • Textures
    • Sounds
    • Other
  • SELL | REQUEST
    • Sell
    • Request
  • Mars' Modular Multiplayer Photon FPS Kit's Topics
  • Mars' Modular Multiplayer Photon FPS Kit's Reviews
  • Mars' Modular Multiplayer Photon FPS Kit's Updates
  • Mars' Modular Multiplayer Photon FPS Kit's Tutorials
  • Busy People's Introductions
  • Photon's Tutorials
  • Photon's Photon General
  • Photon's Showcase

Categories

  • Free Projects
  • Free Assets
  • Game Demos
  • Photon's Files

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


YouTube URL


Facebook URL


Twitter URL


IndieGoGo URL


Kickstarter URL


IndieDB URL


GreenLight URL


Location:


Interests

Found 1 result

  1. I'm sorry for my English. My Unity 2017.3.0f2 worked fine yesterday, but when I loaded my project today, it froze when I tried to create an instance of the object, identify the code that caused this error and I share it with you, I do not know what the problem was inside the code, it worked fine yesterday , I thought that the cycle produces this error, but I do not see anything wrong inside the code, please need help with my code, what I try is to capture all the Gameobjects in front of the object, and that they are saved in an array, to later use the position of these GameObject to instantiate a bomberman-style bomb, and check for hits.Length greater than zero. Here I leave the code already commented: void CaptureAllDelante(){ RaycastHit[] hits; hits = Physics.RaycastAll(transform.position, Vector3.forward, Potencia); int i = 0; print ("Check if hits.length greater zero // " + hits.Length.ToString()); while (i < hits.Length) { if (hits [i].transform.tag == "Paredes" || hits [i].transform.tag == "Player" ) { break; //"if object tag is Paredes / Player, Stop while" } else if(hits [i].transform.tag == "Destructibles"){ //"if object tag is Destructibles , save object in array ObjetosDelante for use the position later" RaycastHit hit = hits[i]; ObjetosDelante [i] = hits [i].transform.gameObject; Debug.Log (hit.collider.gameObject.tag.ToString()); i++; } } for (int a = 0; a < ObjetosDelante.Length; a++) { if (ObjetosDelante[a] == null) { break; } //"if ObjetosDelante if != null instantiate Explosion in each position of object in array" Instantiate (Explosion, ObjetosDelante[a].transform.position,Quaternion.identity); } SearchObjetoDelante = false; }
×
×
  • Create New...