Wednesday 15 July 2015

Unity 3D Day And Night Cycle Simple

Unity 3D Day And Night Cycle Simple

































DIRECT DOWNLOAD HERE















THIS IS BACKUP  IN TEXT FORM  TUTORIAL 2015/S1








THIS IS C# scrip: GOOD 4 2D GAMES  !
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------


1. Create New C# and name it : DayNightCycle


2. Copy & Past this text and save C# :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


using UnityEngine;
using System.Collections;

public class DayNightCycle : MonoBehaviour
{

public Light DirectionLight;
public Texture2D LightColor;
public Texture2D SkyColor;
public Texture2D AmbientColor;
public float TimeOfDay = 1;
[Range(0, 1)]
public float Timer = 0;
private float timeTemp = 0;
private float fade = 0;
public bool FadeTime = true;
public float MaxFade = 20;


void Start ()
{
timeTemp = Time.time;
fade = Timer;
}

void Update ()
{
if (Network.isServer || (!Network.isClient && !Network.isServer)) {
if (FadeTime) {
float timeperfade = TimeOfDay / MaxFade;
if (Time.time >= timeTemp + timeperfade) {
timeTemp = Time.time;
fade += 1.0f / MaxFade;
}
if (fade > 1.0f) {
fade = 0;
Timer = 0;
}

Timer += (fade - Timer) / 10f;

} else {
if (Timer > 1) {
Timer = 0;
} else {
Timer += (1.0f * Time.deltaTime) * (1.0f / TimeOfDay);

}
}
}

Color skyColor = SkyColor.GetPixelBilinear (Timer, 0);
RenderSettings.skybox.SetColor ("_Tint", skyColor);
RenderSettings.fogColor = skyColor;
RenderSettings.ambientLight = AmbientColor.GetPixelBilinear (Timer, 0);
DirectionLight.color = LightColor.GetPixelBilinear (Timer, 0);

}
}



----------------------------------------­­­­­------------------------------------­-­-­-­-­-



And Textures are here :









----------------------------------------­­­­­------------------------------------­-­-­-­-­-



And Helpers are here :






































----------------------------------------­­­­­------------------------------------­-­-­-­-­-


P.S

1. Unplug from the Internet
2. GOOOO   outside It's Summertime  
3. In the Name of Summer
4. Go out and Chill!
    See you after summer !!! ,)











