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 'dontdestroyonload'.



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 2 results

  1. Hi everyone, Im sorry if i ask to many questions but im a noob at unity . So I have this script: function Awake () { DontDestroyOnLoad (transform.gameObject); } And its working perfect but now : this script is on a object in the scene 1 now i load scene 2 and its still there but now if I die in the scene 2 and press replay so it loads the scene again the object is gone. How can I fix that? Im thinking about a loop or something will work so i tried this: function Awake () { DontDestroyOnLoad (transform.gameObject); } function Update () { while() { Awake(); yield; } } but i dont know what to write in the condition of the while.
  2. Hi everyone, I have a cube that have a script with a DontDestroyOnLoad function. Now if the new scene loadet i want to make the cube a child of a other game object. How can I do this? Thanks
×
×
  • Create New...