inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

묻고 답해요

174만명의 커뮤니티!! 함께 토론해봐요.

강의 영상코드랑 강의 자료 코드가 다릅니다.

미해결

[켠김에 출시까지] 유니티 방치형 키우기 게임 (M1 + C1)

왜 다운로드 받은 자료의 BackendManager의 코드랑 강의에 나온 코드랑 다를까요?

  • C#
  • unity
  • MMORPG
urea42 댓글 2 좋아요 0 조회수 212

자원정리 개념

해결됨

C# 프로그래밍 기초부터 실전 활용까지

안녕하세요! 강의 중 예외 처리에서 finally에 대해 설명해주신 부분을 듣다가 궁금한 점이 생겨 질문드립니다. 강의에서 finally는 주로 자원을 정리 하는 데 사용된다고 하셨는데, 여기서 궁금한 점은 “null로 값을 할당하면 메모리에서 자원이 해제되는 것인지” , 아니면 단순히 “null이라는 값이 할당되는 것인지” 입니다. 출력문에서 null로 바뀐 객체가 여전히 출력되는 걸 보면, 메모리를 해제하는 게 아니라 null 값을 할당하는 것 같기도 해서요. 이럴 경우 finally에서 말하는 ‘자원 정리’가 ‘메모리 정리’와 같은 의미로 이해하면 되는 건지, 아니면 별개의 개념으로 봐야 하는지도 헷갈립니다. 혹시 이 부분에 대해 조금 더 설명해주실 수 있을까요?

  • C#
  • .net
Ellie 댓글 2 좋아요 0 조회수 139

강의 영상 오류

해결됨

C# 프로그래밍 기초부터 실전 활용까지

"FluentAssertions(SatisfyRespectively, StartWith, Contain, EndWith)" 강의 영상이 이전 강의(Fact Attribute 속성(DisplayName, Skip, Timeout))로 업로드 되어있습니다.

  • C#
  • .net
푸푸푸 댓글 1 좋아요 0 조회수 115

Email Unique Index 지정 update 오류

해결됨

14일만에 배우는 ASP.NET CORE

안녕하세요. 8강 영상 보는 중에 add-migration 성공하고 그 다음에 막혀서 문의 드립니다. update-database -project NetCore.Migrations Build started... Build succeeded. System.InvalidOperationException: An error was generated for warning 'Microsoft.EntityFrameworkCore.Migrations.PendingModelChangesWarning': The model for context 'CodeFirstDbContext' has pending changes. Add a new migration before updating the database. See https://aka.ms/efcore-docs-pending-changes . This exception can be suppressed or logged by passing event ID 'RelationalEventId.PendingModelChangesWarning' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'. at Microsoft.EntityFrameworkCore.Diagnostics.EventDefinitio 1.Log[TLoggerCategory](IDiagnosticsLogger 1 logger, TParam arg) at Microsoft.EntityFrameworkCore.Diagnostics.RelationalLoggerExtensions.PendingModelChangesWarning(IDiagnosticsLogger`1 diagnostics, Type contextType) at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.ValidateMigrations(Boolean useTransaction, String targetMigration) at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration) at Microsoft.EntityFrameworkCore.Design .Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String connectionString, String contextType) at Microsoft.EntityFrameworkCore.Design .OperationExecutor.UpdateDatabaseImpl(String targetMigration, String connectionString, String contextType) at Microsoft.EntityFrameworkCore.Design .OperationExecutor.UpdateDatabase.<>c__DisplayClass0_0.<.ctor>b__0() at Microsoft.EntityFrameworkCore.Design .OperationExecutor.OperationBase.Execute(Action action) An error was generated for warning 'Microsoft.EntityFrameworkCore.Migrations.PendingModelChangesWarning': The model for context 'CodeFirstDbContext' has pending changes. Add a new migration before updating the database. See https://aka.ms/efcore-docs-pending-changes . This exception can be suppressed or logged by passing event ID 'RelationalEventId.PendingModelChangesWarning' to the 'ConfigureWarnings' method in 'DbContext.OnConfiguring' or 'AddDbContext'. 위 내용처럼 오류가 나오는데 해결 방법 문의 드립니다. Visual studio 2022 Community .NET 8.0 MSSQL 2022 development 환경에서 교육 듣고 있습니다. 참고로 그 전 강의에서 AddingUserTables는 Migration 생성 및 업데이트 잘 됐습니다.

  • C#
  • .net
이지석 댓글 2 좋아요 0 조회수 189

빈 씬 사용하는 이유

