ASSADOUR
ASSADOUR

Reputation: 27

Create scenes from a script in unity

My project consists in creating a hundred (this number is given by the user) of scenes from C# script, from a prefab template. I know how to do it from Editor by using Asset.Database.copyasset for example, but what i want is to create dynamically scenes in Run mode, as the number of scene is variable.

I'm just a beginner in Unity development and all stuff and answers were be welcomed.

Thanks in advance,

Armand.

Upvotes: 0

Views: 1338

Answers (1)

Tatarochka
Tatarochka

Reputation: 43

Maybe SceneManager.CreateScene(); API is what you are looking for -> Unity documentation

Upvotes: 2

Related Questions