var for levels

ok so you know how you can set a var like

var :rigidbody;

for example, so then you can drag in a prefab with rigidbody, well can you do that with levels? i would like the extension to be able to drag in levels as i do not want to be making mutiple versions of code for each level.

thanks

I don’t think you understand what’s going on. When you drag something onto that slot, you’re just getting a reference to a rigidbody component, not the whole prefab. What is it you actually want to do?

I think he wants to create a variable for a scene so he can then drag a scene into it from the inspector… But as far as I know that isn’t possible…

You use ints or strings to refer to levels.

There’s no reason to do that anyway.

–Eric