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

КОМЕНТАРІ • 41

  • @hoangtongvu9952
    @hoangtongvu9952 Рік тому +3

    Nice video :3 had watched your video then searched for color lerp unity and i just made my own day night system :3

  • @pibe1069
    @pibe1069 5 місяців тому +1

    You are a Genius, thank you so much :D

    • @twotvgames
      @twotvgames  5 місяців тому

      Welcome dude! thanks for the comment and I hope u can use this package well.

  • @nicolasmendoza8899
    @nicolasmendoza8899 4 роки тому +4

    Thanks dude!
    everything else is working (unity version 2020.1.6f1)

    • @twotvgames
      @twotvgames  4 роки тому

      Thanks for the feedback Nicolas!

  • @YassinTheDestroyer
    @YassinTheDestroyer 4 роки тому +1

    Thanks 👍

  • @Wonderchocolate
    @Wonderchocolate 2 роки тому +1

    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? ^^

    • @twotvgames
      @twotvgames  Рік тому

      Hi, you cand adapt this system , is free and easy to customize man, you can achieve this goal easy.

  • @ameet4625
    @ameet4625 4 роки тому +3

    I’m number 2

  • @Blinkuz
    @Blinkuz 4 роки тому +2

    Does it work with the 2020 version light system?

    • @twotvgames
      @twotvgames  4 роки тому

      I'm not sure dude, but I think so.

  • @supercc66
    @supercc66 Рік тому

    nice & simple tutorial

  • @caiowcosta
    @caiowcosta 3 роки тому +1

    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;

    • @twotvgames
      @twotvgames  3 роки тому +1

      Thanks for using our addon and you gave a nice tip :) :)

    • @caiowcosta
      @caiowcosta 3 роки тому +1

      @@twotvgames Fui ver seu github e você é br hahah que coincidência xD

    • @caiowcosta
      @caiowcosta 3 роки тому +1

      @@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!

    • @twotvgames
      @twotvgames  3 роки тому

      @@caiowcosta Sim man! kkk mais fácil pra comunicar então :)

    • @twotvgames
      @twotvgames  3 роки тому

      @@caiowcosta Boa ideia man, até por boas práticas seria melhor dessa forma acredito eu :D

  • @Cash_Online
    @Cash_Online 4 роки тому +1

    Can you give the colors numbers for the day, dusk, night , midnight pleas

    • @twotvgames
      @twotvgames  4 роки тому

      Hmm it's up to you but has a default colors, may you can use: cdn.discordapp.com/attachments/469340673162870805/729342250953211964/unknown.png

  • @julienlachaux7964
    @julienlachaux7964 4 роки тому +1

    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 ? :)

    • @twotvgames
      @twotvgames  4 роки тому

      Hmm, what unity version u are using? its simple to setup, check again how to configure renderer pipeline and check your global light.

    • @julienlachaux7964
      @julienlachaux7964 4 роки тому +1

      @@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 :/

    • @julienlachaux7964
      @julienlachaux7964 4 роки тому +1

      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 :/

    • @twotvgames
      @twotvgames  4 роки тому

      @@julienlachaux7964 hmm, you can download this project on my github, the test scene with asset works?

    • @twotvgames
      @twotvgames  4 роки тому

      @@julienlachaux7964 Do you have other scripts attached in your camera? If you test a sample scene with this asset works?.

  • @qxt-so3qi
    @qxt-so3qi 4 роки тому +2

    Im number one

  • @vitorh2058
    @vitorh2058 3 роки тому

    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 :))

    • @twotvgames
      @twotvgames  3 роки тому +1

      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.

    • @S3R43o3
      @S3R43o3 2 роки тому

      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

  • @tonywill
    @tonywill Рік тому +1

    Entendi foi nada tururuu