Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Unity The Dragon Crashers - 2D Sample Project is now available on the Asset Store

Discussion in '2D' started by rustum, Mar 16, 2021.

  1. rustum

    rustum

    Unity Technologies

    Joined:
    Feb 14, 2015
    Posts:
    124
    DragonCrashers.jpeg

    The Dragon Crashers - 2D Sample Project is now available on the Asset Store. Dragon Crashers is a vertical slice of an idle RPG game built with Unity’s native 2D tools.

    Download it from the Asset Store: Dragon Crashers - 2D Sample Project

    This demo is currently made in Unity 2020.2/2020 LTS and uses the 2D Renderer/Universal Render Pipeline (URP). To play the demo select “Dragon Crashers” from the top bar, followed by “Load Game Menu.”

    Please try it out and share your thoughts! Do let us know what works as expected, as well as what's missing, confusing or broken. As always if you run into any issues tell us all about it below!

    Known Issues:
    • Opening this project in 2021.1 will require the additional step of toggling all the Volumetric checkboxes for 2D lights that are using it. This will be resolved in an upcoming release of Universal RP 11.
     
    MarekUnity and APSchmidt like this.
  2. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    3,935
    Hi! and thank you for this. :)

    Are there any tutorials attached to that project?
     
  3. eduardooriz

    eduardooriz

    Unity Technologies

    Joined:
    May 28, 2018
    Posts:
    15
    We have a big blog post that will be an overview on the project scheduled for this Friday and a webinar scheduled for April which will be also a live hands-on the project. There will be also more content about the demo in the coming months.
     
  4. R1PFake

    R1PFake

    Joined:
    Aug 7, 2015
    Posts:
    351
    Hello, I noticed a small bug in the BattleGameplayManager.cs RemoveUnitFromEnemyTeamTargets

    In the for loop condition you use enemyTeamUnits.Count but inside the loop you access the aliveEnemyUnits, so the for loop condition should also use the aliveEnemyUnits.Count (similar to aliveHeroUnits.Count in the RemoveUnitFromHeroTeamTargets).

    Otherwise you get at index out of range exception if this method is called after the enemy is already dead (and removed from the aliveEnemyUnits), I noticed this during the end of the dragon boss fight

    It's hard to spot, because it will only happen if a hero dies after the enemy is already dead, which doesn't happen often in the demo battles.
     
  5. frommars94

    frommars94

    Joined:
    May 28, 2018
    Posts:
    8
    Great looking art and stuff!
    But i'm a nooby mobile game-creator and i have important question.
    Is this project viable for phones? On my Xiaomi Redminote 8 pro, this build shows 13-15 fps in game scene and main menu shows around 45-50 frames.
    Maybe im doing something wrong when building the project? In build settings i switched to ETC, and click to "Build". That's all. I want to be better in 2d skeletal and in 2D lightning system, and example project good start is, but fps on mobile makes me cry :(
     
    Last edited: Mar 21, 2021
  6. Andy-Touch

    Andy-Touch

    A Moon Shaped Bool Unity Technologies

    Joined:
    May 5, 2014
    Posts:
    1,028
    Hey!

    Ah yes, that is my fault! Thank you for pointing it out to us! :D

    Ill fix that for a near future update. :)
     
  7. Andy-Touch

    Andy-Touch

    A Moon Shaped Bool Unity Technologies

    Joined:
    May 5, 2014
    Posts:
    1,028
    I tested the project on my early 2018 Samsung S9 and it was getting 40+ fps throughout.

    I am not familiar with Xiaomi devices but ill enquire internally to see if I can get one to test on. :)
     
    AlanPereiraArt likes this.
  8. frommars94

    frommars94

    Joined:
    May 28, 2018
    Posts:
    8
    that would be great! Thank you :)
     
  9. Andy-Touch

    Andy-Touch

    A Moon Shaped Bool Unity Technologies

    Joined:
    May 5, 2014
    Posts:
    1,028
    Although, the wait time might take longer than usual; Pandemic, Working From Home, Health and Safety Precautions etc. :eek:
     
    frommars94 likes this.
  10. Mokofr

    Mokofr

    Joined:
    Jul 23, 2013
    Posts:
    3
    Hey everybody,

    I was wondering why the heat distortion showcased in the video is not visible for me?
    Did I encounter a bug here or is it currently supposed to be this way without distortion?

    I am very much looking forward to working with this new render texture for shader graph that you mentioned!
     

    Attached Files:

  11. KrisSchnee

    KrisSchnee

    Joined:
    Mar 9, 2014
    Posts:
    15
    I'd like to try this project, but Unity failed hard when I tried to do so. I created a project, then updated to the latest version of Unity and converted the project to that. I downloaded this package and imported it. I got errors saying that it couldn't compile (see screenshot) and then it couldn't run. Even after I deleted literally everything from the Assets directory and made a blank scene, just to start over, I still couldn't run that because I was getting the same compiler errors. Maybe it had to do with the auto-loading packages (which I can't delete) being outdated yet not properly updating when I converted to a new project?

    Edit: No, it's not just the version. I created an all-new project in the latest Unity version, and imported the whole Dragon Crashers package. Painfully slowly. I get:
    Code (CSharp):
    1. An error occurred while resolving packages:
    2.   One or more packages could not be added to the local file system:
    3.     com.unity.render-pipelines.universal: Built-in package [com.unity.render-pipelines.universal@10.3.1] cannot be found
    4. Library\PackageCache\com.unity.device-simulator@2.2.4-preview\Editor\SimulatorApplicationSettings.cs(33,87): error CS1061: 'ApplicationSimulation' does not contain a definition for 'OnLowMemory' ...
    5. Import parameters got modified during import
     

    Attached Files:

    Last edited: Apr 5, 2021
  12. eduardooriz

    eduardooriz

    Unity Technologies

    Joined:
    May 28, 2018
    Posts:
    15
    Hi, Maybe you are referring to the video that we made for our GDC 21 keynote? In that clip we show the 2021.1 feature CameraSortingLayertexture being used in the smoke shader to create the distortion. You can find more info about it in this discussion
     
    APSchmidt likes this.
  13. eduardooriz

    eduardooriz

    Unity Technologies

    Joined:
    May 28, 2018
    Posts:
    15
    I would recommend to follow the steps from the blog post, basically make sure to use Unity 2020.2 or 2020 LTS (not the latest version yet), create a new 2D project and then import the asset
     
    APSchmidt likes this.
  14. frommars94

    frommars94

    Joined:
    May 28, 2018
    Posts:
    8
    Will the upcoming webinar be avialable later on youtube or another platform?:)
     
  15. respectyoda

    respectyoda

    Joined:
    Apr 27, 2018
    Posts:
    9
    I was wondering about this as well! I did register for the webinar, but if for some reason I am not able to attend, I hope the webinar is recorded and uploaded to some platform such as YouTube.
     
    frommars94 likes this.
  16. eduardooriz

    eduardooriz

    Unity Technologies

    Joined:
    May 28, 2018
    Posts:
    15
    We will probably embed the recording in the original Dragon Crashers blog post, to be decided, but most likely that
     
    respectyoda likes this.
  17. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    3,935
    Hi,
    2020.2 is not available in the Hub, it can be installed only from the archive page, as for 2020 lts (not the latest version), only the latest version (2020.3) is available in the Hub... So which one would be best? The asset store mentions "2020.2.7 or higher". :)


    I loaded the project in the latest LTS (2020.3.3f1) and played it, no problem at all and the fps is better. ;)
     
    Last edited: Apr 8, 2021
  18. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    3,935
    Hi,

    I'd like to know, among all the packages that are installed in the project, which ones were actually used to make the project, beside 2D Renderer/URP?

    Here is the list of all the installed packages:

    Capture d’écran_2021-04-10_17-29-04.png

    Thank you! :)
     
  19. duiattorney

    duiattorney

    Joined:
    Apr 12, 2021
    Posts:
    1
    I really like it . Where can I find this game
    Replied By duiattorney
     
  20. eduardooriz

    eduardooriz

    Unity Technologies

    Joined:
    May 28, 2018
    Posts:
    15
    Hi. Many of those are usually hidden since they are just dependencies (for example 2D path), apart from the 2D features (except Pixel perfect which was not used in this project), Burst was used to boost performance of 2D animation, Cinemachine, Text mesh Pro, Timeline, Universal RP, Shader Graph, Unity UI, Post Processing were used to create the demo visuals, shaders, cameras, animation sequences, etc.
     
    APSchmidt likes this.
  21. APSchmidt

    APSchmidt

    Joined:
    Aug 8, 2016
    Posts:
    3,935
    Thank you. :)

    Three of them are preview packages, hidden if we do not enable preview packages in the game settings: Device Simulator, Collections, Newtonsoft Json and Performance testing API. Newtonsoft Json and Performance testing API are used by Collections, this one using Burst. Are they useful for the project?

    Also, why is it called "Lost Crypt..."? Is it part of the previous Lost Crypt sample project?

    Capture d’écran_2021-04-12_17-46-34.png
    And what is this nasty error message I'm getting on import?
    Code (CSharp):
    1. Import parameters got modified during import
    Thanks for bearing with me. :)
     
    Last edited: Apr 12, 2021
  22. Andy-Touch

    Andy-Touch

    A Moon Shaped Bool Unity Technologies

    Joined:
    May 5, 2014
    Posts:
    1,028
    Hey folks! Thank you for coming to the 2D Webinar yesterday!

    We are currently reviewing and editing the footage (We recorded both locally and via Zoom) and will be uploading it to YouTube when it is ready. :) I want to ensure that both the video and audio quality is the best it can be before sharing it!

    Im also going to look through the questions submitted during the session (almost 100!) and then filter them to common topics and will share them here for others to read. :)
     
    Last edited: Apr 15, 2021 at 10:43 AM
    respectyoda, Ted_Wikman and MelvMay like this.
  23. Andy-Touch

    Andy-Touch

    A Moon Shaped Bool Unity Technologies

    Joined:
    May 5, 2014
    Posts:
    1,028
    - Device Simulator is mostly optional; but we used it to test the render camera on different mobile screen sizes.
    - Collections and Burst were used in conjunction with Jobs for runtime Sprite Rigging calculation performance. You could remove these as they are optional (AFAIK); however the performance would be much slower!
    - Im not as familiar with Newtonsoft Json and Performance Testing API packages.

    Doh! We copied over the RM Inspector from Lost Crypt and had a minor oversight. Human error! :oops: Ill get that fixed for the next update.

    The project is compatible with 2020.2.7 and I noticed you are using 2020.3; im working on upgrading the project to 2020 LTS for a future update and will try and iron out any import issues like that. :D Thank you for reporting it to us!
     
    Last edited: Apr 15, 2021 at 10:52 AM
    APSchmidt likes this.
  24. respectyoda

    respectyoda

    Joined:
    Apr 27, 2018
    Posts:
    9
    I was not able to attend the webinar, but I am looking forward to seeing the footage! Please make sure the footage either has captions or can be automatically captioned by YouTube.
     
unityunity