Jump to content
  • We need you!

    You must register to discover all the features of our community!

  • 0

Sky box button problem



Hello Guys, I have made a button to change sky box, when someone click on that button, it should change the sky boxes but it doesn't work, so can anyone please check what's wrong with that code

Thanks in advance ❤️❤️ 

	def ClickSky(self):
		if constInfo.Night == 0:
			background.RegisterEnvironmentData(1, constInfo.ENVIRONMENT_NIGHT)
			constInfo.Night = 1
		elif constInfo.Night == 2:
			background.RegisterEnvironmentData(2, constInfo.ENVIRONMENT_Skybox4)
			constInfo.Night = 2			
		elif constInfo.Night == 3:
			background.RegisterEnvironmentData(3, constInfo.ENVIRONMENT_Skybox3)
			constInfo.Night = 3
		elif constInfo.Night == 4:
			background.RegisterEnvironmentData(4, constInfo.ENVIRONMENT_Skybox2)
			constInfo.Night = 4
		elif constInfo.Night == 0:
			background.RegisterEnvironmentData(0, constInfo.ENVIRONMENT_Skybox1)
			constInfo.Night = 0
			constInfo.Night = 0


Edited by Ahmed (see edit history)
Link to post

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.