비주얼 스튜디오 유니코드로 저장하기

.editorconfig로 파일명으로 프로젝트 폴더 안에 저장한다. root = true [*] charset = utf-8 다음과 같이 저장한다.
using UnityEngine;
// PlayerScript requires the GameObject to have a Rigidbody component
[RequireComponent (typeof (Rigidbody))]
public class PlayerScript : MonoBehaviour {
Rigidbody rb;
void Start() {
rb = GetComponent();
}
void FixedUpdate() {
rb.AddForce(Vector3.up);
}
}
출처:
https://docs.unity3d.com/ScriptReference/RequireComponent.html
댓글
댓글 쓰기