728x90
결론 [SerializeField]를 선언해주면 public선언처럼 바로바로 수정이 가능하다
public class NewBehaviourScript : MonoBehaviour
{
[SerializeField]
float speed = 10f;
void Start()
{
}
void Update()
{
}
}
728x90
'unity > 유니티 기초' 카테고리의 다른 글
Unity - Animation 시간 늘리는 방법 (0) | 2023.01.12 |
---|---|
Unity - animationevent has no function name specified (0) | 2023.01.12 |
Chpater 1 : unity - c# default 스크립트 변경방법 (0) | 2023.01.03 |
Chpater 1 : unity - 카메라 이동방법 (1) | 2023.01.02 |
chapter 1 : unity - 유니티 화면 컨트롤 기술 (0) | 2023.01.02 |