<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://powerui.kulestar.com/wiki/index.php?action=history&amp;feed=atom&amp;title=IL2CPP</id>
		<title>IL2CPP - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://powerui.kulestar.com/wiki/index.php?action=history&amp;feed=atom&amp;title=IL2CPP"/>
		<link rel="alternate" type="text/html" href="https://powerui.kulestar.com/wiki/index.php?title=IL2CPP&amp;action=history"/>
		<updated>2026-06-04T04:39:41Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>https://powerui.kulestar.com/wiki/index.php?title=IL2CPP&amp;diff=239&amp;oldid=prev</id>
		<title>188.222.158.94: /* Code Stripping turned on? Add Preserve */</title>
		<link rel="alternate" type="text/html" href="https://powerui.kulestar.com/wiki/index.php?title=IL2CPP&amp;diff=239&amp;oldid=prev"/>
				<updated>2017-03-13T01:31:59Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Code Stripping turned on? Add Preserve&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;col class=&#039;diff-marker&#039; /&gt;
				&lt;col class=&#039;diff-content&#039; /&gt;
				&lt;tr style=&#039;vertical-align: top;&#039; lang=&#039;en&#039;&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&#039;2&#039; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 01:31, 13 March 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l7&quot; &gt;Line 7:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 7:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Code Stripping turned on? Add Preserve ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Code Stripping turned on? Add Preserve ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you&amp;#039;ve got code stripping turned on, you&amp;#039;ll need to &amp;#039;&amp;#039;&amp;#039;add Preserve to the static methods that your UI uses&amp;#039;&amp;#039;&amp;#039;, otherwise they&amp;#039;ll be stripped out.&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;If you&amp;#039;ve got code stripping turned on, you&amp;#039;ll need to &amp;#039;&amp;#039;&amp;#039;add Preserve to the static methods that your UI uses&amp;#039;&amp;#039;&amp;#039;, otherwise they&amp;#039;ll be stripped out&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;. Preserve can also be added more broadly if you want (i.e. preserve whole classes instead)&lt;/ins&gt;.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can either use [UnityEngine.Scripting.Preserve] which requires at least Unity 5.4 or [Values.Preserve] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;(&amp;#039;Just works&amp;#039;)&lt;/del&gt;:&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;You can either use [UnityEngine.Scripting.Preserve] which requires at least Unity 5.4 or [Values.Preserve]:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&#039;diff-marker&#039;&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>188.222.158.94</name></author>	</entry>

	<entry>
		<id>https://powerui.kulestar.com/wiki/index.php?title=IL2CPP&amp;diff=238&amp;oldid=prev</id>
		<title>188.222.158.94: Created page with &quot;Platforms that use IL2CPP like WebGL and optionally mobiles need some special considerations.  == Nitro Compiler ==  Firstly, you&#039;ll need to precompile all your Nitro and remo...&quot;</title>
		<link rel="alternate" type="text/html" href="https://powerui.kulestar.com/wiki/index.php?title=IL2CPP&amp;diff=238&amp;oldid=prev"/>
				<updated>2017-03-13T01:30:43Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;Platforms that use IL2CPP like WebGL and optionally mobiles need some special considerations.  == Nitro Compiler ==  Firstly, you&amp;#039;ll need to precompile all your Nitro and remo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Platforms that use IL2CPP like WebGL and optionally mobiles need some special considerations.&lt;br /&gt;
&lt;br /&gt;
== Nitro Compiler ==&lt;br /&gt;
&lt;br /&gt;
Firstly, you&amp;#039;ll need to precompile all your Nitro and remove the Nitro compiler by ticking both boxes in &amp;#039;&amp;#039;Window &amp;gt; PowerUI &amp;gt; Nitro settings&amp;#039;&amp;#039; because IL2CPP errors if it encounters the libraries that the compiler uses.&lt;br /&gt;
&lt;br /&gt;
== Code Stripping turned on? Add Preserve ==&lt;br /&gt;
&lt;br /&gt;
If you&amp;#039;ve got code stripping turned on, you&amp;#039;ll need to &amp;#039;&amp;#039;&amp;#039;add Preserve to the static methods that your UI uses&amp;#039;&amp;#039;&amp;#039;, otherwise they&amp;#039;ll be stripped out.&lt;br /&gt;
&lt;br /&gt;
You can either use [UnityEngine.Scripting.Preserve] which requires at least Unity 5.4 or [Values.Preserve] (&amp;#039;Just works&amp;#039;):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;csharp&amp;quot;&amp;gt;&lt;br /&gt;
[Values.Preserve]&lt;br /&gt;
public static void Hello(Dom.MouseEvent e){&lt;br /&gt;
   &lt;br /&gt;
    // This method won&amp;#039;t be stripped out by IL2CPP.&lt;br /&gt;
    &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>188.222.158.94</name></author>	</entry>

	</feed>