86 comments:

  1. If someone asked you to pick 5 songs that best demonstrate the kind of music that you like best?
    http://musikandfilm.com/

    ReplyDelete
    Replies
    1. Glad to visit your blog. Thanks for great post that you share to us...

      Delete
  2. Which has better sound quality a headphone or speakers?
    modern digital amplifier

    ReplyDelete
  3. I have read many blogs in the net but have never come across such a well written blog. Good work keep it up
    Drake - Hotline Bling

    ReplyDelete
  4. You got a really useful blog I have been here reading for about half an hour. I am a newbie and your post is valuable for me.
    Quiet On The Set - Trail

    ReplyDelete
  5. I just came across to reading your blog it serve very useful information about the interiors thank u
    R Mills - Now Get it

    ReplyDelete
  6. I would be grateful if you continue with the quality of what we are doing now with your blog ... I really enjoyed it
    Meridians Horror Short Film

    ReplyDelete
  7. Thanks for the information you shared that's so useful and quite informative and i have taken those into consideration....
    Cover Song When we were young

    ReplyDelete
  8. Thanks for the information you shared that's so useful and quite informative and i have taken those into consideration....
    On My Way-Music Video

    ReplyDelete
  9. I have been reading a lot of stuff about it. but it is different presented, i loved to read this. keep it up.
    Music video for PLAY by Diola

    ReplyDelete
  10. Nice service there are just few who are providing this service great job.
    Anna Madsen's song Palm Reader

    ReplyDelete
  11. You have a very good site, well constructed and very interesting i have bookmarked you, hopefully you keep posting new stuff, many thanks
    Viz Dawg - Get Me The Ball

    ReplyDelete
  12. I think most people would agree with your article. I am going to bookmark this web site so I can come back and read more articles. Keep up the good work!
    Sagittarius performed by Chris Balan

    ReplyDelete
  13. Hi I really appreciate all the great content you have here. I am glad I cam across it!
    Music Theory Lessons

    ReplyDelete
  14. Spot on with this article, I really think this website needs more attention. I'll probably be back to read more, thanks for the info.
    Tick Tock Music Video by Jaya Kosa

    ReplyDelete
  15. I visited your blog for the first time and just been your fan. I Will be back often to check up on new stuff you post!
    say my name song by ceno

    ReplyDelete
  16. I have been reading your posts regularly. I need to say that you are doing a fantastic job. Please keep up the great work.
    M PEARLS a.a.l The Movie Trailer

    ReplyDelete
  17. It's really a nice and helpful piece of information. I'm glad that you shared this helpful info with us. Please keep us informed like this.
    Glib Golem What's Love song

    ReplyDelete
  18. I wanted to thank you for this great blog! I really enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
    El Futuro Es One'

    ReplyDelete
  19. I like your post & I will always be coming frequently to read more of your post. Thank you very much for your post once more.
    Riston Diggs ft. Sly Beats

    ReplyDelete
  20. Thanks for the information and links you shared this is so should be a useful and quite informative!
    Fitty Smallz

    ReplyDelete
  21. have read many blogs in the net but have never come across such a well written blog. Good work keep it up
    Music video for Lights On by Ivan Kelley

    ReplyDelete
  22. I really loved reading your thoughts, obviously you know what are you talking about! Your site is so easy to use too, I’ve bookmark it in my folder
    Hear u Talking C.G feat Hustle AllDay

    ReplyDelete
  23. This is easier and surely gives comfort to internet users. Thanks for sharing. Post like this offers great benefit. Thank you!
    A.K-Logan Browning Song

    ReplyDelete
  24. I have been reading your posts regularly. I need to say that you are doing a fantastic job. Please keep up the great work.
    Blue Dream Marijuana Strain Review

    ReplyDelete
  25. Spot on with this article, I really think this website needs more attention.  I'll probably be back to read more, thanks for the info.
    Singer/Songwriter

    ReplyDelete
  26. I wanted to thank you for this great read. Your blog is one of the finest blog . Thanks for posting this informative article.
    in ceiling center channel speaker

    ReplyDelete
  27. This is easier and surely gives comfort to internet users. Thanks for sharing. Post like this offers great benefit. Thank you!
    Style by Taylor Swift - Acoustic Cover by ATB

    ReplyDelete
  28. Its wonderful, looking at the time and effort you put into your weblog and detailed information you provide. I'll bookmark your weblog and visit it weekly for your new posts.
    Hustle by FDA Music Official Music Video

    ReplyDelete
  29. Truly superb blog, I don’t have actual words to praise in regards for this
    Opera Singer Sheridan Archbold

    ReplyDelete
  30. Really!!! I am very impressed after reading this blog. thanks for providing deep information for
    Justin Bieber "The feeling" Dance cover

    ReplyDelete
  31. Thanks for the information and links you shared this is so should be a useful and quite informative!
    Gasparilla's first release in 2016 Cuba Libre

    ReplyDelete
  32. Music produces a kind of pleasure which human nature cannot do withoutLife as Bebé - Episode 1

    ReplyDelete
  33. Valuable service for individuals as well as businesses.
    Ashley Iona - Taking Me Under, feat. Kevin Davy White

    ReplyDelete
  34. I just came across to reading your blog it serve very useful information about the interiors thank u
    We Make It Work feat. KaCe The Producer

    ReplyDelete
  35. yes definitely this type of blogs are really help for people great job.
    SAVE THE DATE By NABIL & JENAN

    ReplyDelete
  36. You have a very good site, well constructed and very interesting i have bookmarked you, hopefully you keep posting new stuff, many thanks
    Gave you my Heart by Heather Walker

    ReplyDelete
  37. Wow, what a blog! I mean, you just have so much guts to go ahead and tell it like it is. Youre what blogging needs, an open minded superhero who isnt afraid to tell it like it is. This is definitely something people need to be up on. Good luck in the future, man
    Justin Bieber - Love Yourself (Paul Butcher Cover)

    ReplyDelete
  38. thanks… I’ve been bookmarking them for a while now and just decided to create a post to provide them to others…
    Silverbird - Smile (Official Video)

    ReplyDelete
  39. There are certainly a lot of details like that to take into consideration.
    Gudda Mane Streetz - So Good

    ReplyDelete
  40. I wanted to thank you for this great read!! I definitely enjoying every little bit of it.I have you bookmarked to check out new stuff you post.
    Charles Cossetti - Go Hard

    ReplyDelete
  41. Thanks for sharing info. Keep up the good work...We hope you will visit our blog often as we discuss topics of interest to you
    Kooly Bros - Rhythm Of The Night

    ReplyDelete
  42. I really loved reading your thoughts, obviously you know what are you talking about! Your site is so easy to use too, I’ve bookmark it in my folder
    The Wild by Paul Maged

    ReplyDelete
  43. This is easier and surely gives comfort to internet users. Thanks for sharing. Post like this offers great benefit. Thank you!
    Justin Bieber - Sorry Cover by Alex J

    ReplyDelete
  44. wow i love t hat SO much... can i cut and paste it into my blog?? but give u credit, of course???
    Body Rock - Woodbury

    ReplyDelete
  45. Wow! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?
    Stonelove J - Urkel video

    ReplyDelete
  46. Nice article and informative as well. for few of people like me this article is really helpful.
    music post

    ReplyDelete
  47. I really love your weblog, Its great to find not absolutely everyone is just posting a ton of rubbish these days!
    electronic music

    ReplyDelete
  48. I wanted to thank you for this great read. Your blog is one of the finest blog . Thanks for posting this informative article.
    Perspective by Emmanuel Jenkins

    ReplyDelete
  49. I really like the fresh perpective you did on the issue. I will be back soon to check up on new posts! Thank you!
    RMP - FLEXIN Music Video

    ReplyDelete
  50. Wow, what a blog! I mean, you just have so much guts to go ahead and tell it like it is. Youre what blogging needs, an open minded superhero who isnt afraid to tell it like it is. This is definitely something people need to be up on. Good luck in the future, man
    mix hip hop mixtapes

    ReplyDelete
  51. I really like the fresh perpective you did on the issue. I will be back soon to check up on new posts! Thank you!
    No Control by Laura Mendes

    ReplyDelete
  52. I think this post will be a fine read for my blog readers too, could you please allow me to post a link to my blog. I am sure my guests will find that very useful.
    dance violinist

    ReplyDelete
  53. The blog article very surprised to me! Your writing is good. In this I learned a lot! Thank you!
    Borderline feat. Joyce Sterling

    ReplyDelete
  54. I really like the fresh perpective you did on the issue. I will be back soon to check up on new posts! Thank you!
    Amie Penwell - Dogfight On The Moon

    ReplyDelete
  55. have read many blogs in the net but have never come across such a well written blog. Good work keep it up
    buy rap beats

    ReplyDelete
  56. I wanted to thank you for this great read!! I definitely enjoying every little bit of it.I have you bookmarked to check out new stuff you post.
    Villian - KD

    ReplyDelete
  57. This is really great news. Thank you for sharing it with us!
    Michael Blu Music

    ReplyDelete
  58. NIce article this article has been my favorite, interesting and informative article.
    STEM Performance New York

    ReplyDelete
  59. I would be grateful if you continue with the quality of what we are doing now with your blog ... I really enjoyed it
    Sleeping ArtbyEoin

    ReplyDelete
  60. This is really great news. Thank you for sharing it with us!
    Can't Stop the feeling by Justin Timberlake

    ReplyDelete
  61. Wow, what a blog! I mean, you just have so much guts to go ahead and tell it like it is. Youre what blogging needs, an open minded superhero who isnt afraid to tell it like it is. This is definitely something people need to be up on. Good luck in the future, man
    New Video RomeVice- da way

    ReplyDelete
  62. yes it would be, once my friend gave me lecture about modesty it was amazing and heart touching.
    Paul Maged - "The Wild" (Official Music Video)

    ReplyDelete
  63. I think this post will be a fine read for my blog readers too, could you please allow me to post a link to my blog. I am sure my guests will find that very useful.
    How To Play Arpeggios

    ReplyDelete
  64. This is a brilliant writing and very pleased to find this site. I couldn’t discover to much different information on your blog. I will surely be back again to look at some other important posts that you have in future.
    No Other Bagger by Chiro Music video

    ReplyDelete
  65. I like your post & I will always be coming frequently to read more of your post. Thank you very much for your post once more.
    Black Rock Revival-If You Want It

    ReplyDelete
  66. I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.
    English Language for movies and songs

    ReplyDelete
  67. Great blog with a very interesting information about the music well done and keep posting.



    Dirty Bourbon River Show - Passion

    ReplyDelete
  68. Wow!what a nice and great information about the music and i really love this blog.

    Nadel Paris Performance

    ReplyDelete
  69. Remarkable blog and i really enjoy this very much. i really appreciate your work which you have done about the music.

    Hip Hop Songs

    ReplyDelete
  70. Very informative article which is about the music and i must bookmark it, keep posting interesting articles.

    Hip hop Songs

    ReplyDelete
  71. I feel very thankful for this really amazing blog about music,.

    rap songs

    ReplyDelete
  72. I really love your music blog all the music and sounds tracks are rocking , I have bookmark it.Good job.

    Danny Boy piano music video

    ReplyDelete
  73. I visited your blog for the first time and just been your fan and the music is awesome.

    Money Really Counts

    ReplyDelete
  74. Your blog is very useful, I am truly to this blog which is specially design about the music.
    Great job.

    Harp Samuels new Song

    ReplyDelete
  75. Keep it up,
    It's really a wonderful blog about the music,.

    completely relaxing Sounds

    ReplyDelete
  76. This blog is fabulous about the detail and the info about music amazing. Good job.

    Van Breda Songs

    ReplyDelete
  77. I appreciate your blog and another helpful blog about the music and song thank you for sharing this.

    MUD TIRES by VIRGINIA MAN

    ReplyDelete
  78. Your blog is a very nice entertainment because i got many information about the music and also get many songs from your blog thank you for sharing it.

    David Owens - Asleep Again

    ReplyDelete
  79. Nice blog and the description about it very amazing I really liked it.

    Hip hop Songs

    ReplyDelete
  80. Its really wonderful and watchable. I like to share it with all my friends and hope they will definitely like it.

    ReplyDelete