Set range of variable in unity C#| Learn unity coding

Subscribers:
1,110
Published on ● Video Link: https://www.youtube.com/watch?v=RzYzrynvJm0



Duration: 0:57
29 views
6


ASSALAM o alaikum Code :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class UnityScripting : MonoBehaviour
{
[Range(0,50)]
public float speed;
// Start is called before the first frame update
void Start()
{

}

// Update is called once per frame
void Update()
{

}
}


/////////////////////////////////////////////////////////////////////////////////////////////
ASSALAM o alaikum
All codes and concepts and videos from this channel are non copyrighted and free to use because we believe that knowledge should be freely available for everyone
/////////////////////////////////////////////////////////////////////////////////////////////







Tags:
unity
unity3d
learn unity
unity tutorials
unity coding
unity scripting
set range of variable in unity
unity csharp