
다운로드 / 자산 상점 / 문서
Ko-Fi 또는 Patreon에서 Xnode를 지원하십시오
완전한 오딘지지를 위해 Kajed82의 포크 사용을 고려하십시오
노드 기반 플러그인 개발을 생각하십니까? 그러면 이것은 당신을위한 것입니다. 아카이브로 다운로드하여 새로운 Unity 프로젝트에 포장을 풀거나 git 하위 모듈로 연결할 수 있습니다.
Xnode는 매우 사용자 친화적이며 직관적이며 노드 그래프의 이점을 즉시 얻는 데 도움이됩니다. 최소 발자국을 사용하면 맞춤형 상태 기계, 대화 시스템, 의사 결정자 등의 기반으로 이상적입니다.

Git URL을 통해 (Unity 버전 2018.3.0B7 이상)
Unity Package Manager를 사용 하여이 프로젝트를 GIT 종속성으로 설치하려면 다음 줄을 Project 's manifest.json 에 추가하십시오.
"com.github.siccity.xnode": "https://github.com/siccity/xNode.git"
시스템 경로에 GIT를 설치하고 사용할 수 있어야합니다.
프로젝트에서 어셈블리 정의를 사용하는 경우 어셈블리 정의 참조로 XNode 및/또는 XNodeEditor 추가해야합니다.
OpenUpm을 통해
패키지는 OpenUPM 레지스트리에서 사용할 수 있습니다. OpenUpm-Cli를 통해 설치하는 것이 좋습니다.
openupm add com.github.siccity.xnode
git 서브 모듈을 통해
기존 GIT 프로젝트에서 Xnode를 하위 모듈로 추가하려면 프로젝트 루트에서 다음 GIT 명령을 실행하십시오.
git submodule add [email protected]:Siccity/xNode.git Assets/Submodules/xNode
소스 컨트롤 또는 패키지 관리자가없는 경우 소스 파일을 자산 폴더에 간단히 복사/붙여 넣을 수 있습니다.
// public classes deriving from Node are registered as nodes for use within a graph
public class MathNode : Node {
// Adding [Input] or [Output] is all you need to do to register a field as a valid port on your node
[ Input ] public float a ;
[ Input ] public float b ;
// The value of an output node field is not used for anything, but could be used for caching output results
[ Output ] public float result ;
[ Output ] public float sum ;
// The value of 'mathType' will be displayed on the node in an editable format, similar to the inspector
public MathType mathType = MathType . Add ;
public enum MathType { Add , Subtract , Multiply , Divide }
// GetValue should be overridden to return a value for any specified output port
public override object GetValue ( NodePort port ) {
// Get new a and b values from input connections. Fallback to field values if input is not connected
float a = GetInputValue < float > ( "a" , this . a ) ;
float b = GetInputValue < float > ( "b" , this . b ) ;
// After you've gotten your input values, you can perform your calculations and return a value
if ( port . fieldName == "result" )
switch ( mathType ) {
case MathType . Add : default : return a + b ;
case MathType . Subtract : return a - b ;
case MathType . Multiply : return a * b ;
case MathType . Divide : return a / b ;
}
else if ( port . fieldName == "sum" ) return a + b ;
else return 0f ;
}
}플러그인은 Xnode에 기능을 추가하는 저장소입니다
Discord 서버에 가입하여 피드백을 남기거나 지원을 받으십시오. 문제 페이지에 제안/요청을 남겨 두십시오.