Jump to content

hey, so i need a script that will make day time 20 irl minutes and night time 10, however i do not know how to write code (i am lrarning and i need examples to read off of) 

 

so could somebody write or send me a (prefferably c#, but can be js) script of a day / night cycle like described?

✧・゚: *✧・゚:*  Quote for a reply  *:・゚✧*:・゚✧

 

✧・゚: *✧・゚:*   Ask for discord   *:・゚✧*:・゚✧

Link to comment
https://linustechtips.com/topic/988720-unity-3d-day-night-script/
Share on other sites

Link to post
Share on other sites

No experience with Unity, but is this what you're looking for?

https://unity3d.com/learn/tutorials/topics/graphics/realtime-global-illumination-daynight-cycle

Gaming build:

CPU: i7-7700k (5.0ghz, 1.312v)

GPU(s): Asus Strix 1080ti OC (~2063mhz)

Memory: 32GB (4x8) DDR4 G.Skill TridentZ RGB 3000mhz

Motherboard: Asus Prime z270-AR

PSU: Seasonic Prime Titanium 850W

Cooler: Custom water loop (420mm rad + 360mm rad)

Case: Be quiet! Dark base pro 900 (silver)
Primary storage: Samsung 960 evo m.2 SSD (500gb)

Secondary storage: Samsung 850 evo SSD (250gb)

 

Server build:

OS: Ubuntu server 16.04 LTS (though will probably upgrade to 17.04 for better ryzen support)

CPU: Ryzen R7 1700x

Memory: Ballistix Sport LT 16GB

Motherboard: Asrock B350 m4 pro

PSU: Corsair CX550M

Cooler: Cooler master hyper 212 evo

Storage: 2TB WD Red x1, 128gb OCZ SSD for OS

Case: HAF 932 adv

 

Link to post
Share on other sites

2 minutes ago, reniat said:

No experience with Unity, but is this what you're looking for?

https://unity3d.com/learn/tutorials/topics/graphics/realtime-global-illumination-daynight-cycle

i have a ton of experience with unity, but i am just not getting into scripting (i am older now, i decided to wait till i am older so i had a better chance of comprehending the code) which, im 15 now so i think i am more than old enough to comprehend the scripts.. so not i am learning

✧・゚: *✧・゚:*  Quote for a reply  *:・゚✧*:・゚✧

 

✧・゚: *✧・゚:*   Ask for discord   *:・゚✧*:・゚✧

Link to post
Share on other sites

No one will write it for you for free but I'll tell you how YOU CAN DO IT ALL BY YOURSELF! 

 

1. Google to find the script for free

alternate 

1. buy the script on the asset store

Actually writing the script

 

1. Use the directional light.

2. Add a C# script. 

3. Rotate by degrees with Update or FixedUpdate

4. adjust the rotation speed by Time.DeltaTime

 

Delta is the mathematical property defining the change in something. 

 

Edit

many of my friends started scripting at like 12. 
They make coding materials for like 8 year olds. You learn. Unity's video tutorials are really good
Go to the website, they have documentation that assume you have NO programming knowledge. 

Link to post
Share on other sites

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

×