<?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.Icon</id>
	<title>Role.Icon - 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.Icon"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Role.Icon&amp;action=history"/>
	<updated>2026-05-13T01:31:43Z</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.Icon&amp;diff=991&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;=== Role Class - &lt;code&gt;Icon&lt;/code&gt; Property ===  ==== Overview ==== The &lt;code&gt;Icon&lt;/code&gt; property in the Role class is used to retrieve the graphical representation or symbol associated with a specific role.  ==== Syntax ==== &lt;syntaxhighlight lang=&quot;c#&quot;&gt; [field: SerializeField] public Sprite Icon { get; private set; } &lt;/syntaxhighlight&gt;  ==== Description ==== This property provides a visual icon for a role, such as an emblem or symbol that represents the nature or status...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Role.Icon&amp;diff=991&amp;oldid=prev"/>
		<updated>2024-01-05T15:34:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Role Class - &amp;lt;code&amp;gt;Icon&amp;lt;/code&amp;gt; Property ===  ==== Overview ==== The &amp;lt;code&amp;gt;Icon&amp;lt;/code&amp;gt; property in the Role class is used to retrieve the graphical representation or symbol associated with a specific role.  ==== Syntax ==== &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; [field: SerializeField] public Sprite Icon { get; private set; } &amp;lt;/syntaxhighlight&amp;gt;  ==== Description ==== This property provides a visual icon for a role, such as an emblem or symbol that represents the nature or status...&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;Icon&amp;lt;/code&amp;gt; Property ===&lt;br /&gt;
&lt;br /&gt;
==== Overview ====&lt;br /&gt;
The &amp;lt;code&amp;gt;Icon&amp;lt;/code&amp;gt; property in the Role class is used to retrieve the graphical representation or symbol associated with 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;
[field: SerializeField] public Sprite Icon { get; private set; }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
This property provides a visual icon for a role, such as an emblem or symbol that represents the nature or status of the role within the game's context. Icons are often used in user interfaces to quickly convey information about a character's role.&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
Icons are a vital aspect of user interface design, especially in games with complex role systems. They help players to visually distinguish between different roles and understand the hierarchy or functions of characters in the game.&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 DisplayRoleIcon : MonoBehaviour {&lt;br /&gt;
    public Image roleIconDisplay;&lt;br /&gt;
&lt;br /&gt;
    void Start() {&lt;br /&gt;
        // Retrieve a specific role&lt;br /&gt;
        var role = IM.GetRole(&amp;quot;Leader&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        if (role != null &amp;amp;&amp;amp; roleIconDisplay != null) {&lt;br /&gt;
            // Set the icon of the role to an Image component in the UI&lt;br /&gt;
            roleIconDisplay.sprite = role.Icon;&lt;br /&gt;
        }&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;
* Role icons contribute to a more engaging and intuitive gameplay experience by allowing players to quickly identify and understand the roles of various characters.&lt;br /&gt;
* They are particularly useful in games with a large number of roles or in strategy games where understanding the roles of characters is crucial to gameplay.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>