Unity 47

[문제 해결, GPGS] GPGS연동 중 빌드 에러, Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

firebase 연동하고 빌드하니 에러가 생김 [해결방법 ↓ 진한 글씨들] 에러 1. unity > Configure project :launcher WARNING: The option setting 'android.enableR8=false' is deprecated. It will be removed in version 5.0 of the Android Gradle plugin. You will no longer be able to disable R8 해당 오류는 사라짐 에러 2. Starting a Gradle Daemon, 1 incompatible and 4 stopped Daemons could not be reused, use --status for details 1) 경로에 한글 이름이 포..

Unity/문제 해결 2023.04.27

[Unity 오류 미해결] Scene 증발, binary파일 text화

갑자기 SafeMode가 뜨더니 나의 GameMain이 다음과 같이 변해있었다. 413A5559B3F47FCD8B45EDB538693E63 (int32_t ___0_value, const RuntimeMethod* method) ; // System.SByte System.Int32::System.IConvertible.ToSByte(System.IFormatProvider) IL2CPP_EXTERN_C IL2CPP_METHOD_ATTR int8_t Int32_System_IConvertible_ToSByte_m41D047F0BAD5118F0C15C34DC113CC595BB9B00D (int32_t* __this, RuntimeObject* ___0_provider, const RuntimeMethod*..

Unity/문제 해결 2023.04.24

[GPGS] *** [Play Games Plugin 0.11.01] ERROR: Returning an error code.

04-18 15:36:46.986 28979 29006 W Unity : *** [Play Games Plugin 0.11.01] 04-18-23 15:36:46 +09:00 ERROR: Returning an error code. 04-18 15:36:47.012 28979 29006 I Unity : ProcessAuthentication: Canceled 결론부터 말하자면...아래 세 부분에서 Package Name이 같지 않아 발생한 문제였다. 처음 빌드했을 때는 Google Play 로그인이 되었고, 어느 순간부터 로그인이 되질 않았다. 구글링하면 비슷한 문제들이 많이 보였고, 여러 해결 방법도 많았다. 하지만 어떤 방법으로도 문제 해결이 불가능했고 해결 못했다는 사람들 또한 많았다. 아마 나와..

Unity/GooglePlay 2023.04.18

[Unity 인공지능 / ML Agent] Get Potion (추가중)

캐릭터(agent)가 힐링포션만을 먹도록 학습시키는 예제. 1. 환경 배치 2. 환경 세팅 1) 이전의 포션이 있다면 모두 삭제 2) 캐릭터를 (0, 0, 0)으로 초기화 3) 새로운 포션들을 랜덤으로 배치(치유 포션 + 독 포션 3세트로 설정, 이전에 배운 Apple Catch 예제의 랜덤 생성을 이용) 리스트를 이용하여 포션을 저장, 먹었다면 삭제, 초기화하면 모두 삭제 PotionArea using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class PotionArea : MonoBehaviour { public CharacterAgent characterAgent; publ..

Unity/AI 2023.04.11

GooglePlayGamesPlugin-0.11.01 failed error 해결

GooglePlayGamesPlugin-0.11.01 1. 프로젝트\Assets\GooglePlayGames\com.google.play.games\Editor 의 2. GooglePlayGamesPluginDependencies.xml 파일을 열어 3. repository 내부를 Assets/GooglePlayGames/com.google.play.games/Editor/m2repository 로 바꿔준다. https://3dmpengines.tistory.com/2184 com.google.games:gpgs-plugin-support:0.11.01 --> com.google.games:gpgs-plugin-support:+ com.google.games:gpgs-plugin-support:0.11...

Unity/GooglePlay 2023.04.11

[Unity Shader/테크니컬 아티스트를 위한 유니티 쉐이더 스타트업] 1일차 : 프로퍼티(Properties)

_Name : 기능의 변수명. _를 붙이는 것이 필수는 아니지만, 외부에서 입력받았다는 것을 표시하기 위해 자주 쓰인다고 한다. "display name" : 화면에 나타나는 글자 number : 초기값 ● Range _Name ("display name", Range (min, max)) = number Range : 슬라이더바 입력 형식. 최솟값과 최댓값 입력 ● Float _Name ("display name", Float) = number ● Int _Name ("display name", Int) = number ● Color _Name ("display name", Color) = (number, number, number, number) ● Vector _Name ("display name"..

Unity/Shader 2023.03.15

[Unity Shader/테크니컬 아티스트를 위한 유니티 쉐이더 스타트업] 1일차 : Shader 영역

유니티에서 기본적인 쉐이더를 만들어 열어보면 다음과 같은 화면을 볼 수 있다. Shader "Custom/NewSurfaceShader 1" { Properties { _Color ("Color", Color) = (1,1,1,1) _MainTex ("Albedo (RGB)", 2D) = "white" {} _Glossiness ("Smoothness", Range(0,1)) = 0.5 _Metallic ("Metallic", Range(0,1)) = 0.0 } SubShader { Tags { "RenderType"="Opaque" } LOD 200 CGPROGRAM // Physically based Standard lighting model, and enable shadows on all light..

Unity/Shader 2023.03.15

[Unity Shader/테크니컬 아티스트를 위한 유니티 쉐이더 스타트업] 1일차 : RGB, ShaderLab을 이용한 제작방식

프로그래밍에서의 RGB 빛의 삼원색 RGB는 모두 합쳐졌을 경우 흰색, 모두 없을 경우 검은색이다. 이를 프로그래밍에서의 표현으로 흰색을 1, 검은색을 0으로 바꿔보면 White = (1.0, 1.0, 1.0) Black = (0, 0, 0) Red = (1.0, 0, 0) Green = (0, 1.0, 0) Blue = (0, 0, 1.0) 이처럼 float3 단위로 표현이 가능하다. 이를 활용하면 Gray = (0.5, 0.5, 0.5) Yellow = Red+Green = (1.0, 1.0, 0) 1 - Yellow = (0, 0, 1.0) = Blue 와 같은 계산이 가능하다. ShaderLab을 이용한 제작방식 1) ShaderLab으로만 작성하기 2) Surface Shader로 작성하기 3)..

Unity/Shader 2023.03.15