<?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=Icon</id>
	<title>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=Icon"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Icon&amp;action=history"/>
	<updated>2026-05-12T22:57:49Z</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=Icon&amp;diff=891&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;Icon&lt;/code&gt; Property in Scheme Class ==  === Overview === The &lt;code&gt;Icon&lt;/code&gt; property in the Scheme class holds a visual icon associated with the scheme, providing a graphical representation that reflects its theme or action.  === Property Definition === &lt;syntaxhighlight lang=&quot;c#&quot;&gt; [field: SerializeField] public Sprite Icon { get; private set; } &lt;/syntaxhighlight&gt;  === Description ===  * Type: &lt;code&gt;Sprite&lt;/code&gt; - Used in Unity for 2D images. * Accessibility...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Icon&amp;diff=891&amp;oldid=prev"/>
		<updated>2024-01-04T23:05:31Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;Icon&amp;lt;/code&amp;gt; Property in Scheme Class ==  === Overview === The &amp;lt;code&amp;gt;Icon&amp;lt;/code&amp;gt; property in the Scheme class holds a visual icon associated with the scheme, providing a graphical representation that reflects its theme or action.  === Property Definition === &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 ===  * Type: &amp;lt;code&amp;gt;Sprite&amp;lt;/code&amp;gt; - Used in Unity for 2D images. * Accessibility...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== &amp;lt;code&amp;gt;Icon&amp;lt;/code&amp;gt; Property in Scheme Class ==&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 Scheme class holds a visual icon associated with the scheme, providing a graphical representation that reflects its theme or action.&lt;br /&gt;
&lt;br /&gt;
=== Property Definition ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
[field: SerializeField]&lt;br /&gt;
public Sprite Icon { get; private set; }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* Type: &amp;lt;code&amp;gt;Sprite&amp;lt;/code&amp;gt; - Used in Unity for 2D images.&lt;br /&gt;
* Accessibility: Publicly readable, but can only be set within the class.&lt;br /&gt;
&lt;br /&gt;
=== Functionality ===&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;code&amp;gt;Icon&amp;lt;/code&amp;gt; serves as a visual identifier, making it easier for players to recognize and understand the scheme's purpose.&lt;br /&gt;
* It enhances user interfaces by visually representing schemes in menus, dialogues, or other interactive elements.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
The &amp;lt;code&amp;gt;Icon&amp;lt;/code&amp;gt; property is used in game UIs to display an icon for a scheme. The Scheme objects themselves are not directly editable in the Unity Inspector, but their properties, including &amp;lt;code&amp;gt;Icon&amp;lt;/code&amp;gt;, can be accessed and manipulated programmatically.&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 SchemeUIManager : MonoBehaviour {&lt;br /&gt;
    public Image schemeIconImage;&lt;br /&gt;
&lt;br /&gt;
    void Start() {&lt;br /&gt;
        // Retrieve a specific scheme by its name&lt;br /&gt;
        Scheme currentScheme = IM.Player.GetScheme(&amp;quot;Assassination&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        if (currentScheme != null &amp;amp;&amp;amp; schemeIconImage != null) {&lt;br /&gt;
            // Set the icon of the retrieved scheme in an Image component&lt;br /&gt;
            schemeIconImage.sprite = currentScheme.Icon;&lt;br /&gt;
            schemeIconImage.gameObject.SetActive(true);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;code&amp;gt;Start&amp;lt;/code&amp;gt; method in the &amp;lt;code&amp;gt;SchemeUIManager&amp;lt;/code&amp;gt; class demonstrates retrieving a specific scheme by name using &amp;lt;code&amp;gt;IM.Player.GetScheme&amp;lt;/code&amp;gt; and then using its &amp;lt;code&amp;gt;Icon&amp;lt;/code&amp;gt; property to display the scheme's icon in a UI element.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The &amp;lt;code&amp;gt;Icon&amp;lt;/code&amp;gt; property is key to providing intuitive visual cues in game interfaces, especially in games where schemes are a major gameplay element.&lt;br /&gt;
* This approach is beneficial in strategy or role-playing games where visual storytelling and player interaction with various schemes are crucial.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>