World Builder – Logic Editor – Portals United https://www.portalsunited.com:443 Thu, 13 Mar 2025 17:37:20 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.2 https://www.portalsunited.com:443/wp-content/uploads/2024/10/cropped-pu-favicon-alt-32x32.png World Builder – Logic Editor – Portals United https://www.portalsunited.com:443 32 32 World Builder – Logic Editor https://www.portalsunited.com:443/docs/world-builder-logic-editor/ https://www.portalsunited.com:443/docs/world-builder-logic-editor/#respond Fri, 17 Jan 2025 09:47:20 +0000 https://www.portalsunited.com:443/?post_type=docs&p=431 The World Builder can handle many actions without the need to tell it how to do it. It can turn things on and off, make them disappear or snap to a snap field, etc.

However, for more complex functionality you need to familiarize yourself with the Logic Editor. Click on the symbol below to open the Logic Editor

In the center you see a blank grid, the Work Space, which is where you create and arrange nodes. At the top you see a “Comment” button and a search field

The Comment button allows you to draw a colored rectangle around an area on the work space. You can give this comment a name and additional text. A comment can be dragged including the nodes inside or without affecting the nodes inside. It can also be resized.

To the right are two areas titled “Object Hierarchy” and “Signals”. The objects in either of those areas can be dragged into the Work Space where they will appear as Nodes.

The “Object Hierarchy” lists all the objects in your current location. See also: World Builder – Location Object List.

The “Signals” lists all the signals defined for your world. See also: World Builder – Signals.

]]>
https://www.portalsunited.com:443/docs/world-builder-logic-editor/feed/ 0
World Builder – What is a node? https://www.portalsunited.com:443/docs/world-builder-what-is-a-node/ https://www.portalsunited.com:443/docs/world-builder-what-is-a-node/#respond Thu, 07 Nov 2024 10:03:34 +0000 https://www.portalsunited.com:443/?post_type=docs&p=234 In the Logic Editor, a node represents a discrete unit of functionality or an action within a visual scripting environment. Each node typically performs a specific task, such as a calculation, transformation, input/output operation, or a control flow decision. Nodes are connected by “wires” that define the flow of data or logic between them, allowing you to create complex behaviors or interactions without writing code manually.

]]>
https://www.portalsunited.com:443/docs/world-builder-what-is-a-node/feed/ 0
World Builder – Flow https://www.portalsunited.com:443/docs/world-builder-flow/ https://www.portalsunited.com:443/docs/world-builder-flow/#respond Fri, 17 Jan 2025 09:29:11 +0000 https://www.portalsunited.com:443/?post_type=docs&p=236 To control in what order a number of functions are run, the flow inputs and outputs are used. In the image below, the white lines which begin with arrows instead of round connectors are flow inputs and outputs. You can see that the flow starts with an Update node which enters an Audio Player node. This stars the audio player.

From the Audio Player node, control flows to the If Node. “If” will use the “true” output flow if the audio player is playing and the “false” output flow if the audio player has finished playing.

The Light Bulb object in the scene will be visible (light up) while audio is playing and disappear when audio has stopped.

When the flow is passed to the Light Bulb object, the connected values at the input will be sent to the corresponding object. However, to read the output of any Node, the node does not need any flow passed to it.

The Distance Node, for instance, has no flow inputs or outputs, because the distance calculation is made whenever the “distance” output is read. The distance output is read by the Compare Node which in turn is read by the if Node. The If Node will follow the “true” output flow whenever the distance between the “a” and “b” inputs is greater than 12.

]]>
https://www.portalsunited.com:443/docs/world-builder-flow/feed/ 0
World Builder – Start & Update Node https://www.portalsunited.com:443/docs/world-builder-start-update-nodes/ https://www.portalsunited.com:443/docs/world-builder-start-update-nodes/#respond Thu, 13 Mar 2025 15:55:55 +0000 https://www.portalsunited.com:443/?post_type=docs&p=1278 The flow output of the Start Node will be triggered once, when the location is loaded in Portal Hopper. In the example below it will set the text of a text object in the location to “Good morning !”.

The flow output of the Update Node is triggered continuously (every frame). Delta time represents the time difference in seconds between two updates, making it a measurement of the current frame rate. You don’t have to use the delta time output when working with the Update Node, but you can. In the example below the value of delta time is continuously updated on the text display.

]]>
https://www.portalsunited.com:443/docs/world-builder-start-update-nodes/feed/ 0
World Builder – Object Node https://www.portalsunited.com:443/docs/world-builder-object-node/ https://www.portalsunited.com:443/docs/world-builder-object-node/#respond Thu, 13 Mar 2025 15:09:20 +0000 https://www.portalsunited.com:443/?post_type=docs&p=238 You can drag any object from the object hierarchy in the logic editor into the work space grid to create an object node. Object nodes cannot be created using the search dialog.

