Static prefab? or static class with assigned variables?

Hi All,

Im trying to make a static class that holds a list of objects that i want to assign via the inspector.
I dont really want to loadfromresources to populate the data fields of this class.
So normally I would make a prefab and add the class populate teh fields via the inspector and then drop in the prefab
However, i dont actually need any of the gaemeobject transform stuff or anything.
Is it possible to make a static class that i can assign vars to via the inspector without using a gameobject?

Cheers

No, that is not possible. Why do you want to avoid loading through Resources?

Maybe you should look into wirting a custom inspector panel in the editor api?

You could make a script with a nonstatic variable as well as a (differently named) static variable.
Then add this script component to something that’s in your scene anyway, like the main camera.
Assign whatever you want to the nonstatic variable via the editor as usual.
In the script’s Awake method, assign the nonstatic variable to the static variable.
You can now (as early as in Start methods) access whatever you assigned in the editor via the static variable.