• 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

Unanswered Questions

  • All Questions
avatar image

VandalPwoof asked

OnCollisionEnter fails to destroy Player GameObject

Aug 9, '17 in Help Room

0 Replies

0 Votes

avatar image

xdarkasgaming asked

How can I destroy gameobject when passing the screen

Jun 10, '20 camera·gameobject·unity 2d·destroygameobject

0 Replies

0 Votes

avatar image

Kenshen112 asked

Why are my Game Objects being destroyed?

Jun 29, '19 gameobject·instantiate·destroy·gameobjects·destroygameobject

0 Replies

0 Votes

avatar image

Inblinder commented

OnMouseDown() function

Feb 6, '18 c#·onmousedown·destroygameobject

0 Replies

0 Votes

avatar image

Me4tWag0n edited

Trying to script random tumbleweeds rolling across game background

Apr 7, '18 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

hexagonius commented

Best way to render GameObjects?

Jul 18, '18 optimization·destroygameobject

0 Replies

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

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

harpingseal asked

how to destroy an object when it was hit with particle

Sep 3, '20 particles·destroy object·destroygameobject

0 Replies

0 Votes

avatar image

Bakudan edited

Unity Stop/Freeze when Destroying+reloading a lot of GameObjects, solution ?

May 12, '18 in Help Room

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

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

Fireatwill35 asked

[2D] Freezing all constraints also destroys gameobject

Feb 8, '18 in Help Room

0 Replies

0 Votes

avatar image

plasticadmiral413 edited

destroying instantiated prefab loaded to 2D list

Jan 19, '18 in Help Room

0 Replies

0 Votes

avatar image

eni_cay edited

2D sprite won't destroy on collision

Jul 30, '19 in Help Room

0 Replies

0 Votes

avatar image

AttentionHorse edited

How do I destroy a GameObject by activating a nearby particlesystem.

Mar 19, '17 in Help Room

0 Replies

0 Votes

avatar image

alan-c25 asked

Bullets not destroying enemies

May 28, '20 in Help Room

0 Replies

0 Votes

avatar image

vikingallday1 published

How do I make one object appear after my Player collides with another object?

Jun 12, '17 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

Liam_B asked

Generated AssetBundle only works when created within same Unity Project?

Mar 30, '17 in Help Room

0 Replies

0 Votes

avatar image

Blijzijn edited

How to delete tiles when ran over to avoid lag?

May 16, '20 in Help Room

0 Replies

0 Votes

avatar image

bbenoit2 commented

Can't destroy my bullet

Oct 5, '17 collision·destroygameobject

0 Replies

0 Votes

avatar image

KOWAY edited

I want to destroy PlayerObject, So I can not do anything because of this error.Error content: Destroying assets is not permitted to avoid data loss. If you really want to remove an asset use DestroyImmediate (theObject, true);

Mar 6, '18 in Help Room

0 Replies

0 Votes

avatar image

goodgamershow edited

Destroyed gameObject keeps colliding with player

Jun 24, '21 in Help Room

0 Replies

0 Votes

avatar image

andy120996 published

How do I make it so that my controller dies if I touch a cube?

Dec 2, '15 in Help Room

0 Replies

0 Votes

avatar image

dadedas asked

how can i destroy the object when life get 0?,how can i destroy a object when life get 0?

Feb 5, '18 in Help Room

0 Replies

0 Votes

avatar image

CrizzieBabe asked

I am trying to destroy an object by obtaining the Axe, however the script only returns the debug "Axe is unequipped". Please help

Nov 11, '16 in Help Room

0 Replies

0 Votes

avatar image

TheRockIng published

Cannot seem to keep an object how it was when reloading a level (Unity2D)

Sep 14, '16 destroygameobject

0 Replies

0 Votes

avatar image

syarizal24 published

Score does not increment correctly

Jan 19, '22 in Help Room

0 Replies

0 Votes

  • ‹
  • 1
  • 2
  • 3
  • ›

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 trigger 2d game prefab collider2d ontriggerenter raycast destroy-clones instantiate prefab spawning unity 2d tag object collision2d collider error gameobjects collision detection


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