MCPcopy Create free account
hub / github.com/URLab-Sim/UnrealRoboticsLab / _apply

Function _apply

Scripts/codegen/generate_ue_components.py:563–568  ·  view source on GitHub ↗
(per_elem: str)

Source from the content-addressed store, hash-verified

561 toggle = override_toggle_name(prop_name)
562
563 def _apply(per_elem: str) -> str:
564 if is_array:
565 return f"for (float& V : {prop_name}) {{ {per_elem} }}"
566 # Scalar: mutate the UPROPERTY directly. The ops are written in
567 # terms of `V`; substitute with the prop name.
568 return per_elem.replace("V ", f"{prop_name} ").replace("(V)", f"({prop_name})")
569
570 branches: List[str] = []
571 for entry in conversions:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected