- Home /
Question by
darkal · Sep 28, 2019 at 03:50 AM ·
objectsceneassetbundletypeof
Restrict Object variable to only Scene assets
So I want have a variable that is scene asset but don't want it be other object types. Theses scenes will eventually be cooked into a assetbundle, and loaded by script. Issue being I don't have a way to assign a variable of scene without it being a text or int. I rather have it as a "Object typeof(scene) " as it would better suit my needs I know there is a way do this however I am unsure as to how.
Make SceneList only equal-able to Scene Objects
Dont want all these options when I choose what set it as
desktop-9-28-2019-6-32-40-pm-3.jpg
(11.8 kB)
desktop-9-28-2019-6-33-53-pm-415.jpg
(93.8 kB)
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612212728im_/https://answers.unity.com/themes/thub/images/avi.jpg)