해결됨

두고두고 써먹는 유니티 비동기 프로그래밍

안녕하세요. 중간에 빈씬을 사용하는 이유가 있나요? 없어도 결과가 같은거 같아서요.

  • C#
  • unity
ac3c2fe4 댓글 1 좋아요 0 조회수 192

key추가 x값 다 같이 움직임

미해결

[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진

1초와 2초에 add key로 추가했는데 0초는 position x값을 0으로 두고 1초에는 position x값을 5로 두면 0초의 position x값이 5로 바뀝니다 강의처럼 3개가 따로 설정 되지가 않아요 어떻게 고칠 수 있을까요 ㅜㅜ

  • C#
  • unity
이강토 댓글 0 좋아요 0 조회수 80

강의 01-02에서 프리팹 렌더링 오류

해결됨

[유니티6] 따라하면서 배우는 실전 게임 제작 2D Platformer

프리팹이 첨부한 사진처럼 출력됩니다.

  • C#
  • unity
Jongman Song 댓글 2 좋아요 0 조회수 204

8장 Controller 질문

미해결

ASP.NET Core MVC +ASP.NET Core +REST API +.NET 8.0

HomeController에 2개의 Test 액션이 각각 다른 역할을 한다는 것은 알겠는데, 이것도 메서드 오버로딩이라고 생각하면 될까요?

  • C#
  • mvc
  • rest-api
  • 아키텍처
  • mssql
  • ef-core
  • asp.net-core
1127sr 댓글 2 좋아요 0 조회수 114

Managers 오류

미해결

[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진

You are trying to create a MonoBehaviour using the 'new' keyword. This is not allowed. MonoBehaviours can only be added using AddComponent(). Alternatively, your script can inherit from ScriptableObject or no base class at all UnityEngine.MonoBehaviour:.ctor () 이라는 메세지가 뜹니다 작동하는데는 문제가 없는 것 같지만 자꾸 뜨니까 거슬려서 해결 하고 싶습니다. 아래는 코드입니다. using UnityEngine; public class Managers : MonoBehaviour { static Managers s_instance; // 유일성 보장된다 static Managers Instance { get { Init(); return s_instance; } } // 유일한 매니저를 갖고 온다 InputManager _input = new InputManager(); ResourceManager _resource = new ResourceManager(); public static InputManager Input { get { return Instance._input; } } public static ResourceManager Resource { get { return Instance._resource; } } // Start is called once before the first execution of Update after the MonoBehaviour is created void Start() { Init(); } // Update is called once per frame void Update() { _input.OnUpdate(); } static void Init() { if (s_instance == null) { // 초기화 GameObject go = GameObject.Find("@Managers"); if(go == null) { go = new GameObject { name = "@Managers" }; go.AddComponent<Managers>(); //? } DontDestroyOnLoad(go); s_instance = go.GetComponent<Managers>(); } } } 아래에는 오류가 뜨는 부분입니다. go.AddComponent<Managers>(); //?

  • C#
  • unity
이강토 댓글 2 좋아요 0 조회수 124

같은 네트워크 내 주소 질문

미해결

[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part4: 게임 서버

강의를 듣다가 질문이 생겼습니다. 강의에서 나타난 같은 네트워크 내 주소가 앞자리는 모두 같고, 마지막 숫자만 다른데 이때, 같은 네트워크라는 것의 기준이 궁금합니다. PC방이나 회사와 같이 같은 장소에 여러대의 컴퓨터가 있다면 같은 네트워크 인가요? 그러면 이때, 강의 처럼 주소의 앞자리는 같고, 끝 숫자만 다를까요?

  • C#
  • unity
  • 네트워크
재민 댓글 2 좋아요 0 조회수 153

서버에서 디스커넥트되시는분들 JWT 관련 참고하셔요

미해결

[켠김에 출시까지] 유니티 캐주얼 모바일 MMORPG (M2)

루키스님이 말씀하신대로, 서버와 클라이언트의 jwt를 맞춰줘야 합니다. 강의자료에는 서버폴더내 config.json 파일에 secretkey가 없기 때문에 "secretKey": "this is my custom secret key for authentication" 이 줄을 추가해서 넣어주시면 잘 작동되실겁니다. 그리고 게임서버 및 어카운트서버 돌리고 클라 접속하면 잘 됩니다. 개발단계에서만 쓰시고 나중에 키는 다른걸로 바꿔야하겟죠

  • C#
  • unity
  • mysql
  • MMORPG
  • ef-core
  • asp.net-web-api
강남영 댓글 2 좋아요 1 조회수 171

Scene에는 BindTest가 보이는데 GameScene에는 보이지 않습니다.

미해결

[C#과 유니티로 만드는 MMORPG 게임 개발 시리즈] Part3: 유니티 엔진

위의 사진과 같이 GameScene에서는 왜 글자가 보이지 않는 걸까요...? 그리고 왜 아래 Button에는 빨간색으로 X표시가 있는건지 잘 모르겠습니다

  • C#
  • unity
우장이 댓글 2 좋아요 0 조회수 129

ItemClicktap오류

해결됨

[Unity6] 나만의 서바이벌 게임 만들기

빌딩패널에서 마우스를 움직여도 한쪽에서만 나오고, Exit시 parentPanel.itemClicktap에서 null이 나옵니다. public class BUILDING : UIPART { public BuildingPanel buildingPanel; public Transform content; List<BuildingPanel> buildingsList = new List<BuildingPanel>(); public GameObject ItemClickTap; // Start is called once before the first execution of Update after the MonoBehaviour is created private void Awake() { Init(); } // Update is called once per frame void Init() { var buildings = AssetManager.Buildings; for(int i = 0; i< buildings.Length; i++) { var go = Instantiate(buildingPanel, content); go.Init(buildings[i], this); buildingsList.Add(go); } } public void SetItemClickAnimation(BuildingPanel panel) { ItemClickTap.gameObject.SetActive(true); ItemClickTap.transform.SetParent(panel.transform); ItemClickTap.transform.localPosition = Vector2.zero ; } private void OnEnable() { SetBuilding(); } void SetBuilding() { StartCoroutine(GetOpenCoroutine()); } public void OnDisable() { for (int i = 0; i < buildingsList.Count; i++) { buildingsList[i].gameObject.SetActive(false); } } IEnumerator GetOpenCoroutine() { yield return new WaitForSeconds(0.3f); for(int i = 0; i < buildingsList.Count; i++) { buildingsList[i].SetData(); yield return new WaitForSeconds(0.02f); } } }

  • C#
  • unity
양승근 댓글 1 좋아요 0 조회수 108

강의자료는 없나요?

미해결

MusicGame

강의자료가 있으면 좋겠는데.. 자료가 없나요?

  • C#
  • unity
  • 유니티6
cyber7511 댓글 3 좋아요 0 조회수 181

이미지 어디서 다운 받아야되나요?

미해결

Unity 6 혼자서 온라인 오목 게임 만들기 Unity + C# 서버 구현

혹시 보드판 이미지랑 오목 이미지들 어디서 다운 받으면 될까요?

  • C#
  • unity
  • 네트워크
  • 유니티6
이준희 댓글 1 좋아요 0 조회수 138

강의 예상 완료 시일

해결됨

[Unity6] 유니티6로 배우는 실전 멀티플레이 디펜스

혹시 죄송하지만 언제쯤 모든 기능이 개발이 완료될까요?

  • C#
  • unity
  • 게임기획
  • multiplayer
  • game-programming
ML G 댓글 1 좋아요 0 조회수 157

Image Source 관련 질문입니다.

미해결

C# WPF .NET Core(7.0)

Image Source 사용할때 인터넷 연결 상태에서 빌드한 다음 빌드한 파일을 오프라인 환경에서 실행하면 이미지가 그대로 출력 돼나요? 아니면 이미지 참조가 불가능하니 오류가 발생하나요?

  • C#
  • mariadb
  • mvvm
  • wpf
  • xaml
kiu2475 댓글 1 좋아요 0 조회수 112

init() 2번 실행? 등 스킬 마무리 강의에서 질문 있습니다.

미해결

[라이브 멘토링] 유니티 뱀파이어 서바이벌 장르 모작

스킬 마무리 강의 수강 후 질문이 있습니다. 1. PlayerController에서 init 이 2번 되는 것 같습니다. 2. FireBall 은 빈 오브젝트로 해도 되나요?( 코드상 egoswordPrefab에 생성되고 있어요) 3. fireprojectile이 Destroy 되지 않아요 ObjectManager - Player 스폰 부분에서 init을 주석 처리해서 했는데 init에서 반복 실행 안 되게 되어 있는 것 같은데 왜 두 번 되나요? 강의에서도 egoSword가 여러 개 생성되어 질문 올려봅니다

  • C#
  • unity
  • object-pooling
댓글 2 좋아요 0 조회수 203

인기 태그

인프런 TOP Writers

주간 인기글