본문 바로가기
728x90

함수3

[Android Jetpack Compose UI] Composable Text() 함수 사용법 ✏️ Text() 함수 : Text.kt에 정의 @Composable fun Text( text: String, modifier: Modifier = Modifier, color: Color = Color.Unspecified, fontSize: TextUnit = TextUnit.Unspecified, fontStyle: FontStyle? = null, fontWeight: FontWeight? = null, fontFamily: FontFamily? = null, letterSpacing: TextUnit = TextUnit.Unspecified, textDecoration: TextDecoration? = null, textAlign: TextAlign? = null, lineHeight: Tex.. 2023. 9. 8.
Go(Golang)의 fmt.Errorf() Golang의 fmt.Errorf() 함수에 대해 알아보자! https://pkg.go.dev/fmt fmt package - fmt - Go Packages Print, Println, and Printf lay out their arguments differently. In this example we can compare their behaviors. Println always adds blanks between the items it prints, while Print adds blanks only between non-string arguments and Printf does exactly what i pkg.go.dev fmt.Errorf() 함수를 사용해 에러가 발생한 값과 매개변수의 정보를.. 2022. 8. 19.
[C#] 유니티 주요 이벤트 함수 Awake 스크립트가 실행될 때 한 번만 호출되는 함수 주로 게임의 상태 값 또는 변수의 초기화에 사용 Start 함수가 호출되기 전에 맨 먼저 호출됨 스크립트가 비활성화돼 있어도 실행됨 코루틴으로 실행 불가 Start Update 함수가 호출되기 전에 한 번만 호출됨 스크립트가 활성화돼 있어야 실행됨 다른 스크립트의 모든 Awake가 모두 다 실행된 이후에 실행됨 코루틴으로 실행 가능 Update 프레임마다 호출되는 함수로 주로 게임의 핵심 로직을 작성 스크립트가 활성화돼 있어야 실행됨 LateUpdate 모든 Update 함수가 호출되고 나서 한 번씩 호출됨 Update 함수에서 전처리가 끝난 후 실행해야 하는 로직에 사용 스크립트가 활성화돼 있어야 실행됨 FixedUpdate 물리 엔진의 시뮬레이션.. 2022. 1. 18.
728x90