• 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

Destroy Object

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

amiosarker commented

How do I check of if the object that is being collided with is an instance of itself?

May 3, '23 instantiate·unity 2d·game·destroy object·game object

1 Reply

0 Votes

avatar image

saokill90 asked

When restarting scene and trying to reload weapon, get object destroyed error.

Apr 18, '23 in Help Room

0 Replies

0 Votes

avatar image

gpaspot13 published

The object of type 'Transform' has been destroyed but you are still trying to access it.

Apr 5, '23 unity 2d·destroy object

3 Replies

0 Votes

avatar image

Mr_Potato342 answered

Destroy a projectile made from a prefab when projectile collides with a solid surface

Apr 1, '23 projectile·destroy object

1 Reply

0 Votes

avatar image

awkwardfantasy published

Trying to get a game object to disapear, nothing seems to be working.,Trying to hide a game object, nothing seems to be working

Mar 31, '23 in Help Room

0 Replies

0 Votes

avatar image

unity_8A5F46282B98A61B84AC commented

Why aren't my prefab clones destroying on play mode exit?

Mar 25, '23 in Help Room

1 Reply

1 Votes

avatar image

Monty-Monster commented

How do I destroy a single object that shares a tag name with other objects?

Mar 25, '23 raycast·tags·destroy object

2 Replies

0 Votes

avatar image

logicandchaos commented

Problem with code to destroy prefab projectile when it reaches the screen boundary,Destroy projectile prefab when it reaches screen boundary

Feb 17, '23 prefab·prefabs·destroy object·prefab-instance·destroygameobject

0 Replies

0 Votes

avatar image

codexin answered

How to destroy object after it moves out of screen

Feb 5, '23 in Help Room

8 Replies

9 Votes

avatar image

logicandchaos answered

How to destroy object from one script in another?,How to destroy a clone from one script in another script?

Feb 2, '23 destroy object

1 Reply

0 Votes

avatar image

AnnaZika published

Use cursor to pick new Object instead of Destroyed Object

Jan 19, '23 in Help Room

0 Replies

0 Votes

avatar image

alexwright25 published

Destroy a prefab with ar ray cast

Dec 13, '22 in Help Room

0 Replies

0 Votes

avatar image

ExplodingSquids commented

how to know in code the number of instances a prefab made?

Dec 8, '22 instantiate·prefab·instance·destroy object

1 Reply

0 Votes

avatar image

rh_galaxy answered

How do I do this better? It appears to run everything many times as its at > 5 for 0.4f

Dec 3, '22 in Help Room

1 Reply

0 Votes

avatar image

Turnrp answered

Don't Destroy On Load Object Destroying on Spawn

Nov 14, '22 in Help Room

1 Reply

0 Votes

avatar image

Turnrp answered

How Do I destroy objects included in the Don't DEstroy On LOad

Nov 13, '22 destroy object

1 Reply

0 Votes

avatar image

Bonfire-Boy commented

Problem with Destroy () and instantiated prefabs. (MissingReferenceException)

Nov 10, '22 c#·destroy object

1 Reply

0 Votes

avatar image

lanceroy commented

destroy object and play sound?

Nov 2, '22 server·destroy object·destory

9 Replies

1 Votes

avatar image

WerewoofPrime edited

PhotonNetwork.Destroy object instantiated

Oct 21, '22 in Help Room

2 Replies

0 Votes

avatar image

anszwa commented

Destroy is too slow and leads to method getting called multiple times

Oct 13, '22 destroy·score·destroy object

1 Reply

0 Votes

avatar image

tormentoarmagedoom commented

Despawning Parts of a Level after Using Them. Closed

Oct 11, '22 c#·destroy object·spawning problems·destroygameobject·spawner

0 Replies

0 Votes

avatar image

Franco_Voisard answered

update fails with NullReferenceException after OnTriggerEnter Destroy()s object

Sep 26, '22 in Help Room

2 Replies

0 Votes

avatar image

giorgospr13 published

Raycast detects all object, but not all objects take damage

Aug 19, '22 unity 5·damage·detection·destroy object

0 Replies

0 Votes

avatar image

Currentbird published

destroy function not destroying instantiated clones,destroy function doesnt destrot instantiated clone

Aug 19, '22 in Help Room

0 Replies

0 Votes

avatar image

wideeyenow_unity commented

How to destroy an object clone?

Aug 8, '22 in Help Room

1 Reply

0 Votes

avatar image

galabyca edited

Problem destroying objects OnApplicationQuit

Jul 4, '22 in Help Room

0 Replies

0 Votes

avatar image

stefan_debeljak asked

When space ship shoots laser to Asteroid, the object of Asteroid is being destroyed nad ship can go through but Asteroid is still visible on the screen

Jun 19, '22 in Help Room

0 Replies

0 Votes

avatar image

jackmw94 commented

I'm trying to make a potion for my health system but I don't know how to access public properties from another code. When I though I had it, the game stop updating my Health.

Apr 28, '22 triggers·destroy object·public·healthbar

2 Replies

0 Votes

avatar image

EZgames1 answered

How to make a game object destroy multiple gameobjects one per trigger enter 3d,How to make an object destroy objects once per enter with trigger enter 3d

Apr 15, '22 destroy·destroy object

1 Reply

0 Votes

avatar image

loveurara14 edited

A* Pathfinding How to destroy seeker,A* Pathfinding What command to destroy seeker

Apr 10, '22 destroy·destroy object

0 Replies

0 Votes

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

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Related Topics

destroy c# destroygameobject instantiate collision gameobject scripting problem unity 2d 2d trigger collider collision detection javascript destroy-clones unity 5 animation clone object 2d game collider2d 3d null prefab respawn spawn


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