• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Destroygameobject

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Monsoonexe commented

How to play audio clip when destroying an object?

Jul 24, '22 audioclip·destroygameobject

3 Replies

0 Votes

avatar image

galabyca edited

Problem destroying objects OnApplicationQuit

Jul 4, '22 in Help Room

0 Replies

0 Votes

avatar image

dave_m97 published

How to destroy a GameObject in a different scene?

Jun 28, '22 in Help Room

0 Replies

0 Votes

avatar image

asege98 published

Particles and Destroying Object.

Jun 21, '22 in Help Room

0 Replies

0 Votes

avatar image

giordanotavani2 published

Trying to destroy a particle system

May 27, '22 in Help Room

0 Replies

0 Votes

avatar image

oga_888 asked

How to make bullet explosion animation occur at the time it collide?

May 25, '22 animation·prefabs·destroygameobject

0 Replies

0 Votes

avatar image

henkehedstrom answered

My game objects keeps on getting destroyed even if i dont want them to,Destroying some particular objects but it destroys my customer too

Mar 28, '22 destroygameobject

1 Reply

0 Votes

avatar image

andrew-lukasik answered

Item pickup and drop function

Jan 23, '22 c#·object·pickup·destroygameobject·drop

2 Replies

0 Votes

avatar image

syarizal24 published

Score does not increment correctly

Jan 19, '22 in Help Room

0 Replies

0 Votes

avatar image

Bingowaders commented

Is Destroy(transform.parent.gameObject) Unreliable?

Jan 14, '22 destroy·if-statements·ontriggerstay·destroygameobject

1 Reply

0 Votes

avatar image

CodesCove commented

Destroying clone object in list does not remove the first one

Dec 2, '21 list·destroy·destroygameobject·clones

0 Replies

0 Votes

avatar image

fairsacademy asked

How to save game objects and switch out unsaved game objects via code.

Oct 20, '21 in Help Room

0 Replies

0 Votes

avatar image

WeirdWeirdo56 answered

How do I destroy an object after giving the player a point?

Oct 10, '21 points·destroygameobject

2 Replies

0 Votes

avatar image

Jayson-Channel asked

Destroy shattered objects after being smashed.

Oct 2, '21 in Help Room

0 Replies

0 Votes

avatar image

KooYoung edited

How to make game object 1 able to destroy game object 2 if it was given some sort of power up?

Aug 15, '21 destroy·destroy object·destroygameobject

0 Replies

0 Votes

avatar image

lastnoob765 answered

GameObject doesnt get destroyed onCollision

Jul 31, '21 gameobject·oncollisionenter·destroygameobject

2 Replies

0 Votes

avatar image

endasil_unity commented

Having problem with instantiating and destroying prefabs

Jun 24, '21 c#·instantiate prefab·array of gameobjects·destroygameobject·destroy-clones

1 Reply

0 Votes

avatar image

goodgamershow edited

Destroyed gameObject keeps colliding with player

Jun 24, '21 in Help Room

0 Replies

0 Votes

avatar image

targaciej answered

Destroying Assets is not permitted to avoid data loss

May 25, '21 build-error·destroygameobject

1 Reply

0 Votes

avatar image

GameDeveloperAf edited

Can anyone give an example how to make a unique ID for each enemy or pickup, and store in the ID in array when the enemy is killed or item picked up.

Apr 23, '21 dontdestroyonload·destroygameobject·persistence

1 Reply

0 Votes

avatar image

isyrfs published

how to stop the timer when player dies hit the enemy?,how to stop the timer when player dies hit the enemy?

Apr 20, '21 gameobject·destroygameobject·timer countdown

0 Replies

0 Votes

avatar image

HollowHazmat published

Player randomly disappears when using lasers alongside horizontal movement

Mar 22, '21 in Help Room

0 Replies

0 Votes

avatar image

Troudlasecu edited

Why i can't acces a global list in my class from OnDestroy() function

Mar 18, '21 in Help Room

0 Replies

0 Votes

avatar image

sh567jt21f answered

How to make it so when i shoot a zombie the has been spawned, it will destroy it?

Mar 1, '21 in Help Room

1 Reply

0 Votes

avatar image

just_insanity commented

How do I single out GameObject being detected by Raycast in a destroy / respawn system

Jan 23, '21 c#·raycast·raycasting·destroygameobject·respawner

1 Reply

0 Votes

avatar image

ryanlin138 answered

Destroying GameObject does not add to Debug.Log counter

Jan 6, '21 unity 2d·console·counter·destroygameobject

1 Reply

0 Votes

avatar image

Magso commented

how can i destroy an object on press of space when its x position is equal to or greater than the other object,how can i destroy a object when its x position is equal or greater to the character's x position.

Dec 2, '20 destroygameobject

0 Replies

0 Votes

avatar image

myzzie commented

Destroying assets is not permitted to avoid data loss and var fix does not work between scripts

Nov 16, '20 destroygameobject

0 Replies

0 Votes

avatar image

crowegy published

Destroying a prefab bullet after time with the list

Nov 9, '20 in Help Room

0 Replies

0 Votes

avatar image

DJimster commented

Ensure a bullet only hits one enemy

Nov 6, '20 collision detection·collision2d·destroygameobject

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›
  • »

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Related Topics

destroy destroy object c# gameobject collision instantiate 2d scripting problem 2d game trigger prefab collider2d spawning ontriggerenter raycast destroy-clones instantiate prefab unity 2d collider error tag object collision2d collision detection particlesystem


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges