unity drawline
public Transform target;
void OnDrawGizmosSelected()
{
if (target != null)
{
// Draws a blue line from this transform to the target
Gizmos.color = Color.blue;
Gizmos.DrawLine(transform.position, target.position);
}
}
Also in C#:
- how to join array indexes with comma in c#
- c# udpclient receive buffer size
- how to convert object in string JSON c#
- unity create gameobject
- how to trigger event when a com device is connected in c#
- same click event diffrenet buttonms c#
- Execute code every x seconds with Update()
- how to get length of okobjectresult c#
- unity set material color
- How to get the world position of the edge of an object?
- why is c# say ; expected
- c# form set auto scale
- csharp first element of array
- dynamic convert type c#
- unity 2d detect click on sprite
- uinput dialog uwp c#
- string.insert c#
- check which activity in focus in android
- devexpress objectspace to session
- mongodb custom IIdGenerator
- c# error "The name 'ViewBag' does not exist in the current context"
- asp.net core mvc not triggering client side validation
- 2d object look at object
- c# stringbuilder