Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to call something once in update

bool isDone = false;

void Update() {
    if (!isDone) {
        // put your code that runs once here
        isDone = true;
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# store strings in file 
Csharp :: how to find object by ag unity 
Csharp :: OnInitialized blazor 
Csharp :: unity 2d how to set an object or the mouse position 
Csharp :: c# or 
Csharp :: c# write all bytes to a file 
Csharp :: c# random enum 
Csharp :: c# get current date without time 
Csharp :: c# datetime dd/mm/yyy hh:mm:ss 
Csharp :: random bool c# 
Csharp :: pause audio unity 
Csharp :: c# loop through datatable 
Csharp :: get program path c# 
Csharp :: clear screen putty 
Csharp :: c# random boolean 
Csharp :: unity 2d detect click on sprite 
Csharp :: C#: convert array of integers to comma separated string 
Csharp :: c# difference between break and continue 
Csharp :: c# long to int 
Csharp :: unity detect number key 
Csharp :: c# string capital first letter extension method 
Csharp :: how to do a web request unity 
Csharp :: unity time.deltatime timescale 0 
Csharp :: how to check if a number is even in c# 
Csharp :: unity open website url 
Csharp :: string to uint c# 
Csharp :: unity keep rotating object 
Csharp :: how to find avareage of an array in c# 
Csharp :: using tmp unity 
Csharp :: camera follow player 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =