728x90
Unity 에서 Microsoft와 Google의 C# Code Convention을 기반으로 Unity 권장 Coding 규칙을 정리해준 문서를 제공한다.
Create a C# style guide: Write cleaner code that scales
Get tips from industry experts on how to create a C# code style guide. A style guide can help your team develop a codebase to support the growth of your project to a commercial-scale production.
resources.unity.com
아래 링크에서 번역중 ~
C# Coding Convention
C# Coding Convention 1. 명명 규칙 1) 변수 변수 이름은 명사로. bool 변수는 접두사 + 동사 조합으로. ex) isDead, isWalking, hasDamageMultiplier public 변수는 Pascal 표기법 사용 private 변수는 Camel 표기법과 밑줄(_)
docs.google.com
private 변수 _ 붙이는거, public 변수 파스칼 규칙 따르는거, { 아래에 다는거 등등 고칠게 많다..!
728x90
'🎮 Unity Study > C#' 카테고리의 다른 글
[Unity][디자인 패턴] Builder Pattern(빌더 패턴) (0) | 2023.09.21 |
---|---|
[C#] Boxing, Unboxing -> Generic (0) | 2023.09.08 |
[C#] Generic, Template (0) | 2023.08.21 |
[C#] 문법 Keyword (0) | 2023.08.19 |
[C#][상속과 인터페이스] virtual, abstract, interface (0) | 2023.08.19 |