Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

using == is inefficient unity

private void OnCollisionEnter2D(Collision2D Inf) {
// you can use whatever collisiontrigger() you want, i just chose collisionenter2d();
// use comparetag() for tags instead
// remember to only use this for TAGS.
	if (Inf.CompareTag("Tag")) {
    	print("Efficiency enabled!");
    }
}
Comment

PREVIOUS NEXT
Code Example
Csharp :: DefaultContractResolver .net exclude null values JsonSerializerSettings ContractResolver DefaultContractResolver 
Csharp :: c# call constructor from constructor 
Csharp :: closing main window after clicking on a button that opens another window in wpf 
Csharp :: Find Center Of Transforms, Points, Multiple Objects 
Csharp :: Web API - Stream large file to client 
Csharp :: ismirrored c# 
Csharp :: c# custom comment tags 
Csharp :: send to main args dotnet debug 
Csharp :: how to get variable value in properties file in inspector unity 
Csharp :: regex ip rage detect 
Csharp :: Close Form After fixed time 
Csharp :: dotnet core vue in subdirectory 
Csharp :: unity run all interfaces 
Csharp :: unity blender shadow messed up 
Csharp :: how to make dobuble jump unity 2d 
Csharp :: C# remain space 
Csharp :: how to get c# code of aspx page 
Csharp :: dfgf 
Csharp :: source a listbox by property of object c# 
Csharp :: DisplayUnitType revit 2022 
Csharp :: publish applications for linux 
Csharp :: scale curve revit api 
Csharp :: model showing in scne view but not in game view 
Csharp :: c# replace foreach with lambda 
Csharp :: how to split a string in f# 
Csharp :: how to create new function c# 
Csharp :: Area Of the triangle with condition 
Csharp :: rigidbody velocity 
Csharp :: c# String Uppercase and Lowercase method 
Csharp :: c# datatable current row 
ADD CONTENT
Topic
Content
Source link
Name
2+8 =