[{"data":1,"prerenderedAt":114},["ShallowReactive",2],{"class-doc-/reference/2.0/gg_interaction/gginteractable2dstrategyexpression":3,"navigation":42},{"_path":4,"_dir":5,"_draft":6,"_partial":6,"_locale":7,"_id":8,"navigation":6,"addon":5,"version":9,"brief_description":10,"description":11,"tutorials":7,"methods":12,"members":24,"signals":34,"constants":35,"inherits":36,"name":37,"title":37,"_source":38,"_file":39,"_stem":40,"_extension":41},"/reference/2.0/gg_interaction/gginteractable2dstrategyexpression","gg_interaction",false,"","content:40.reference:2.0:gg_interaction:GGInteractable2DStrategyExpression.xml","2.0","Provides interaction logic using an expression.","This interactable strategy uses the [Expression] class to let developers create interaction logic without having to create an entirely new strategy.",[13],{"description":7,"name":14,"public":15,"returnType":16,"params":17},"interact",true,"void",[18,21],{"name":19,"type":20},"interactor","GGInteractor2D",{"name":22,"type":23},"interactable","GGInteractable2D",[25,29],{"name":26,"description":27,"type":28,"setter":7,"getter":7,"public":15},"target_node_path","The referenced node will be available in the expression as the [code]target[/code] variable.","NodePath",{"name":30,"description":31,"type":32,"setter":7,"getter":7,"default":33,"public":15},"expression","This expression will be evaluated when the interaction takes place. The following variables are available: [code]actor[/code], [code]interactable[/code], [code]interactor[/code], [code]target[/code]. [br][br][b]Note[/b]: The expression is evaluated in the context of the [GGInteractable2DStrategy]. In other words, [code]self[/code] is the [GGInteractable2DStrategyExpression].","String","\"\"",[],[],"GGInteractable2DStrategy","GGInteractable2DStrategyExpression","content","40.reference/2.0/gg_interaction/GGInteractable2DStrategyExpression.xml","40.reference/2.0/gg_interaction/GGInteractable2DStrategyExpression","xml",[43,52,79,99],{"title":44,"_path":45,"children":46},"Getting Started","/getting-started",[47,49],{"title":48,"_path":45},"Introduction",{"title":50,"_path":51},"Installation","/getting-started/installation",{"title":53,"_path":54,"children":55},"Concepts","/concepts",[56,58,61,64,67,70,73,76],{"title":57,"_path":54},"Overview",{"title":59,"_path":60},"Inventory","/concepts/inventory",{"title":62,"_path":63},"Interactions","/concepts/interaction",{"title":65,"_path":66},"Permissions","/concepts/permissions",{"title":68,"_path":69},"Multiplayer","/concepts/multiplayer",{"title":71,"_path":72},"User Interface","/concepts/user-interface",{"title":74,"_path":75},"Game Integration","/concepts/game-integration",{"title":77,"_path":78},"Crafting","/concepts/crafting",{"title":80,"_path":81,"children":82},"Demos","/demos",[83,85,88,91,93,96],{"title":84,"_path":81},"Inventory Tour",{"title":86,"_path":87},"Inventory UI Playground","/demos/inventory_ui",{"title":89,"_path":90},"Inventory Game UI","/demos/inventory_game_ui",{"title":77,"_path":92},"/demos/crafting",{"title":94,"_path":95},"Multiplayer Lobby","/demos/mp_lobby",{"title":97,"_path":98},"Sequencer (prototype)","/demos/sequencer",{"title":100,"_path":101,"children":102},"Guide","/guide",[103,105,108,111],{"title":104,"_path":101},"Architecture Deep Dive",{"title":106,"_path":107},"Design Principles","/guide/design-principles",{"title":109,"_path":110},"Changelog v2.x","/guide/changelog-v2",{"title":112,"_path":113},"Changelog v1.x","/guide/changelog",1743268971408]