Difference between revisions of "Drive (LogiX node)/ko"

From Neos Wiki
Jump to navigation Jump to search
(Created page with "{| class="wikitable" |+반환값 |- | 자료형 대표색 | 인자명 | 자료형 |- | style="background-color:{{IField-color}}" | | DriveTarget | :Category:Types:IField`1|I...")
(Created page with "== 사용방법 == 입력측 '''Source''' 및 출력측의 '''HookedValue'''는 자료형이 지정되지 않은 상태로 생성됩니다. 위 2가지 입력중 한개 또는...")
Line 58: Line 58:
 
{{:LogiX:Driving}}
 
{{:LogiX:Driving}}
  
== Usage ==
+
== 사용방법 ==
The Source input and HookedValue outputs start with an unset dummy type, the node will recast to the appropriate type when either of these, or the DriveTarget, is set. If the value referenced by TargetValue is being driven by another source, including another Drive node, when an impulse is received at StartDrive the previous drive will be overridden by the new drive Source. Driven values cannot be written to, however, if a Drive node has set up an active drive on the DriveTarget and an attempt is made to write to that value, an impulse is fired from OnHook and the HookedValue output provides the value which would have been written to the target (available for the duration of the impulse chain from OnHook). OnStartDrive and OnStopDrive fire impulses when a drive is successfully started or stopped as a result of impulses at StartDrive or StopDrive respectively.
+
입력측 '''Source''' 및 출력측의 '''HookedValue'''는 자료형이 지정되지 않은 상태로 생성됩니다. 위 2가지 입력중 한개 또는 출력측의 '''DriveTarget'''에 연결된 자료형에 따라 동시에 형변환이 일어나게 됩니다.
 +
 
 +
'''StartDrive'''를 활성화 하면, '''Souce'''의 값이 '''DriveTarget'''으로 보내지고, '''OnStartDrive'''에 Impulse가 발생하며 '''IsDriving'''이 True로 설정됩니다.
 +
 
 +
이 상태에서 '''DriveTarget'''에 연결된 속성을 임의로 변경하고자 하면, '''OnHook'''에 Impulse가 발생되며 변경하려고 했던 값은 출력측의 '''HookedValue'''로 출력됩니다. ('''IsDriving'''이 True인 경우에만 '''OnHook'''에 Impulse가 발생됩니다)
 +
 
 +
다만, '''HookedValue'''에 값이 제공되는 타이밍 문제로 출력노드로 바로 보여지지 않으므로, [[:If (LogiX node){{#translation:}}|If]] 노드 등을 통해 OnHook이벤트 발생시에만 값을 취하도록 하는 식으로 로직스를 구성하셔야 시각적으로 확인 할 수 있습니다.
  
 
== Examples ==
 
== Examples ==

Revision as of 04:15, 13 October 2020

Other languages:
English • ‎日本語 • ‎한국어

입력측 StartDrive에 Impulse를 보내면, 입력측 Source의 값을 출력측 DriveTarget에 전송합니다. Drive 상태인 경우, DriveTarget에 연결된 속성값을 잠그게 되며 이를 인스펙터에서 직접 수정하려 하는 경우 출력측에 OnHook Impulse가 발생합니다.


입력인자 & 반환값

입력인자(Input parameters)
자료형 대표색 인자명 자료형
StartDrive Impulse
StopDrive Impulse
Source (dummy)
반환값
자료형 대표색 인자명 자료형
DriveTarget IField<T>
OnStartDrive Impulse
OnStopDrive Impulse
OnHook Impulse
IsDriving Boolean
HookedValue (dummy)

Driving

Driving duplicates a value to the location your Driving. It only does this operation each frame.

사용방법

입력측 Source 및 출력측의 HookedValue는 자료형이 지정되지 않은 상태로 생성됩니다. 위 2가지 입력중 한개 또는 출력측의 DriveTarget에 연결된 자료형에 따라 동시에 형변환이 일어나게 됩니다.

StartDrive를 활성화 하면, Souce의 값이 DriveTarget으로 보내지고, OnStartDrive에 Impulse가 발생하며 IsDriving이 True로 설정됩니다.

이 상태에서 DriveTarget에 연결된 속성을 임의로 변경하고자 하면, OnHook에 Impulse가 발생되며 변경하려고 했던 값은 출력측의 HookedValue로 출력됩니다. (IsDriving이 True인 경우에만 OnHook에 Impulse가 발생됩니다)

다만, HookedValue에 값이 제공되는 타이밍 문제로 출력노드로 바로 보여지지 않으므로, If 노드 등을 통해 OnHook이벤트 발생시에만 값을 취하도록 하는 식으로 로직스를 구성하셔야 시각적으로 확인 할 수 있습니다.

Examples

Node Menu

Back -- ++ Drive Drive Playback Tween Write
Write Latch Write Ref