{"id":1038,"date":"2022-12-03T10:25:04","date_gmt":"2022-12-03T01:25:04","guid":{"rendered":"https:\/\/colory-games.net\/site\/?p=1038"},"modified":"2023-11-04T16:20:53","modified_gmt":"2023-11-04T07:20:53","slug":"released-unrael-engine-plugin-access-variable-by-name","status":"publish","type":"post","link":"https:\/\/colory-games.net\/site\/en\/released-unrael-engine-plugin-access-variable-by-name\/","title":{"rendered":"Released Unrael Engine Plugin &#8220;Access Variable by Name&#8221;"},"content":{"rendered":"\n<div class=\"wp-block-jetpack-markdown\"><p><a href=\"https:\/\/i0.wp.com\/colory-games.net\/site\/wp-content\/uploads\/home\/products\/unreal-engine-plugin\/access_variable_by_name.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/colory-games.net\/site\/wp-content\/uploads\/home\/products\/unreal-engine-plugin\/access_variable_by_name.png?ssl=1\" alt=\"\" data-recalc-dims=\"1\"><\/a><\/p>\n<p>We recently released the Unreal Engine plugin &quot;Access Variable by Name&quot;.<br>\n&quot;Access Variable by Name&quot; provides a Blueprint node that allows you to get\/set the value of a variable by specifying a string.<\/p>\n<p><a href=\"https:\/\/www.unrealengine.com\/marketplace\/en-US\/product\/access-variable-by-name\">Marketplace: Access Variable by Name<\/a><\/p>\n<p>This article describes the Blueprint node provided by the plugin.<\/p>\n<div id=\"toc_container\" class=\"no_bullets\"><p class=\"toc_title\">\u76ee\u6b21<\/p><ul class=\"toc_list\"><li><a href=\"#Get_Variable_by_Name\">Get Variable by Name<\/a><\/li><li><a href=\"#Set_Variable_by_Name\">Set Variable by Name<\/a><\/li><li><a href=\"#Get_Variable_by_Name_Dynamic\">Get Variable by Name (Dynamic)<\/a><\/li><li><a href=\"#Set_Variable_by_Name_Dynamic\">Set Variable by Name (Dynamic)<\/a><\/li><li><a href=\"#Custom_Syntax\">Custom Syntax<\/a><ul><li><a href=\"#Access_to_member_variables_of_Structure_and_Object\">Access to member variables of Structure and Object<\/a><\/li><li><a href=\"#Access_to_Array_and_Map_elements\">Access to Array and Map elements<\/a><\/li><li><a href=\"#Syntax_Combinations\">Syntax Combinations<\/a><\/li><\/ul><\/li><li><a href=\"#Summary\">Summary<\/a><\/li><\/ul><\/div>\n<h1><span id=\"Get_Variable_by_Name\">Get Variable by Name<\/span><\/h1>\n<p><a href=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/get_variable_by_name.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/get_variable_by_name.png?ssl=1\" alt=\"\" data-recalc-dims=\"1\"><\/a><\/p>\n<p>&quot;Get Variable by Name&quot; is a Blueprint node that allows you to get the value of a variable by specifying string.<br>\nIt parses the specified string and automatically changes the data type of the output pin.<br>\nThis node is very useful when you access variables of other classes or when you access nested variables using custom syntax.<\/p>\n<h1><span id=\"Set_Variable_by_Name\">Set Variable by Name<\/span><\/h1>\n<p><a href=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/set_variable_by_name.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/set_variable_by_name.png?ssl=1\" alt=\"\" data-recalc-dims=\"1\"><\/a><\/p>\n<p>&quot;Set Variable by Name&quot; is a Blueprint node that allows you to set the value of a variable by specifying string.<br>\nIt parses the specified string and automatically changes the data type of the input\/output pin.<br>\nThis node is very useful when you access variables of other classes or when you access nested variables using custom syntax.<\/p>\n<h1><span id=\"Get_Variable_by_Name_Dynamic\">Get Variable by Name (Dynamic)<\/span><\/h1>\n<p><a href=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/get_variable_by_name_dynamic.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/get_variable_by_name_dynamic.png?ssl=1\" alt=\"\" data-recalc-dims=\"1\"><\/a><\/p>\n<p>&quot;Get Variable by Name (Dynamic)&quot; is a Blueprint node that allows you to get the value of a variable by specifying string.<br>\nThis node has the same features as &quot;Get Variable by Name&quot;, but non-literal values can be specified as strings.<br>\nSince a string can be specified at runtime, <a href=\"https:\/\/github.com\/colory-games\/UEPlugin-AccessVariableByName\/blob\/main\/docs\/tutorial.md#dynamically-changeable-name\">the target variable can be changed dynamically at runtime<\/a>.<br>\nHowever, you must specify the data type of the output pin.<\/p>\n<h1><span id=\"Set_Variable_by_Name_Dynamic\">Set Variable by Name (Dynamic)<\/span><\/h1>\n<p><a href=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/set_variable_by_name_dynamic.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/set_variable_by_name_dynamic.png?ssl=1\" alt=\"\" data-recalc-dims=\"1\"><\/a><\/p>\n<p>&quot;Set Variable by Name (Dynamic)&quot; is a Blueprint node that allows you to set the value of a variable by specifying string.<br>\nThis node has the same features as &quot;Set Variable by Name&quot;, but non-literal values can be specified as strings.<br>\nSince a string can be specified at runtime, <a href=\"https:\/\/github.com\/colory-games\/UEPlugin-AccessVariableByName\/blob\/main\/docs\/tutorial.md#dynamically-changeable-name\">the target variable can be changed dynamically at runtime<\/a>.<br>\nHowever, you must specify the data type of the input\/output pin.<\/p>\n<h1><span id=\"Custom_Syntax\">Custom Syntax<\/span><\/h1>\n<p>Custom syntax is available for specifying variable names as strings.<\/p>\n<h2><span id=\"Access_to_member_variables_of_Structure_and_Object\">Access to member variables of Structure and Object<\/span><\/h2>\n<p>By separating the string with a dot (<code>.<\/code>) separating the strings, you can access to member variables of Structure and Object.<br>\nThe following example is a string to specify when accessing the member variable <code>X<\/code> of the variable <code>StructVar<\/code> of Vector type.<\/p>\n<pre><code>StructVar.X\n<\/code><\/pre>\n<p><a href=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/access_structure_member_variable.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/access_structure_member_variable.png?ssl=1\" alt=\"\" data-recalc-dims=\"1\"><\/a><\/p>\n<h2><span id=\"Access_to_Array_and_Map_elements\">Access to Array and Map elements<\/span><\/h2>\n<p>Elements of Arrays and Maps can be accessed directly by enclosing the element number or key in the square brackets (<code>[]<\/code>).<br>\nThe following example is a string when you access the third element of a variable <code>ArrayVar<\/code> of Array type.<br>\nNote that it follows a 0-based index.<\/p>\n<pre><code>ArrayVar[2]\n<\/code><\/pre>\n<p><a href=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/access_array_element.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/access_array_element.png?ssl=1\" alt=\"\" data-recalc-dims=\"1\"><\/a><\/p>\n<p>Similarly, below string is specified when you access the element corresponding to the key <code>Key<\/code> of a variable <code>MapVar<\/code> of Map type.<\/p>\n<pre><code>MapVar[&quot;Key&quot;]\n<\/code><\/pre>\n<p><a href=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/access_map_element.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/access_map_element.png?ssl=1\" alt=\"\" data-recalc-dims=\"1\"><\/a><\/p>\n<h2><span id=\"Syntax_Combinations\">Syntax Combinations<\/span><\/h2>\n<p>Custom syntax can also be combined.<\/p>\n<p><a href=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/combined_syntax.png?ssl=1\"><img decoding=\"async\" src=\"https:\/\/i0.wp.com\/raw.githubusercontent.com\/colory-games\/UEPlugin-AccessVariableByName\/main\/docs\/images\/tutorial\/combined_syntax.png?ssl=1\" alt=\"\" data-recalc-dims=\"1\"><\/a><\/p>\n<h1><span id=\"Summary\">Summary<\/span><\/h1>\n<p>This article introduced the Blueprint node provided by the plugin &quot;Access Variable by Name&quot;.<br>\nWe have also uploaded an introduction video to <a href=\"https:\/\/www.youtube.com\/watch?v=zUzJBnCgB1k\">YouTube<\/a>, so please check it out.<\/p>\n<p>We also have a free trial version available on GitHub.<br>\nWe hope you will like it and consider purchasing it on Marketplace.<\/p>\n<p><a href=\"https:\/\/github.com\/colory-games\/UEPlugin-AccessVariableByName\/blob\/main\/docs\/installation.md\">GitHub: colory-games\/UEPlugin-AccessVariableByName<\/a><\/p>\n<p>Note that the free trial version differs from the regular version in the following limitations.<\/p>\n<ul>\n<li>Certain types are not available\n<ul>\n<li>Struct<\/li>\n<li>Enum<\/li>\n<li>Array<\/li>\n<li>Set<\/li>\n<li>Map<\/li>\n<\/ul>\n<\/li>\n<li><a href=\"https:\/\/github.com\/colory-games\/UEPlugin-AccessVariableByName\/blob\/main\/docs\/tutorial.md#custom-syntax\">Custom Syntax<\/a> is not available<\/li>\n<\/ul>\n<\/div>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":4,"featured_media":1024,"comment_status":"open","ping_status":"open","sticky":false,"template":"templates\/single-home-techblog.php","format":"standard","meta":{"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[162,160,80,170,166,94,71],"tags":[],"jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/colory-games.net\/site\/wp-content\/uploads\/home\/products\/unreal-engine-plugin\/access_variable_by_name.png?fit=1280%2C720&ssl=1","_links":{"self":[{"href":"https:\/\/colory-games.net\/site\/wp-json\/wp\/v2\/posts\/1038"}],"collection":[{"href":"https:\/\/colory-games.net\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/colory-games.net\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/colory-games.net\/site\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/colory-games.net\/site\/wp-json\/wp\/v2\/comments?post=1038"}],"version-history":[{"count":2,"href":"https:\/\/colory-games.net\/site\/wp-json\/wp\/v2\/posts\/1038\/revisions"}],"predecessor-version":[{"id":1040,"href":"https:\/\/colory-games.net\/site\/wp-json\/wp\/v2\/posts\/1038\/revisions\/1040"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/colory-games.net\/site\/wp-json\/wp\/v2\/media\/1024"}],"wp:attachment":[{"href":"https:\/\/colory-games.net\/site\/wp-json\/wp\/v2\/media?parent=1038"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/colory-games.net\/site\/wp-json\/wp\/v2\/categories?post=1038"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/colory-games.net\/site\/wp-json\/wp\/v2\/tags?post=1038"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}