-기준픽셀을 지정하여 캠의 중간 지점 픽셀 컬러값을 int로 변환하여 변화값(deltaThreshhlod)에 따른 true/false 리턴하는 로직 public class WebCamScript : MonoBehaviour { [SerializeField] RawImage[] display; WebCamTexture camTexture; ManagerScripts managerScripts; private int currentIndex = 0; /// ///변수 /// public int defaultPixel = 337; //기준 픽셀값 나중에 수정 가능한 형태로 만들것(화면 찍어서 가져오게하든 뭐하든) int baseX = 0; // 기준 픽셀 X int baseY = 0; // 기준 픽셀 Y flo..
[node/javascript] 타이머 그룹관리(강제종료 및 재실행) with setTimeout // 그룹별 타이머 ID를 저장할 객체 const timerGroups = {}; // 타이머를 설정하고 그룹에 추가하는 함수 function setGroupedTimeout(groupName, callback, delay) { const timerId = setTimeout(callback, delay); // 해당 그룹이 존재하지 않으면 새로운 배열을 생성 if (!timerGroups[groupName]) { timerGroups[groupName] = []; } timerGroups[groupName].push(timerId); return timerId; } // 특정 그룹의 모든 타이머를 취소하는..

[unity/Simple Disk Utils]ios/android/windows 남은 용량 확인(with source) https://assetstore.unity.com/packages/tools/simple-disk-utils-59382 Simple Disk Utils | 도구 | Unity Asset Store Get the Simple Disk Utils package from Dikra Prasetya and speed up your game development process. Find this & other 도구 options on the Unity Asset Store. assetstore.unity.com 위 어셋을 활용하여 최적화 하였다. 이미 위 코드만으로도 코드가 잘 정리되어있지만 ..