selection box의 기초공사랑 edge부분 hover로직 정리함.
Edge는 기본적으로 위 이미지처럼 start와 end의 크기에 맞춰서 나오지만 raycast를 이용해서 OnPointerClick으로 처리하면 Edge 특성상 무조건 겹치기 때문에
일부러 Raycast를 사용하지않고 구현했음.
유니티 내장 GraphView 내부 구조도 계속 적당히 참고하면서 양쪽 구조와 최대한 비슷하도록 맞춰서 구현중.
https://github.com/dunward/GraphView.Runtime
GitHub - dunward/GraphView.Runtime: Unity runtime graph view plugin
Unity runtime graph view plugin. Contribute to dunward/GraphView.Runtime development by creating an account on GitHub.
github.com
이번년도 안에는 완성했으면 좋겠는데 과연 여유시간이 그만큼 남아서 작업을 계속 할수있을지가 문제일듯
TODO:
Nodes를 graph view쪽에서 전부 컨트롤
selection box와 연동할때 culling on인 node만 제어할수 있도록
Control키 유무로 다중선택 되는 기능구현 필요
역시 프로그래머는 달라 콘 - dc App