<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Infinity Code Forum — Access Shader properties of Map Material on Runtime]]></title>
	<link rel="self" href="https://forum.infinity-code.com/extern.php?action=feed&amp;tid=1550&amp;type=atom" />
	<updated>2020-06-24T09:41:49Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.infinity-code.com/viewtopic.php?id=1550</id>
		<entry>
			<title type="html"><![CDATA[Re: Access Shader properties of Map Material on Runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6405#p6405" />
			<content type="html"><![CDATA[<p>Thanks again, Alex.<br />Now all works.</p>]]></content>
			<author>
				<name><![CDATA[edufurla]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1320</uri>
			</author>
			<updated>2020-06-24T09:41:49Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6405#p6405</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Access Shader properties of Map Material on Runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6404#p6404" />
			<content type="html"><![CDATA[<p>You change only the first material (which is most likely outside the view), and the map uses a lot of materials (one for each tile).<br />Actually, this is the reason why the Mesh Renderer is hidden.<br />Generating a large number of previews can greatly slow down the inspector, and at high settings, it can cause inspector crashes.<br />The amount of material depends on your settings.<br />Video:<br /><a href="https://www.dropbox.com/s/3e0oryha73m0fep/ScreenRecorderProject116.mp4?dl=0">https://www.dropbox.com/s/3e0oryha73m0f … 6.mp4?dl=0</a><br />GetCountMaterials action attached.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-23T17:41:19Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6404#p6404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Access Shader properties of Map Material on Runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6403#p6403" />
			<content type="html"><![CDATA[<p>I recorded a video.</p><br /><p><a href="https://drive.google.com/file/d/1OHgVaeJj8qlOlcvUbbJNLAVBFYWsQaqx/view?usp=sharing">https://drive.google.com/file/d/1OHgVae … sp=sharing</a></p>]]></content>
			<author>
				<name><![CDATA[edufurla]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1320</uri>
			</author>
			<updated>2020-06-23T16:33:44Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6403#p6403</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Access Shader properties of Map Material on Runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6402#p6402" />
			<content type="html"><![CDATA[<p>Please show how you do it, and I will give advice on how to fix it.</p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-23T15:53:14Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6402#p6402</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Access Shader properties of Map Material on Runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6401#p6401" />
			<content type="html"><![CDATA[<p>Hi Alex.</p><p>I can get the material, but I can`t change it on the map after the map was created.<br />If I use the exact same material and Playmaker setup in a cube, for example, I can change it in runtime.</p><p>Maybe a need an extra step to the map update the new material information?</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[edufurla]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1320</uri>
			</author>
			<updated>2020-06-23T15:48:51Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6401#p6401</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Access Shader properties of Map Material on Runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6400#p6400" />
			<content type="html"><![CDATA[<p>Hello.</p><p>Tileset Control creates a hidden Mesh Renderer component in play mode, and you can get / set materials.</p><p><span class="postimg"><img src="https://i.ibb.co/svzbh07/img1.png" alt="https://i.ibb.co/svzbh07/img1.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[Alex Vertax]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=2</uri>
			</author>
			<updated>2020-06-23T15:16:48Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6400#p6400</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Access Shader properties of Map Material on Runtime]]></title>
			<link rel="alternate" href="https://forum.infinity-code.com/viewtopic.php?pid=6399#p6399" />
			<content type="html"><![CDATA[<p>Hi Alex.<br />I found another challenge for me (hope not for you <img src="https://forum.infinity-code.com/img/smilies/smile.png" width="15" height="15" alt="smile" /> ).<br />I want to add some nice effects in runtime to the map, like dissolve, vertex displacements, hologram, etc...<br />My difficult is the map does not have a standard material property and Playmaker can`t access the instanced material of the map.</p><p>I am using Amplify Shader with your PBR Bridge script and all works very well if you set up before hitting play, but if I change the material in play mode nothing happens.</p><p>Any idea of how to get the map working with a runtime configurable shader?</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[edufurla]]></name>
				<uri>https://forum.infinity-code.com/profile.php?id=1320</uri>
			</author>
			<updated>2020-06-23T13:39:58Z</updated>
			<id>https://forum.infinity-code.com/viewtopic.php?pid=6399#p6399</id>
		</entry>
</feed>
