Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

how to assign 2d physics material through script

public PhysicsMaterial2D mat;

GetComponent<Collider2D>().sharedMaterial = mat; // Sets material to mat
Comment

PREVIOUS NEXT
Code Example
Csharp :: #movement speed c 
Csharp :: how to get user browser information in .net core 
Csharp :: c# how to disable a event 
Csharp :: Boolean Literals 
Csharp :: how to increase alpha in strings using unity 
Csharp :: c# get innermost exception 
Csharp :: loop code for X seconds 
Csharp :: how to check if data already exists in database in c# mvc 
Csharp :: index sort 
Csharp :: unity ar scale 
Csharp :: negative indexing in c# 
Csharp :: c# generate random date of birth but over 18 
Csharp :: upload file add more size webconfig in asp.net mvc 
Csharp :: how to change something in the window using a thread wpf 
Csharp :: GridViewColumn url wpf 
Csharp :: how to add onclick event dynamically in unity 
Csharp :: how to write a ello world program in c# 
Csharp :: openxml row count 
Csharp :: unknown discriminator value mongodb 
Csharp :: Derived classes of abstract class share property 
Csharp :: store file in DB 
Csharp :: tmpro pageCount update 
Csharp :: call Textboxfor in cs 
Csharp :: how to move an object with addforce 
Csharp :: jtoken value is not exact 
Csharp :: how to set the forgound color of listitems in c# 
Csharp :: Using a Views in .net and c# 
Csharp :: c# how to output array 
Csharp :: converting alpha1 into int unity 
Csharp :: How to scroll to bottom of ListBox 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =