<?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=Policy.SetName</id>
	<title>Policy.SetName - 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=Policy.SetName"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Policy.SetName&amp;action=history"/>
	<updated>2026-05-06T00:53:45Z</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=Policy.SetName&amp;diff=980&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;=== Policy Class - &lt;code&gt;SetName&lt;/code&gt; Method ===  ==== Overview ==== The &lt;code&gt;SetName&lt;/code&gt; method in the Policy class is used to change the name of a policy.  ==== Syntax ==== &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public void SetName(string policyName) &lt;/syntaxhighlight&gt;  ==== Description ==== This method allows for dynamically updating the name of a policy during runtime. It is particularly useful when policies need to be renamed based on game events or player actions.  ====...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Policy.SetName&amp;diff=980&amp;oldid=prev"/>
		<updated>2024-01-05T14:29:42Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=== Policy Class - &amp;lt;code&amp;gt;SetName&amp;lt;/code&amp;gt; Method ===  ==== Overview ==== The &amp;lt;code&amp;gt;SetName&amp;lt;/code&amp;gt; method in the Policy class is used to change the name of a policy.  ==== Syntax ==== &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public void SetName(string policyName) &amp;lt;/syntaxhighlight&amp;gt;  ==== Description ==== This method allows for dynamically updating the name of a policy during runtime. It is particularly useful when policies need to be renamed based on game events or player actions.  ====...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== Policy Class - &amp;lt;code&amp;gt;SetName&amp;lt;/code&amp;gt; Method ===&lt;br /&gt;
&lt;br /&gt;
==== Overview ====&lt;br /&gt;
The &amp;lt;code&amp;gt;SetName&amp;lt;/code&amp;gt; method in the Policy class is used to change the name of a policy.&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 SetName(string policyName)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==== Description ====&lt;br /&gt;
This method allows for dynamically updating the name of a policy during runtime. It is particularly useful when policies need to be renamed based on game events or player actions.&lt;br /&gt;
&lt;br /&gt;
==== Parameters ====&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;policyName&amp;lt;/code&amp;gt;: A &amp;lt;code&amp;gt;string&amp;lt;/code&amp;gt; representing the new name to be assigned to the policy.&lt;br /&gt;
&lt;br /&gt;
==== Usage ====&lt;br /&gt;
The &amp;lt;code&amp;gt;SetName&amp;lt;/code&amp;gt; method can be invoked on a Policy instance to update its name. This change will reflect wherever the policy's name is displayed or used 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 PolicyRenamer : MonoBehaviour {&lt;br /&gt;
    private Policy currentPolicy;&lt;br /&gt;
&lt;br /&gt;
    void Start() {&lt;br /&gt;
        // Fetching the 'Economy' policy from the game's policy manager&lt;br /&gt;
        currentPolicy = IM.GetPolicy(&amp;quot;Economy&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
        if (currentPolicy != null) {&lt;br /&gt;
            // Changing the policy's name to &amp;quot;New Economy Plan&amp;quot;&lt;br /&gt;
            currentPolicy.SetName(&amp;quot;New Economy Plan&amp;quot;);&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;
* The new name is immediately applied to the policy and will be reflected in all instances where the policy's name is accessed or displayed.&lt;br /&gt;
* This method should be used cautiously as changing policy names can impact game mechanics and player recognition, especially if the policy name is widely referenced or known.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>