You can set the listed properties of the object by using an input flow in combination with nodes connected to the corresponding inputs:

You can also retrieve information from the outputs of an object node. For example, you could assign the object’s position’s x-value to a float signal:

]]>
https://www.portalsunited.com:443/docs/world-builder-object-node/feed/ 0
World Builder – Signal Nodes https://www.portalsunited.com:443/docs/world-builder-signal-nodes/ https://www.portalsunited.com:443/docs/world-builder-signal-nodes/#respond Thu, 13 Mar 2025 15:16:08 +0000 https://www.portalsunited.com:443/?post_type=docs&p=413 See:
World Builder – How to use signals in logic editor?

]]>
https://www.portalsunited.com:443/docs/world-builder-signal-nodes/feed/ 0
World Builder – Value Nodes (Boolean, Number, Float, Text) https://www.portalsunited.com:443/docs/world-builder-value-nodes-boolean-number-float-text/ https://www.portalsunited.com:443/docs/world-builder-value-nodes-boolean-number-float-text/#respond Thu, 13 Mar 2025 16:31:23 +0000 https://www.portalsunited.com:443/?post_type=docs&p=1290 Value nodes are the most simple nodes, featuring only one output and no inputs. They just carry the value that is defined right inside the node. In the example below, they are used to assign values to signals of the corresponding type.

]]>
https://www.portalsunited.com:443/docs/world-builder-value-nodes-boolean-number-float-text/feed/ 0
World Builder – Vector & Compare Vector Nodes https://www.portalsunited.com:443/docs/world-builder-vector-compare-vector-nodes/ https://www.portalsunited.com:443/docs/world-builder-vector-compare-vector-nodes/#respond Thu, 13 Mar 2025 16:48:54 +0000 https://www.portalsunited.com:443/?post_type=docs&p=1294 Vector2, Vector3 and Vector4 nodes are simple value nodes with only one output and no inputs ( see also World Builder – Value nodes (Boolean, Number, Float, Text)) .

If you connect a Vector3 (x,y,z) node to an input of Vector2 type, only x and y value of the Vector3 will be used.
If you connect a Vector4 (x,y,z,w) node to an input of Vector3/Vector2 type, only x, y and z / only x and y will be used.

Compare Vector nodes check whether the two input vectors a and b are equal. In the example below, the first two comparisons yield a true result, whereas the third one yields a false one.

If you reconstruct the example below and test it in Portal Hopper, your avatar should fall down right away, because the default cube it is standing on gets deactivated.

]]>
https://www.portalsunited.com:443/docs/world-builder-vector-compare-vector-nodes/feed/ 0
World Builder – Audio & Video Player Node https://www.portalsunited.com:443/docs/world-builder-audio-video-player-nodes/ https://www.portalsunited.com:443/docs/world-builder-audio-video-player-nodes/#respond Thu, 13 Mar 2025 15:35:47 +0000 https://www.portalsunited.com:443/?post_type=docs&p=1270 Audio Player and Video Player can control audio sources or video objects. Use the flow inputs to trigger Play and Stop.

Connect the corresponding location objects to the object input of the player and select the audio or video asset using the dropdown field.

You can also use an Update Node in combination with an Is Playing signal to monitor whether the video player is still playing.

If you type a video url into the text field of the video player, it will play from the url and ignore the selected video asset.

The Set Position/Set Time flow inputs can be used in combination with the corresponding inputs for position/time to jump to a specific position/time in the audio/video.

]]>
https://www.portalsunited.com:443/docs/world-builder-audio-video-player-nodes/feed/ 0
World Builder – Display Text & Audio Text Player Node https://www.portalsunited.com:443/docs/world-builder-display-text-audio-text-player/ https://www.portalsunited.com:443/docs/world-builder-display-text-audio-text-player/#respond Thu, 13 Mar 2025 16:09:26 +0000 https://www.portalsunited.com:443/?post_type=docs&p=1283 Use Display Text to control text shown on a specific text object in the location. The flow input sets the text connected to the “Text” input on the connected text object

The Audio Text Player is a convenience node that combines the functionalities of the Audio Player node with the Display Text node. By setting all dropdown fields to the desired values and typing the text directly into the node, you can play audio and display text synchronously.

]]>
https://www.portalsunited.com:443/docs/world-builder-display-text-audio-text-player/feed/ 0