Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Question Delete object in Socket with script

Discussion in 'VR' started by umarautarhanov, Oct 26, 2023.

  1. umarautarhanov

    umarautarhanov

    Joined:
    Aug 23, 2023
    Posts:
    4
    Hello! I am building a small VR shooter game. If anyone played Pavlov or Onward knows that when you grab a certain gun, the approriate magazine appears on the holster. I tried using sockets to achieve this. Basically, new magazine prefabs appear on the socket when I grab a gun. That work perfectly. However, when I grab another gun, I cannot delete an old magazine inside of the socket. Does anybody how to achieve this?