본문 바로가기

Unity

(43)
Marching Cube Tutorial 1 (1화 16분까지) 해당 영상의 시작부터 16분까지의 구간은 마칭큐브를 활용한 메시를 생성하는 과정이다. 본 글은 딱 거기 까지만 잘라서 하나의 파트로 만들었다. 이해 되는한 최대한 주석을 달았다. youtu.be/dTdn3CC64sc?t=192 using System.Collections; using System.Collections.Generic; using UnityEngine; public class Marching : MonoBehaviour { //하나의 큐브에 존재하는 Point Vector3Int[] CornerTable = new Vector3Int[8] { Vector3Int.zero, Vector3Int.right, new Vector3Int(1,1,0), Vector3Int.up, new Vector3..
VFX Graph Properties 코드 접근 예제 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.VFX; public class ButterfilesPoint : MonoBehaviour { public VisualEffect visualEffect; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { visualEffect.SetFloat("Alpha", 1.0f); } }
VFX Graph Master Sample Poject github.com/Unity-Technologies/VisualEffectGraph-Samples
VFX Graph TimeScale using UnityEngine; using UnityEngine.VFX; public class AdjustVFXSpeed : MonoBehaviour { [SerializeField] float timeScale = 1.0f; [SerializeField] VisualEffect VFX; void Start() { VFX = GetComponent(); } void Update() { VFX.playRate = timeScale; } }
Unity RP에서 Volum 접근 코드 using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Rendering; public class environmentHandler : MonoBehaviour { public Volume Volume; public float LF_Instensity; VolumeProfile volumeProfile; // Start is called before the first frame update void Start() { volumeProfile = Volume.profile; } // Update is called once per frame void Update() { if (volumePr..
Azure-Kinect-Unity-Sample (1) AzureKinedtSDK v.1.4.1 설치 https://github.com/microsoft/Azure-Kinect-Sensor-SDK/blob/develop/docs/usage.md (2) dll 파일을 Unity 프로젝트에 설치하십시오. 다음 디렉토리를 찾아 모든 파일을 이 Uity Smaple의 플러그인 폴더에 복사하십시오 . C : \ Program Files \ Azure Kinect SDK v1.4.1 \ sdk \ windows-desktop \ amd64 \ release \ bin (3) 다음 데모를 테스트 할 수 있습니다. 다운로드 : http://bitly.kr/ZTun5vhYVSu · PointCloud.unity · TextureMesh.unity 공지 : 이 sapm..
[Unity] High-Definition RP 프로젝트시 주의 사항. 일반적인 3D프로젝트를 생성후 PackageManager를 통해서는 정상적인 작동이 어렵다. 반드시 High-DefinitionRP 프리뷰로 프로젝트를 생성하는게 유리하다.
유니티 외부 프로그램 실행 방법 // 유니티에서 외부 프로그램을 실행하고 싶을때 사용. 윈도우 using System; System.Diagnostics.Process.Start("D:/FireExtinguisher Manager/FireDemo.exe"); 출처: https://millers.tistory.com/entry/유니티-외부-프로그램-실행-방법-Running-external-program [Millers present]