<?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=Portrait</id>
	<title>Portrait - 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=Portrait"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Portrait&amp;action=history"/>
	<updated>2026-05-12T22:58:11Z</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=Portrait&amp;diff=681&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;Portrait&lt;/code&gt; Property in Actor Class ==  === Overview === The &lt;code&gt;Portrait&lt;/code&gt; property in the &lt;code&gt;Actor&lt;/code&gt; class is used to represent the visual depiction or image of the actor. This property is crucial for providing a graphical representation of the actor in the game's user interface.  === Syntax === &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public Sprite Portrait { get; protected set; } &lt;/syntaxhighlight&gt;  === Description ===  * Property Type: &lt;code&gt;Sprite&lt;/c...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Portrait&amp;diff=681&amp;oldid=prev"/>
		<updated>2023-12-22T11:57:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;Portrait&amp;lt;/code&amp;gt; Property in Actor Class ==  === Overview === The &amp;lt;code&amp;gt;Portrait&amp;lt;/code&amp;gt; property in the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class is used to represent the visual depiction or image of the actor. This property is crucial for providing a graphical representation of the actor in the game&amp;#039;s user interface.  === Syntax === &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public Sprite Portrait { get; protected set; } &amp;lt;/syntaxhighlight&amp;gt;  === Description ===  * Property Type: &amp;lt;code&amp;gt;Sprite&amp;lt;/c...&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;Portrait&amp;lt;/code&amp;gt; Property in Actor Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;Portrait&amp;lt;/code&amp;gt; property in the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class is used to represent the visual depiction or image of the actor. This property is crucial for providing a graphical representation of the actor in the game's user interface.&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 Sprite Portrait { get; protected set; }&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* Property Type: &amp;lt;code&amp;gt;Sprite&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;Portrait&amp;lt;/code&amp;gt; property is of the type &amp;lt;code&amp;gt;Sprite&amp;lt;/code&amp;gt;, which is a class in Unity used for creating 2D and UI images.&lt;br /&gt;
* Accessibility: The property is publicly readable, allowing other parts of the code to access the actor's portrait. The &amp;lt;code&amp;gt;protected set&amp;lt;/code&amp;gt; modifier ensures that the portrait can only be modified within the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class or its subclasses, maintaining controlled management of the actor's visual representation.&lt;br /&gt;
&lt;br /&gt;
=== Purpose ===&lt;br /&gt;
The &amp;lt;code&amp;gt;Portrait&amp;lt;/code&amp;gt; property is essential for visually representing the actor within the game, particularly in user interfaces like character menus, dialogue boxes, or inventory screens. It helps players to identify and connect with the character.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This property is used to access and display the actor's portrait. It can be a key factor in user interface design and player engagement, providing a visual reference for the character.&lt;br /&gt;
&lt;br /&gt;
==== Example: ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
Sprite actorPortrait = someActor.Portrait;&lt;br /&gt;
// Use actorPortrait to display the actor's image in the game's UI&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;In this example, the actor's portrait is accessed and can be used in various parts of the game's user interface for visual representation.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The use of &amp;lt;code&amp;gt;Sprite&amp;lt;/code&amp;gt; as the property type aligns with Unity's framework for handling 2D graphics, ensuring compatibility and ease of use within the Unity engine.&lt;br /&gt;
* The &amp;lt;code&amp;gt;protected set&amp;lt;/code&amp;gt; access level ensures the integrity of the actor's portrait, preventing it from being changed arbitrarily, which is important for maintaining consistent visual representation throughout the game.&lt;br /&gt;
* The &amp;lt;code&amp;gt;Portrait&amp;lt;/code&amp;gt; property enhances the game's visual storytelling and aids in creating an immersive and engaging player experience.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>