<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Role.SetIcon</id>
	<title>Role.SetIcon - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Role.SetIcon"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Role.SetIcon&amp;action=history"/>
	<updated>2026-05-06T00:50:37Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>http://www.wlabsocks.com/wiki/index.php?title=Role.SetIcon&amp;diff=1002&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;=== Role Class - &lt;code&gt;SetIcon&lt;/code&gt; Method ===  ==== Overview ==== The &lt;code&gt;SetIcon&lt;/code&gt; method in the Role class allows setting a new graphical icon for a specific role.  ==== Syntax ==== &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public void SetIcon(Sprite icon) &lt;/syntaxhighlight&gt;  ==== Description ==== This method updates the visual representation of a role by assigning a new &lt;code&gt;Sprite&lt;/code&gt; object as its icon. This is useful for UI elements or any other in-game representat...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Role.SetIcon&amp;diff=1002&amp;oldid=prev"/>
		<updated>2024-01-05T16:06:02Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Role Class - &amp;lt;code&amp;gt;SetIcon&amp;lt;/code&amp;gt; Method ===  ==== Overview ==== The &amp;lt;code&amp;gt;SetIcon&amp;lt;/code&amp;gt; method in the Role class allows setting a new graphical icon for a specific role.  ==== Syntax ==== &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public void SetIcon(Sprite icon) &amp;lt;/syntaxhighlight&amp;gt;  ==== Description ==== This method updates the visual representation of a role by assigning a new &amp;lt;code&amp;gt;Sprite&amp;lt;/code&amp;gt; object as its icon. This is useful for UI elements or any other in-game representat...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Role Class - &amp;lt;code&amp;gt;SetIcon&amp;lt;/code&amp;gt; Method ===&lt;br /&gt;
&lt;br /&gt;
==== Overview ====&lt;br /&gt;
The &amp;lt;code&amp;gt;SetIcon&amp;lt;/code&amp;gt; method in the Role class allows setting a new graphical icon for a specific role.&lt;br /&gt;
&lt;br /&gt;
==== Syntax ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public void SetIcon(Sprite icon)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
This method updates the visual representation of a role by assigning a new &amp;lt;code&amp;gt;Sprite&amp;lt;/code&amp;gt; object as its icon. This is useful for UI elements or any other in-game representations where roles are visually distinguished.&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
This method is commonly used when customizing or updating the visual aspects of roles within the game, making it easier for players to identify different roles at a glance.&lt;br /&gt;
&lt;br /&gt;
==== Example of Usage ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public class RoleIconUpdater : MonoBehaviour {&lt;br /&gt;
    public Sprite newGuardIcon; // Assign this in the Unity inspector&lt;br /&gt;
&lt;br /&gt;
    void UpdateGuardIcon() {&lt;br /&gt;
        // Retrieve the &amp;quot;Guard&amp;quot; role&lt;br /&gt;
        var guardRole = IM.GetRole(&amp;quot;Guard&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        // Update the icon for the &amp;quot;Guard&amp;quot; role&lt;br /&gt;
        guardRole.SetIcon(newGuardIcon);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Remarks ====&lt;br /&gt;
&lt;br /&gt;
* It's important to ensure that the icon accurately represents the role's nature and function within the game.&lt;br /&gt;
* Changing a role's icon can be a part of a larger UI update or rebranding within the game.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>