ProtoFlux:Focus World: Difference between revisions

From Resonite Wiki
Created a page for the Focus World node.
 
Some corrections.
Line 18: Line 18:
The <code>Focus World</code> node allows a user to focus on a world by giving it a ressession link as the Uri/Url. If the world exists (as in, already opened for the user, or available as a headless) it will work as expected. If there is no world that is open already that the ressession link is referring to, it will fail.
The <code>Focus World</code> node allows a user to focus on a world by giving it a ressession link as the Uri/Url. If the world exists (as in, already opened for the user, or available as a headless) it will work as expected. If there is no world that is open already that the ressession link is referring to, it will fail.


Headless worlds would normally have a SessionID you can use to make into a resession link, allowing you to open and join these worlds with ease.
Headless worlds would normally have a SessionID that is consistent that you can use to make into a resession link, allowing you to open and join these worlds with ease.


This node is also useful when making [[Exit Strategy|Exit Strategies]], as you can set it up to where if the world is valid to focus, you can close the current world, and have the node continue from here to play a particle effect, a sound, and much more.
This node is also useful when making [[Exit Strategy|Exit Strategies]], as you can set it up to where if the world is valid to focus, you can close the current world, and have the node continue from here to play a particle effect, a sound, and much more.
Line 26: Line 26:
=== * ([[Impulses|AsyncCall]]) ===  
=== * ([[Impulses|AsyncCall]]) ===  


Calls from an impulse begin focusing a world.
Calls from an impulse to begin focusing a world.


=== URL ([[Type:Uri|Uri]]) ===
=== URL ([[Type:Uri|Uri]]) ===

Revision as of 00:02, 14 April 2024

Focus World
*
OnNotFound
URL
OnFocused
WorldLink
CloseCurrent
World

The Focus World node allows a user to focus on a world by giving it a ressession link as the Uri/Url. If the world exists (as in, already opened for the user, or available as a headless) it will work as expected. If there is no world that is open already that the ressession link is referring to, it will fail.

Headless worlds would normally have a SessionID that is consistent that you can use to make into a resession link, allowing you to open and join these worlds with ease.

This node is also useful when making Exit Strategies, as you can set it up to where if the world is valid to focus, you can close the current world, and have the node continue from here to play a particle effect, a sound, and much more.

Inputs

* (AsyncCall)

Calls from an impulse to begin focusing a world.

URL (Uri)

The ressession link needed to focus a world.

WorldLink (IWorldLink)

The world link (not necessary for focusing a world).

CloseCurrent (bool)

Should this node close the current world after we focus to a different world.

Outputs

OnNotFound (Continuation)

Fires when there is no world to focus on or the world link is not valid.

OnFocused (AsyncCall)

Fires when we successfully focus a world (and only fires in that current world, not the world we are focusing to).