Answers for "unity get component rigidbody2d"

C#
7

get rigidbody component unity

//The Variable
Rigibody rb;

void Start()
{
	rb = GetComponent<Rigidbody>();
}
Posted by: Guest on July-09-2020
-1

getcomponent rigidbody2d

(GameObjectName) = GetComponent<Rigidbody2D>();
Posted by: Guest on September-07-2021

C# Answers by Framework

Browse Popular Code Answers by Language