<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Infinity Code Forum — Value Observer Help]]></title>
		<link>https://forum.infinity-code.com/index.php</link>
		<atom:link href="https://forum.infinity-code.com/extern.php?action=feed&amp;fid=65&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent topics at Infinity Code Forum.]]></description>
		<lastBuildDate>Mon, 02 Jun 2025 10:27:12 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Problem with LinkedObserver]]></title>
			<link>https://forum.infinity-code.com/viewtopic.php?id=2369&amp;action=new</link>
			<description><![CDATA[<p>Hey, I have a problem with LinkedObserver:</p><p>I have Source Prefab class with some ValueObserver called &quot;value&quot; and Watcher Prefab class with LinkedObserver called &quot;_state&quot;</p><p>Then, in Unity Editor I set _state linked observer to watch SourcePrefab.value</p><p>In WatcherPrefab I do:</p><p>&nbsp; &nbsp; private void Start() {<br />&nbsp; &nbsp; &nbsp; _state.AddListener(onStateChange);<br />&nbsp; &nbsp; }</p><p>It doesn&#039;t work as Unity somehow does not call LinkedObserver&#039;s constructor, caches _isObserverInitialized as &quot;true&quot; (I checked with debugger) and _state.Observer remains null, despite it being set in the editor.</p><p>I use Unity 6</p>]]></description>
			<author><![CDATA[null@example.com (ffeniks)]]></author>
			<pubDate>Mon, 02 Jun 2025 10:27:12 +0000</pubDate>
			<guid>https://forum.infinity-code.com/viewtopic.php?id=2369&amp;action=new</guid>
		</item>
	</channel>
</rss>
