{"id":201,"date":"2019-04-28T17:11:32","date_gmt":"2019-04-28T17:11:32","guid":{"rendered":"https:\/\/docs.sisus.co\/power-inspector\/?p=201"},"modified":"2021-03-24T17:33:34","modified_gmt":"2021-03-24T17:33:34","slug":"display-anything","status":"publish","type":"post","link":"https:\/\/docs.sisus.co\/power-inspector\/features\/display-anything\/","title":{"rendered":"11. Display Anything"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-202\" src=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/2019\/04\/DisplayAnything.png\" alt=\"\" width=\"594\" height=\"255\" srcset=\"https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/DisplayAnything.png 594w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/DisplayAnything-300x129.png 300w, https:\/\/docs.sisus.co\/power-inspector\/wp-content\/uploads\/sites\/2\/2019\/04\/DisplayAnything-150x64.png 150w\" sizes=\"(max-width: 594px) 100vw, 594px\" \/><\/p>\n<h1>Display Any Member<\/h1>\n<p>With Power Inspector the objective has been to be able to display anything you can think to throw at it.<\/p>\n<h1>Members That Power Inspector Can Display:<\/h1>\n<ul>\n<li><strong>Fields<\/strong>\n<ul>\n<li><strong>Serialized<\/strong> fields.<\/li>\n<li><strong>Non-serialized<\/strong> fields.<\/li>\n<li>Fields with the <strong>readonly<\/strong> modifier.<\/li>\n<li><strong>Static<\/strong> Fields.<\/li>\n<li>In <a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/debug-mode\/\"><strong>Debug Mode+<\/strong><\/a>: fields with the <strong>HideInInspector<\/strong> attribute.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Properties<\/strong>\n<ul>\n<li><strong>Auto-implemented<\/strong> properties.<\/li>\n<li>Properties with <strong>asymmetric accessor<\/strong> visibility.<\/li>\n<li>Properties with only the <strong>get accessor<\/strong>.<\/li>\n<li>Properties with only the <strong>set accessor<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Methods<\/strong>\n<ul>\n<li><strong>Instance<\/strong> methods.<\/li>\n<li><strong>Static<\/strong> methods.<\/li>\n<li>Methods with <strong>parameters<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<li><strong>Indexers<\/strong>\n<ul>\n<li>Single-parameter indexers.<\/li>\n<li>Multi-parameter indexers.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h1>Types That Power Inspector Can Display<\/h1>\n<p>Power Inspector can <strong>display<\/strong> just about <strong>any Type<\/strong> imaginable.<br \/>\nExamples of supported types include:<\/p>\n<ul>\n<li><strong>Multi-Dimensional<\/strong> Array<\/li>\n<li><strong>Jagged<\/strong> Array<\/li>\n<li><strong>Dictionary<\/strong><\/li>\n<li><strong>HashSet<\/strong><\/li>\n<li><strong>Type<\/strong><\/li>\n<li><strong>Delegate<\/strong><\/li>\n<li><strong>Interface<\/strong><\/li>\n<li><strong>Nullable<\/strong><\/li>\n<li><strong>System.Object<\/strong><\/li>\n<li><strong>DateTime<\/strong><\/li>\n<li><strong>TimeSpan<\/strong><br \/>\n<em>and many more\u2026<\/em><\/li>\n<\/ul>\n<p>To learn how you can control member visibility in Power Inspector refer to the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/getting-started\/class-member-visibility\/\">class member visibility page<\/a><\/strong>.<\/p>\n<h1>Full Undo Support<\/h1>\n<p>Undo and redo works fully with these new types when you edit them through Power Inspector, even if Unity can&#8217;t handle serializing them.<\/p>\n<h3>Note About Serialization<\/h3>\n<blockquote><p>Do note that even if a field is visible in Power Inspector does not necessarily mean that its value is <strong><a href=\"https:\/\/docs.unity3d.com\/Manual\/script-Serialization.html\">serialized<\/a><\/strong>. If you add the <strong><a href=\"https:\/\/docs.sisus.co\/power-inspector\/attributes\/showininspector\/\">ShowInInspector<\/a><\/strong> attribute to a non-serialized field you will see it in the inspector, but changes made to its value will still be lost whenever the scene is reloaded.<\/p>\n<p>You can use the <strong><a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/SerializeField.html\">SerializeField<\/a><\/strong> and <strong><a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/SerializeReference.html\">SerializeReference<\/a><\/strong> attributes to have Unity actually save the values of most fields for you. In the rare instances where Unity can&#8217;t handle the serialization (like with dictionaries) you&#8217;ll need to <strong><a href=\"https:\/\/docs.unity3d.com\/ScriptReference\/ISerializationCallbackReceiver.html\">handle it manually<\/a><\/strong>.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Display Any Member With Power Inspector the objective has been to be able to display anything you can think to throw at it. Members That Power Inspector Can Display: Fields Serialized fields. Non-serialized fields. Fields with the readonly modifier. Static Fields. In Debug Mode+: fields with the HideInInspector attribute. Properties Auto-implemented properties. Properties with asymmetric ..<\/p>\n<div class=\"clear-fix\"><\/div>\n<p><a href=\"https:\/\/docs.sisus.co\/power-inspector\/features\/display-anything\/\" title=\"read more\">Read more<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/201"}],"collection":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/comments?post=201"}],"version-history":[{"count":31,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/201\/revisions"}],"predecessor-version":[{"id":1800,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/posts\/201\/revisions\/1800"}],"wp:attachment":[{"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/media?parent=201"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/categories?post=201"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.sisus.co\/power-inspector\/wp-json\/wp\/v2\/tags?post=201"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}