Forum rules - please read before posting.

Remember transform

Hi community,

I have a question.
I have an object with remember transform component attached to it. This object is walking around the scene. However, when I switch to a different scene and comeback, The object "obviously" remembers its transform. I need this component to save changes on the object (For example when destroyed) but I don't the object to remember its last position. Is that possible ?

Comments

  • A Remember Transform will always record an object's position, but the recording of the object's presence in the scene is optional.

    If you want to record its presence, but not position, it sounds like you're best off letting it work as normal, and then manually resetting its position after the scene has finished loading.

    You can do this by creating a Cutscene that corrects its position, and then attaching an ActionList Starter component to it that has both Run on scene start? and Run on scene load? checked.

  • I managed to edit the "RememberTransform" script and removed anything related to transform. Now it only saves and restores the presence. Thanks Chris!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.