#Trying to make EditorPlugin writing to a file

6 messages · Page 1 of 1 (latest)

livid minnow
#

I'm trying to make a plugin so that I can write content in my Editor, then have it save the value as a text file in my resource when I press a button. It works and the file got created but it's not added to FileSystem. How do I amanually trigger the Editor refresh its FileSystem?

stoic quiver
#

are you using the latest version? I tried and the FileSystem does refresh after the editor get the focus again.

livid minnow
#

No i mean how to trigger the FileSystem to refresh without having to alt tabbing out. Perhaps there's some sort of function that can be called to import those in?

manic nimbus
livid minnow
#

how do I do it? my Button isn't EditorPlugin inheriting. How do I grab editor interface using singleton?

#

Manual shows how to get the singleton, but it's not working as advertised