Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

c# unity destroy first child object

public GameObject targetParent; // Drag parent in the inspector

// Destory first child object
Destroy(targetParent.transform.GetChild(0).gameObject);
Comment

PREVIOUS NEXT
Code Example
Csharp :: there are any objects when open project unity 
Csharp :: unity mesh showing Instance 
Csharp :: How to Create Hint, PlaceHolder Text, Watermark In a TextBox vb.net 
Csharp :: audiomixer get float 
Csharp :: c# check if string is directory 
Csharp :: convert request.form to dictionary c# 
Csharp :: c# console writeline array 
Csharp :: unity cinemachine lock camera axis 
Csharp :: check if network is available c# 
Csharp :: materials pink in unity 
Csharp :: game object set exact position unity 
Csharp :: stop sound in unity 
Csharp :: c# sort array of objects by multiple properties 
Csharp :: how to know what object player touches unity 2D 
Csharp :: unity iterate all child objects 
Csharp :: ask for administrative permission 
Csharp :: how to check is object by this type c# 
Csharp :: object to mouse unity 
Csharp :: newtonsoft json conditionally ignore property 
Csharp :: convert int to uint c# 
Csharp :: c# override index operator 
Csharp :: west of loathing 
Csharp :: c# check if string is only letters and numbers 
Csharp :: c# string to hex 
Csharp :: lat long data type c# 
Csharp :: c# hex to console color 
Csharp :: discord bot status code c# 
Csharp :: asp.net get query string parameter 
Csharp :: hide datagrid column c# 
Csharp :: c# read file current directory 
ADD CONTENT
Topic
Content
Source link
Name
7+5 =