본문 바로가기
728x90
반응형

소프트웨어 개발36

[Unity] '' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder. 오류 해결방법! 빌드 시 아래와 같은 오류가 난다면?! '' is an incorrect path for a scene file. BuildPlayer expects paths relative to the project folder. [해결방법] 1. File > Build Setting 클릭! 2. 씬 추가 부분 확인 > 삭제/이동된 씬이 참조되어 있는지 확인! 3. 삭제/이동된 씬이 있다면 삭제 후 필요한 씬 추가! 4. 빌드!! 위와 같이 해결 했더니 해결 완료! 위 해결 방법 후 뜨는 아래와 같은 오류는 재부팅하여 해결! Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for details 2021. 11. 9.
[Unity] 리스트 관련 함수 1. 추가하기(add) public List ListString; ListString.add("추가할 문자열"); 2. 제거하기(Remove, RemoveAt, RemoveRange) public List ListString; ListString.Remove("삭제 할 문자열"); // 값을 가지고 있는 것 찾아서 삭제 ListString.RemoveAt(0); // 인덱스 값으로 삭제 ListString.RemoveRange(index, count); // index부터 Count의 수 만큼 삭제 ListString.RemoveRange(0,3); // 0부터 3개 삭제 3. 초기화하기() public List ListString; ListString.add("추가할 문자열"); 4. 문자열 찾기(Co.. 2021. 10. 14.
[Unity] 문자열 역순으로 출력 문자열을 역순을 출력하기 위해서는 다음과 같은 코드를 작성하면 된다. ▶ 실행 코드 using System.Linq; String text = "hello"; String temp = new String(text.ToCharArray().Reverse().ToArray()); Debug(text + " -> " + temp); System.Ling을 선언한 후에 temp와 같이 작성해주면 역순으로 출력이 가능하다. ▶ 실행 결과 hello -> olleh 2021. 8. 17.
728x90
반응형