Verse Library verse

06 Set The Global Transform

Safely checks if an entity possesses a transform component before accessing it.

extracted-snippets/documentation/en-us/fortnite/transforms-in-scene-graph-in-unreal-editor-for-fortnite/06-set-the-global-transform.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/fortnite/transforms-in-scene-graph-in-unreal-editor-for-fortnite
# Local doc:  epic-docs/documentation/en-us/fortnite/transforms-in-scene-graph-in-unreal-editor-for-fortnite.md
# Section:    Set the global transform
if (MyEntity.GetComponent[transform_component]):
# success, entity has a transform_component
else:
# failure, entity does not have a transform_component

Comments

    Sign in to vote, comment, or suggest an edit. Sign in