What's new

C# Unity - Scene Manager - Back Button - Patulong po C#

drago_032

Established
Joined
Oct 12, 2016
Posts
257
Reaction
41
help-png.1800760

Bali, di ko mafigure out kung pano ko ma-program to, since baguhan ako sa unity. Yan po yung plan, pag galing sa menu at pumunta sa settings, kapag nagback babalik sa previous na ginamit na scene, and vice versa pag galing sa in gamescene
Nagamit ko na yung "SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex - 1);" dahil madami akong scenes, nag dedecrement lang sa scene manager to.

MARAMING SALAMAT PO AGAD!!

help.png
 

Attachments

rwydei

Established
parang website lang din yan. e lilink mo sila pero dapat may seperate yan na pages. kunwari menu page , setting page then gamepause page
 

drago_032

Established
Pwede nyo po gamitin
Code:
 SceneManager.LoadScene(scenename);
Also, refer to unity documentation: You do not have permission to view the full content of this post. Log in or register now.
like, pano ko pa determine kung saan galing? or previous na scene. para pag press back, dun ulit babalik.

salamat na din dito. tingnan ko sa documentations.
 
Top