We Help You To Renovate Your Blogger Blog With Awesomeness!

Sunday, June 12, 2016

  • 50+ Free Assets From Unity AssetStore Essential for a Game Developer

     

     

     

    Unity Assets List :


    Complete Projects :

    1. Color Switch Clone : Must have for the beginner, you will learn a lot form this assets.
    2. C# game examples : Learn Unity game coding by example.
    3. SPRING PONG : If you want to learn, how to create professional 2d unity game, this is very helpful.
    4. AssetBundle Manager & Example Scenes : This package contains the AssetBundle Manager and a series of Simple Example.

    3D Models :

    1. Mini Mike’s Mini Metros : An urban collection of over 400 models for building a small city.
    2. Free Rocks : Add realistic rocks to your game.
    3. Nature Starter Kit 2 : Create your own forests and meadows with this free asset bundle!
    4. Destroyed City FREE : Very helpful while prototyping.
    5. Simple Modular Street Kit : With this assets, its very easy to create roads in unity.
    6. Planet Earth Free : The #1 Planet Earth Package.
    7. Town Houses Pack : Collection of highly detailed low-poly 3d buildings.
    8. Free SciFi Fighter : Beautiful Spaceship Fighter Model.
    9. “Unity-chan!” Model : The cute 3D model girl “Unity-chan!” (Kohaku Ootori) has come from the Japanese game scenes!

    Animations :

    1. TakeDown Animations : 12 Takedowns animations package.
    2. Magic Pack : 55 awesome animation from mixamo.
    3. Animated Horse : Beautifully Animated Horse.
    4. Warrior Pack Bundle 2 FREE : This asset contains 3 animations for each of the 4 warriors in the pack.
    5. Huge FBX Mocap Library part 1 : It contains 2,534 mocap FBX animations all organized into groups -1.
    6. Huge FBX Mocap Library part 2 : It contains 2,534 mocap FBX animations all organized into groups -2.
    7. Huge FBX Mocap Library part 3 : It contains 2,534 mocap FBX animations all organized into groups -3.
    8. Melee Axe Pack : 55 mixamo animations for axe-wielding, skull bashing, dragon slaying barbaric types.

    Sky:

    1. 2D Sky FREE : 2D Sky FREE contains low-resolution textures and a demo scene.
    2. Sky5X One : A set of five free beautifull skyboxes.

    Cameras :

    1. RTS camera : Best Camera assets in Unity AssetStore.
    2. EZ Camera Shake : The EZ Camera Shake system provides a versatile implementation of procedural camera-shaking animation.
    3. GhostFreeRoamCamera : Free flying ghost roaming camera, in a FPS style.

    AI :

    1. RAIN AI for Unity : A very powerful A* plugin for Unity 4 & 5. Uses tree binding.
    2. Unity Movement AI : A library of steering behaviors to help your NPCs move around your game.
    3. TopDown AI : This is an example of Top Down Shooter AI for the Unity game engine.

    Scene Creation :

    1. ProBuilder Basic : Building prototype levels easily.
    2. UPA Toolkit: Pixel Art Editor : Making Pixel Art inside Unity.

    Testing Tools:

    1. Unity Test Tools : Unity Test Tools allows you to test Unity content.

    Scripting :

    1. LeanTween :  An efficient tween engine for Unity  that offers a many  features. It is very useful if you want to add beautiful tween effect to your object in your game.
    2. TouchScript : TouchScript is a multitouch library for Unity. TouchScript makes handling complex gesture interactions on any touch surface much easier.
    3. Spawner – Free : Very easy simple spawner system for unity.
    4. EZ Object Pools : The EZ Object Pools system is designed to be simple to set up and easy to integrate into existing projects.
    5. Log Viewer : Using this tool you can easily check your editor console logs inside the game itself! even on mobile.
    6. Ink Unity Integration : Ink is the open source narrative scripting language developed by Inkle.
    7. Google Maps for Unity : Google Maps for Unity makes it very easy to load up a map from google and use it as a texture in your game.

    Lighting:

    1. SpriteLights : Beautiful Light Asset.
    2. Day and Night Cycle : A simple day and night cycle system.

    Shaders :

    1. Toon Shader Free : A free toon shader – render your 3d models in a toon style.
    2. Gem Shader : It’s perfect for shiny jewelry or pickups.
    3. Free MatCap Shaders : 9 free MatCap-like Shaders!
    4. Lava Flowing Shader : Lava Flowing Shader allows you to create lava flowing effect on mesh/plane.
    5. Sprite Lights : SpriteLights contains a set of shaders which can render thousands of Physically Based lights in a single batch.

    Plugins :

    1. Mobile Native PopUps : Plugin will allow you to add native platform popups and preloaders in your project.
    2. Ultimate Unified API : The Reign Ultimate Unified API is a cross-platform, unified API for the Unity game engine.

    Threading :

    1. Thread Ninja : This Assets helps you write multithread coroutines with very simple script, Very easy to use.


    Audio :

    1. SYNTH BOX : Synth Box is several game genre audio loops.

    Effects :

    1. Realtime Reflections : It is comprehensive solution to all your reflection needs.
    2. Cinematic Image Effects pre-release : A set of image effects.

    Inventory Management:

    1. Inventory System : The Inventory System & Editor Extension is a complete Inventory.
  • Friday, April 15, 2016

  • Conevert Datatable to Object Array C# ASP.Net / ASP MVC

    We need to convert the Datatable dt to Array of objects StudentListResponse



     DataTable dt = new DataTable();
     SqlDataAdapter da = new SqlDataAdapter(command);
     da.Fill(dt);

                var list = dt.AsEnumerable()
    .Skip(1)
    .Select(dr =>
            new StudentListResponse
            {
                id = dr["PKStudentID"].ToString(),
                name = dr["StudentName"].ToString(),
                profile_pic = dr["PhotoURL"].ToString()
            }
            ).ToList();



                StudentListResponse[] students = list.ToArray();

    Its very simple as explained in the previous post to convert Datatable to Object list. Just convert the list to Array as highlighted above.



  • Conevert Datatable to Object List C# ASP.Net / ASP MVC



      DataTable dt = new DataTable();
      SqlDataAdapter da = new SqlDataAdapter(command);
      da.Fill(dt);


                var list = dt.AsEnumerable()
    .Skip(1)
    .Select(dr =>
            new StudentListResponse
            {
                id = dr["PKStudentID"].ToString(),
                name = dr["StudentName"].ToString(),
                profile_pic = dr["PhotoURL"].ToString()
            }
            ).ToList();



    Here dt is the DataTable Holds data.
    And StudentListResponse object list is created.


  • Friday, August 7, 2015

  • Android Studio - Rendering Problems The following classes could not be instantiated: - android.support.v7.internal.widget.ActionBarOverlayLayout

    Fix res/values/styles.xml  :



    <style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar"/>
     
    Detailed explanation as requested: Theme.AppCompat.Light.DarkActionBar is a subclass of the superclass Base anyway.

  • Android studio Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.



     Android studio Error occurred during initialization of VM Could not reserve enough space for object heap Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.

     

    For Android Studio 1.3 : (Method 1)

    Step 1 : Open gradle.properties file in your Android Studio project.
    Step 2 : Add this line at the end of the file
    org.gradle.jvmargs=-XX\:MaxHeapSize\=256m -Xmx256m

    Above methods seems to work but if in case it won't then do this (Method 2)

    Step 1 : Start Android studio and close any open project (File > Close Project).
    Step 2 : On Welcome window, Go to Configure > Settings.
    Step 3 : Go to Build, Execution, Deployment > Compiler
    Step 4 : Change Build process heap size (Mbytes) to 1024 and Additional build process to VM Options to -Xmx512m.
    Step 5 : Close or Restart Android Studio.



  • Friday, January 2, 2015

  • Full screen Overlay using CSS only- CSS Only Modal Popup

    Full screen Overlay Effects 




    When you search for a solution for fullscreen overlay, most website provide solutions using JavaScript or jQuery. The following solution is using only CSS and not using any JavaScript of jQuery. Here we are going to create a pop-up window that overlays an existing html page and disabling all links and bringing into focus on the pop up window.






     Sometimes you need your entire browser window with a black tint in the background and make a popup at the center of the screen. Normally this technique is used for displaying a login window without moving from existing page or displaying a video, when a user clicks on a link or button in a web page.



    Add this to your Page

     <style>
            .button {
                width: 150px;
                padding: 10px;
                background-color: #2d57f8;
                box-shadow: -8px 8px 10px 3px rgba(0,0,0,0.2);
                font-weight: bold;
                text-decoration: none;
            }

            #cover {
                position: fixed;
                top: 0;
                left: 0;
                background: rgba(0,0,0,0.6);
                z-index: 5;
                width: 100%;
                height: 100%;
                display: none;
            }

            #popupScreen {
                height: 380px;
                width: 340px;
                margin: 0 auto;
                position: relative;
                z-index: 10;
                display: none;
                background: url(login.png) no-repeat;
                border: 5px solid #cccccc;
                border-radius: 10px;
                background-color:rgb(245,245,245);
            }

                #popupScreen:target, #popupScreen:target + #cover {
                    display: block;
                    opacity: 2;
                }

            .cancel {
                display: block;
                position: absolute;
                top: 3px;
                right: 2px;
                background: rgb(245,245,245);
                color: black;
                height: 30px;
                width: 35px;
                font-size: 30px;
                text-decoration: none;
                text-align: center;
                font-weight: bold;
            }
        </style>



    HTML Code

    place anywhere 
      <div align="center"><a href="#popupScreen" class="button">Click here for Dialog</a> </div>
                        <div id="popupScreen">
                            <a href="#" class="cancel">&times;</a>

                       
                            <h2>Hi there</h2>
                        </div>
                        <div id="cover"></div>




    ×

    Hi there

  • Saturday, December 6, 2014

  • Prepare web.config for HTML5 and CSS3 HTTP Error 404.3 - Not Found

    HTTP Error 404.3 - Not Found
    The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
    The problem is that the IIS doesn’t know how to serve these new files unless we tell it how. This can be easily done in the web.config’s <system.webServer> section by adding the following snippet:
     
     
    <staticContent>
        <mimeMap fileExtension=".mp4" mimeType="video/mp4" />
        <mimeMap fileExtension=".m4v" mimeType="video/m4v" />
        <mimeMap fileExtension=".ogg" mimeType="video/ogg" />
        <mimeMap fileExtension=".ogv" mimeType="video/ogg" />
        <mimeMap fileExtension=".webm" mimeType="video/webm" />
    
        <mimeMap fileExtension=".oga" mimeType="audio/ogg" />
        <mimeMap fileExtension=".spx" mimeType="audio/ogg" />
    
        <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
        <mimeMap fileExtension=".svgz" mimeType="image/svg+xml" />
    
        <remove fileExtension=".eot" />
        <mimeMap fileExtension=".eot" mimeType="application/vnd.ms-fontobject" />
        <mimeMap fileExtension=".otf" mimeType="font/otf" />
        <mimeMap fileExtension=".woff" mimeType="font/x-woff" />
    </staticContent>
     
     
    The above snippet incl

    udes support for most video, audio and font file types used by HTML5 and CSS3.
  • Get language and country from a browser in ASP.NET

    Resolve the culture

    Splitted the functionality up into two methods. The first one resolves the CultureInfo based on the browsers language.
    public static CultureInfo ResolveCulture()
    {
      string[] languages = HttpContext.Current.Request.UserLanguages;

      if (languages == null || languages.Length == 0)
        return null;

      try
      {
        string language = languages[0].ToLowerInvariant().Trim();
        return CultureInfo.CreateSpecificCulture(language);
      }
      catch (ArgumentException)
      {
        return null;
      }
    }


    Resolve the country

    The next method uses the ResolveCulture()method above to create a RegionInfo object. The RegionInfo contains all the country information needed such as ISO code, EnglishName, NativeName and DisplayName.
    public static RegionInfo ResolveCountry()
    {
      CultureInfo culture = ResolveCulture();
      if (culture != null)
        return new RegionInfo(culture.LCID);

      return null;
    }





  • Sunday, October 26, 2014

  • How to convert DateTime to Date VarChar





    This line of code do the job


    CONVERT(varchar(10), [MyDateTimecolumn], 20)
     
     
    eg: select PKID,CONVERT(varchar(10), createdDate, 20) from tempTable
     
     
     
     
     
  • Best way to check if a Data Table has a null (SQL) value in it


    Hostgator Offers


     Check Whole table



    If you want to check if a null value exists in the table you can use this method:
    public static bool HasNull(this DataTable table)
    {
        foreach (DataColumn column in table.Columns)
        {
            if (table.Rows.OfType<DataRow>().Any(r => r.IsNull(column)))
                return true;
        }
    
        return false;
    }
     
     
    and use 
     
    table.HasNull(); 


     where ever you need


     Checking Specific column


    Compare the value of the column to the DBNull.Value value to filter and manage null values in whatever way you see fit.

     
     
     
     
    foreach(DataRow row in table.Rows)
    {
        object value = row["ColumnName"];
        if (value == DBNull.Value)
            // do something
        else
            // do something else
    }
     
     
    Check More About DBNull Class
     
     
     
     
  • Copyright @ 2013 Code Snippets.