Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

load prefab in script unity

/*
To use Resources.Load,
the object must be in a Resources folder.(there can be multiple).
So your folder structure could look like "Assets/Resources/Prefabs/prefabName"
Then to load it use*/
Resources.Load("Prefabs/prefabName") as GameObject;
Comment

PREVIOUS NEXT
Code Example
Csharp :: wpf make both rich Text scroll 
Csharp :: text not centered winforms button 
Csharp :: unity c# class addition syntax 
Csharp :: how to open any file on button click in winforms 
Csharp :: how to get the time since play unity 
Csharp :: index in foreach c# 
Csharp :: using tmp unity 
Csharp :: unity how to ommit letters from a string 
Csharp :: c# convert int to pretty string 
Csharp :: overload indexer c# 
Csharp :: remove session in dotnet core 
Csharp :: c sharp check if key in dictionary 
Csharp :: c# get binary array from int 
Csharp :: gvrviewer.instance.triggered replacement unity 
Csharp :: C# regex replace all spaces with blank 
Csharp :: unity get textmesh pro component 
Csharp :: pass datatable to stored procedure c# dapper 
Csharp :: coroutine not eaffected by time.timescale unity 
Csharp :: How to add a label programatically in c# 
Csharp :: c# get random double in range 
Csharp :: c# regex to find number between parenthesis 
Csharp :: c# solution path 
Csharp :: c# decimal to hex 
Csharp :: check distance to gameobject 
Csharp :: c# read text file separated by comma 
Csharp :: audio source pause unity 
Csharp :: c# console background color 
Csharp :: c# LCP 
Csharp :: c# create file if not exists 
Csharp :: c# shuffle list 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =