<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.frozenbyte.com/index.php?action=history&amp;feed=atom&amp;title=PropertyConnectionComponent</id>
	<title>PropertyConnectionComponent - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.frozenbyte.com/index.php?action=history&amp;feed=atom&amp;title=PropertyConnectionComponent"/>
	<link rel="alternate" type="text/html" href="https://wiki.frozenbyte.com/index.php?title=PropertyConnectionComponent&amp;action=history"/>
	<updated>2026-05-16T14:01:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki.frozenbyte.com/index.php?title=PropertyConnectionComponent&amp;diff=282&amp;oldid=prev</id>
		<title>AnteroFB: Created page with &quot;&#039;&#039;&#039;PropertyConnectionComponent&#039;&#039;&#039;s connect properties to one another. The simplest way to do this, is to right click the input property, choose File:inputproperty.png, the...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.frozenbyte.com/index.php?title=PropertyConnectionComponent&amp;diff=282&amp;oldid=prev"/>
		<updated>2018-06-15T08:14:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;#039;&amp;#039;&amp;#039;PropertyConnectionComponent&amp;#039;&amp;#039;&amp;#039;s connect properties to one another. The simplest way to do this, is to right click the input property, choose &lt;a href=&quot;/index.php/File:Inputproperty.png&quot; title=&quot;File:Inputproperty.png&quot;&gt;File:inputproperty.png&lt;/a&gt;, the...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;PropertyConnectionComponent&amp;#039;&amp;#039;&amp;#039;s connect properties to one another. The simplest way to do this, is to right click the input property, choose [[File:inputproperty.png]], then right click the output property and choose [[File:outputproperty.png]]&lt;br /&gt;
