Announcement

Collapse
No announcement yet.

How can I Broadcast Editor-Events Manually ?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    How can I Broadcast Editor-Events Manually ?

    Hi,
    I developed a extended Blutility to automate some things like replacing Materials in C++. But due the reason I´m not Changing Values in the Editor manually, Unreal doesn´t know that I changed Values. Hope my idea makes sense. How can I hook to some Editor Events like: "Map has changed-so please mark for saving" ? (= mark Map with asteriks).

    Thanks in advance.

    #2
    I'm pretty sure the method you're looking is "MarkPackageDirty"

    Comment


      #3
      Nice! It works. Thank you!

      When changing the Materials from SaticMeshes through Code, I call MarkPackageDirty() on every changed Mesh and so the Scene is marked as changed.

      So Package is called every loaded Object ?

      Comment


        #4
        Every uobject that gets stored has a package, which is kinda the master object that gets stored and has a path.
        When you mark a package dirty, you tell the editor that something inside that package (be it a private sub object, or anything) changed and the saved version is no longer the lastest one (which in turn gets marked with a *)

        Cheerios!

        Comment


          #5
          Thanks I got it.

          Comment

          Working...
          X