Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

A little help needed for my game in unity..

I wanted to know how we can develop a system that temporarily despawns objects outside the player eyesight to save RAM memory. So that the game does not hang with big maps like GTA V.

Best Answer

  • atharva_malikatharva_malik Member
    Accepted Answer

    @Abhijay_Singh

    I think you can do something like this -

    public GameObject nameOfObject;

    void whenVeiwIsEnough:

    nameOfObject.SetActive(false);

Answers

Sign In or Register to comment.