작업 기록

rsvfx에서 UnityEngine Namespace 오류

스튜디오 오버그래픽스 2022. 3. 13. 15:23

https://github.com/keijiro/Rsvfx

 

GitHub - keijiro/Rsvfx: An example that shows how to connect RealSense depth camera to Unity VFX Graph

An example that shows how to connect RealSense depth camera to Unity VFX Graph - GitHub - keijiro/Rsvfx: An example that shows how to connect RealSense depth camera to Unity VFX Graph

github.com

리얼센스를 사용한 실시간 파티클을 사용하면서 이 프로젝트를 사용했고 영상녹화를 위해서

 

https://assetstore.unity.com/packages/tools/video/video-capture-pro-155663

 

Video Capture Pro | 비디오 | Unity Asset Store

Get the Video Capture Pro package from Evereal and speed up your game development process. Find this & other 비디오 options on the Unity Asset Store.

assetstore.unity.com

이 에셋을 사용함

 

그런데 불러오면 오류 발생

 

유니티 오디오 자료형 AudioSource와 VideoPlayer등

using UnityEngine;에서 참조해야할것들을 못 불러오는 문제가 발생

 

rsvfx를 다운받아서 유니티로 프로젝트로 바로 열면 UnityEngine.AudioSource가 참조 안되긴함.

 

그래서 따로 HDRP새 프로젝트를 만들고

rsvfx받은거에 있는 내용을 따로 직접 프로젝트에 이식해주면 해결이 됐음

그러면 UnityEngine.AudioSource 등을 참조해서 오류 발생하지 않음.

 

다운받은 Rsvfx-master에서 Assets에 있는걸 그대로 새 프로젝트에 옮겨주고

Pakcages에 있는 manifest코드도 새 프로젝트에 중복없이 그대로 옮겨서 사용