UNITY DAY AND NIGHT CYCLE 2D
Вставка
- Опубліковано 20 вер 2024
- Two TV Games - Free Day and Night Cycle 2D
Download on Asset Store: assetstore.uni...
Download on GitHub: github.com/lea...
__
This is a FREE and simple package made in Unity Engine (Version 2019 LTS) to help developers create their own day and night system for your 2D games.
With this addon you can add a immersive Day and Night system for your 2D game based on awesome Light effect for Unity 2019 LTS Version
__
INFORMATIONS
- Unity Engine (2019 LTS)
- Intuitive and easy-to-customize
- Simple and free
FEATURES
- Simple and easy to use
- C# crafted code and all lines commented
- Include demo scene and prefabs
- Based on Unity 2019 LTS Version with 2D Ligths
- Different cycles and easy to expand
- You can use each cycle to expand your systems like NPCs only at night, some quests only at sunrise or whatever you want
- Automatic turn on/off lights at day/night cycle
- Free support and to use!
- We use LPC graphics for this pack (opengameart.or...)
__
Video sound: • 16-Bit Wave • Super Ni...
Developer Leandro Vieira (gallighanmaker)
#unity #day #night #cycle #2d
Nice video :3 had watched your video then searched for color lerp unity and i just made my own day night system :3
Thanks man!
You are a Genius, thank you so much :D
Welcome dude! thanks for the comment and I hope u can use this package well.
Thanks dude!
everything else is working (unity version 2020.1.6f1)
Thanks for the feedback Nicolas!
Thanks 👍
Welcome dude
Hey I love this excactly what I needed but how can I adjust that not everything has the same lenght? I want that the day has the most time and sunrise and sunset should be a shorter time span? ^^
Hi, you cand adapt this system , is free and easy to customize man, you can achieve this goal easy.
I’m number 2
:D
Does it work with the 2020 version light system?
I'm not sure dude, but I think so.
nice & simple tutorial
thanks!
Hey, thanks for the script, buddy. It would also be interesting to provide a static variable within it to keep the current time and the cycle of the day after changing between scenes, I just defined these variables:
private static float globalCurrentTime;
private static DayCycles globalCurrentDayCycle;
in Start ():
cycleCurrentTime = globalCurrentTime;
dayCycle = globalCurrentDayCycle;
in Update ():
globalCurrentTime = cycleCurrentTime;
globalCurrentDayCycle = dayCycle;
Thanks for using our addon and you gave a nice tip :) :)
@@twotvgames Fui ver seu github e você é br hahah que coincidência xD
@@twotvgames Sobre o que eu disse, eu criaria uma variável publica lá no inspector pra caso o player queira manter o currentTime e o DayCycle entre cenas, e ai colocar as variáveis no Start() em um if, aqui tá funcionando certinho ;) obrigado!
@@caiowcosta Sim man! kkk mais fácil pra comunicar então :)
@@caiowcosta Boa ideia man, até por boas práticas seria melhor dessa forma acredito eu :D
Can you give the colors numbers for the day, dusk, night , midnight pleas
Hmm it's up to you but has a default colors, may you can use: cdn.discordapp.com/attachments/469340673162870805/729342250953211964/unknown.png
This break my project when i add the scriptable render pipeline :/ the main camera just only show the default color background and refuse to show my sprites / tilemap... i think i did something wrong, can you help me someone please ? :)
Hmm, what unity version u are using? its simple to setup, check again how to configure renderer pipeline and check your global light.
@@twotvgames i'm using the version 2019.4.10f1, i' check the renderer pipeline to configure exactly like the example. i also test the renderer pipeline of the example scene but i still have the issue :/
i don't understand your point on the global light, i add those in the package, i did not have global light before start using this package. i also test to add an empty renderer pipeline with default configuration and this break instantly my main camera :/
@@julienlachaux7964 hmm, you can download this project on my github, the test scene with asset works?
@@julienlachaux7964 Do you have other scripts attached in your camera? If you test a sample scene with this asset works?.
Im number one
Nice! kk
I'm doing a mobile rpg game,if I put too many lights on the scene the game starts to hang, do you have any hint of what I can do to make it lock less? ps : I really liked this lighting system :))
Hey, thanks ! You can use some tips over networks and from unity like this topic: unity.com/how-to/advanced/optimize-lighting-mobile-games You need to manage your lights and be smart to renderer in some points, you can check some light options for mobile and build/test to achieve your best FPS.
May u dont need help anymore but anyway .... check out "Object Pooling", i guess you try to get alltime a new instance from your light object may u get a pool ad active/deactive for your needs
Entendi foi nada tururuu
kkkk