&lt;br /&gt;
More generally, PropertyConnectionComponents are used to feed information (floats, integers, booleans, vectors etc.) from one property to another. Or, in less abstract terms, PropertyConnectionComponent can be thought of as a cable, which transmits a signal (the value of the property) between, for example, a graphics card&amp;#039;s HDMI port (the input property) and the HDMI port of a screen or a tv (the output property).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Please note that property connection components are usually very buggy if they are used for gameplay logic in online multiplayer game since debugging and fixing them can take a lot of time. That&amp;#039;s why property connection components are recommended to be used only for visual/art type of things or simple gameplay logic like moving an object.&lt;br /&gt;
&lt;br /&gt;
= The usage of PropertyConnectionComponent =&lt;br /&gt;
&lt;br /&gt;
PropertyConnectionComponents can be used to make life easier in the editor as well as for gameplay/art features. An example of the former is to connect the &amp;quot;Color1&amp;quot; property of [[AmbientLightEntity]] to it&amp;#039;s &amp;quot;Color2&amp;quot; property. If this connection is set to [[#Make created connections active in editor|active in editor]], it enables the user to just change one color property to the desired value, and the other one changes automatically, due to the connection. In the latter case, PropertyConnectionComponent can feed e.g. &amp;quot;Time&amp;quot; from a [[TimerEntity]] to a [[KeyFrameComponent]] for animation purposes.&lt;br /&gt;
&lt;br /&gt;
== Conversions, conditions, validations and math ==&lt;br /&gt;
&lt;br /&gt;
It&amp;#039;s possible to do many types of operations to the input property before connecting it to the output property. Below are some examples of operations, but note that this isn&amp;#039;t a complete list of all possible operations. All the available operations can be found by right clicking on the output property and choosing [[File:Conversion1.png]].&lt;br /&gt;
&lt;br /&gt;
=== Conversions ===&lt;br /&gt;
&lt;br /&gt;
From the point of view of the PropertyConnectionComponent it&amp;#039;s not relevant what type of information it transmits. It is relevant from the point of view of the properties, however, because it&amp;#039;s not possible to connect two totally different properties (e.g. float to boolean) to each other, unless there&amp;#039;s a converter in between. Much like when connecting old laptops with only a VGA port to a modern TV with an HDMI port, you need a separate converter to convert the analog signal to a digital one.&lt;br /&gt;
&lt;br /&gt;
The conversion is almost as simple as just connecting two properties to each other:&lt;br /&gt;
* right click the input property and choose [[File:inputproperty.png]]&lt;br /&gt;
* right click the output property and choose [[File:Conversion1.png]], then [[File:Conversion2.png]] and finally choose the correct conversion from the list of available conversions&lt;br /&gt;
&lt;br /&gt;
[[File:Conversion3.png|thumb|List of available conversions]]&lt;br /&gt;
&lt;br /&gt;
After this, a separate converter component is added to the output property&amp;#039;s parent instance. In this case, when a float is converted to a boolean, it&amp;#039;s called &amp;#039;&amp;#039;&amp;#039;FloatValueConverterComponent&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
=== Conditions ===&lt;br /&gt;
&lt;br /&gt;
With conditions, it&amp;#039;s possible to check whether the input integer or float is &lt;br /&gt;
* equal&lt;br /&gt;
* not equal&lt;br /&gt;
* greater&lt;br /&gt;
* less&lt;br /&gt;
* greater or equal&lt;br /&gt;
* less or equal&lt;br /&gt;
when compared to another integer or float. Based on these, the &amp;#039;&amp;#039;&amp;#039;FloatCompareComponent&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;IntCompareComponent&amp;#039;&amp;#039;&amp;#039; returns True or False (boolean).&lt;br /&gt;
&lt;br /&gt;
=== Validations ===&lt;br /&gt;
&lt;br /&gt;
Validations can be used to guarantee a float or an integer value between some limits. If the float or integer from the input property can have negative values, but the output property can only use positive or zero valued floats or integers (e.g. intensity, range), a validator can be used to make sure the value is always between some limits. When the input value is less than the minimum value of the limit (-2, when the limit is &amp;lt;math&amp;gt; \left] 0,1 \right[ &amp;lt;/math&amp;gt; for example), the minimum value of the limit is used instead (so 0, instead of -2). The same happens when the input value is greater than the maximum value of the limit (5, with &amp;lt;math&amp;gt; \left]0,2\right[&amp;lt;/math&amp;gt;), the maximum value is used instead of the input value (2 instead of 5).&lt;br /&gt;
&lt;br /&gt;
=== Math ===&lt;br /&gt;
&lt;br /&gt;
Integers, booleans, floats, vectors and rotations each have their own math operations, for obvious reasons (you can&amp;#039;t add 1.5 to &amp;quot;True&amp;quot; and you can&amp;#039;t divide a vector by &amp;quot;False&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
Float and integer math is mostly just simple arithmetic (addition, subtraction, multiplication and division) with some extra operations, like choosing the larger of two input values and using it as output. These operations are all quite self-explanatory.&lt;br /&gt;
&lt;br /&gt;
Boolean math operations follow the rules of normal [https://en.wikipedia.org/wiki/Two-element_Boolean_algebra two-element Boolean algebra].&lt;br /&gt;
&lt;br /&gt;
Available vector math operations consist of either:&lt;br /&gt;
* normal float arithmetic applied element-by-element &amp;lt;math&amp;gt;(x_1, y_1, z_1)/(x_2, y_2, z_2) = (x_1/x_2, y_1/y_2, z_1/z_2)&amp;lt;/math&amp;gt; or&lt;br /&gt;
* [https://en.wikipedia.org/wiki/Cross_product cross-product]&lt;br /&gt;
&lt;br /&gt;
Rotation math applies a further rotation to the input rotation before outputting it.&lt;br /&gt;
&lt;br /&gt;
= The properties of PropertyConnectionComponent =&lt;br /&gt;
== Connections active in editor ==&lt;br /&gt;
In certain situations it&amp;#039;s useful for the created connections to be active in editor as well as in game (like in the example with AmbientLightEntity above). This behaviour can be enabled with the &amp;quot;Make created connections active in editor&amp;quot; setting. Enabling this setting is done by right clicking on any property and clicking [[File:Connections_active_in_editor.png]]. The setting can be disabled by clicking the same field again.&lt;br /&gt;
&lt;br /&gt;
While enabled, the setting forces all connections created in editor to be active in editor as well as in game. When the setting is disabled, the created connections will be active only in game. Note, that enabling/disabling this setting doesn&amp;#039;t affect the already created connections in any way, it only determines whether connections created in the future will have the property set to True or False.&lt;br /&gt;
&lt;br /&gt;
Connections can be made active in editor also by going to the properties of the PropertyConnectionComponent in question and setting &amp;quot;ActiveInEditor&amp;quot; to true (tick the box) [[File:Connections_active_in_editor2.png|thumb|Connection active in editor]].&lt;br /&gt;
&lt;br /&gt;
== Other properties ==&lt;br /&gt;
&lt;br /&gt;
Other notable properties include:&lt;br /&gt;
* &amp;quot;Enabled&amp;quot;: whether the connection is enabled or not&lt;br /&gt;
* &amp;quot;InputInstance&amp;quot;: which component of an instance in the scene is the owner of the property that is used as an input (e.g. &amp;quot;NonSyncedTimerComponent GUID(... ... ... ...)&amp;quot;)&lt;br /&gt;
* &amp;quot;InputPropertyName&amp;quot;: which property from the &amp;quot;InputInstance&amp;quot; component is used as the input (e.g. &amp;quot;Time&amp;quot;)&lt;br /&gt;
* &amp;quot;OutPutInstance&amp;quot;: same as &amp;quot;InputInstance&amp;quot; but for output&lt;br /&gt;
* &amp;quot;OutputPropertyName&amp;quot;: same as &amp;quot;InputPropertyName&amp;quot; but for output&lt;br /&gt;
&lt;br /&gt;
Usually the inputs and outputs of the PropertyConnectionComponent shouldn&amp;#039;t be touched at all, since they are created automatically when the connection is made. In fact, it&amp;#039;s encouraged to keep hands off, since manual fiddling with them will most often lead to confusion, anger and finally crippling despair, especially if there are multiple connections between different components with the same name.&lt;br /&gt;
If manual adjustment is required, it&amp;#039;s best to write down, take a screenshot of or otherwise save the original connection inputs and outputs. You have been warned.&lt;/div&gt;</summary>
		<author><name>AnteroFB</name></author>
	</entry>
</feed>