Reference Scene Object to Scriptable Object

Hello dear friends,

as you know it is not possible to reference scene gameobjects etc to scriptable objects. i am trying to do this some how possible so i can acces the gameObjects components from my scriptable object. I made a custom script for my scriptable object and i am able to assign a gameobject from the scene to my scriptableobject now, however i would also like to display all the public methods on the gameobjects script. how could i do this possible and invoke one of these methods. thank you!

Is this an editor script? You could probably use reflection to get a types public methods, something like this:

yes it is an custom editor script, i have tried a few things with System.Reflection and i am able to receive the methods but i need some help, no idea how to invoke one of the methods

Examples in the link above