반응형

전체 글 56

tip - visual studio for Mac 삭제 및 vscode 셋팅

환경 visual studio for mac [ unity 와 함께 설치 ] macbook air m1 삭제 Mac용 Visual Studio 제거 - Visual Studio for Mac Mac용 Visual Studio 및 관련 도구를 제거하는 방법을 알아봅니다. docs.microsoft.com Document를 따라 스크립트를 다운로드후 sh 확장자로 변경우 이어서 실행한다. 설치 vscode [sillicon] mono .net sdk vscode C# extention 문제 unity 와 사용하기 위해서는 vscode의 Omnisharp: Use Modern 옵션을 끈다

programming/unity 2022.08.05

error - VoiceMeeter bad audio driver installation detected 오류 해결

간단히 헤드셋 볼륨 증폭을 위하여 VoiceMeeter 설치했지만 다음과 같은 에러 발생 bad audio driver installation detected 세부 에러 내용 ERROR MME Output - Bad Pin Name ERROR WDM Input - Bad Pin Icon 1, 아이콘 문제 해결 녹음 탭에서 output 확인 결과 아이콘이 voicemeeter 아이콘이 아니어서 input과 같은 경로로 수정하여 저장함 WDM Input - Bad Pin Icon 에러는 해결됨 2. Device Checker 바꿔치기 아이콘 수정 후에도 오류가 유지되어 검색해보던 중 Device Checker 자체를 수정하는 방법을 찾음 https://forum.vb-audio.com/viewtopic.ph..

Tip & Issue 2021.09.13

c# - 디렉토리 / 파일 유무 체크

해당 경로 존재 여부 파악 후 경로 생성 경로상 파일 여부 파악 후 생성 - 하지만 이름만 같은 빈 파일을 생성 하기 때문에 별도 처리 필요 void DirectoryCheck(string fullPath) { DirectoryInfo di = new DirectoryInfo(fullPath); // 경로 존재 여부 파악 if (!di.Exists) { di.Create(); // 해당 경로 생성 } } void FileCheck(string fullPath) { FileInfo fi = new FileInfo(fullPath); // 경로에 파일 존재 여부 파악 if (!fi.Exists) { fi.Create(); // 해당 경로에 파일 생성 - 다른 처리 진행 } }

programming/C# 2021.09.08

unity - Assets 상위 폴더 경로 가져오기

Assets 상위 경로를 접근 Application.dataPath 를 사용하여 기본 경로를 가져온다 타겟 디바이스 마다 경로가 다르기 때문에 확인 후 사용 [ https://docs.unity3d.com/ScriptReference/Application-dataPath.html ] 본 글은 상위 폴더에 output 폴더 생성을 위하여 사용 using System.IO; public class GetPath : MonoBehaviour { public string path; void Start() { path = Application.dataPath; string newPath = Path.GetFullPath(Path.Combine(path,@"../")); Debug.Log(newPath); } }

programming/unity 2021.09.08

series - PyLotto 만들기_3 - UI 만들기_당첨번호 확인

코드 수정중... import requests from bs4 import BeautifulSoup from PyQt5.QtWidgets import QWidget, QLabel, QApplication, QHBoxLayout, QVBoxLayout from PyQt5.QtCore import Qt import sys class PyLotto(QWidget): def __init__(self): super().__init__() # UI초기화 self.initUI() # 크롤링 l = self.crawlingLotto() # UI 업데이트 self.update(l) def initUI(self): vbox = QVBoxLayout() hbox_1 = QHBoxLayout() hbox_2 = QHBoxLa..

programming/python 2021.01.16

tip - '64bit'? '32bit'? 비트 아키텍처 확인 방법

1) platform 모듈 이용 platform.architecture(executable=sys.executable, bits='', linkage='') 다양한 아키텍처 정보에 대해 주어진 실행 파일(기본값은 파이썬 인터프리터 바이너리)을 조회합니다. 코드 import platform print(platform.architecture()) 실행 결과 2) sys.maxsize 이용 platform — 하부 플랫폼의 식별 데이터에 대한 액세스 — Python 3.7.9 문서 platform — 하부 플랫폼의 식별 데이터에 대한 액세스 소스 코드: Lib/platform.py 참고 각 플랫폼은 알파벳순으로 나열되고, 리눅스는 유닉스 절에 포함됩니다. 크로스 플랫폼 platform.architecture(..

programming/python 2021.01.12
반응형