Unity Tips and Tricks (Unity Coding Tips and Tricks) Part III

 In our previous article we presented different unity tips and tricks related to Unity scene organization, managmgent and inspector etc. In this article we have gather differnt coding tips and tricks form twitter.

Unity3d Coding Tips and Tricks






Unity Tips and Tricks (Scene Tips and Tricks) Part II

In our previous article, we gather and present kinds of tips and tricks from twitter but from now, we have a plan to present Unity tips and trick base on categorization (like scene, coding, editor , build etc). Therefore, in this article we are sharing with you some of the tips and tricks related to unity scene management and inspector etc. (we have repeated some of the tips from our previous post).

Scene Tips and Tricks



See Also:  Unity Tips and Tricks Part I

Unity Tips and Tricks Part I

Want some collection of unity tips and tricks, here we go:

Particle System

Organizing prefab

Animation Trick

Context Menu and Custom Classes

Component Drag and Drop

Two Inspector

Viewports on Touch

Replace Built-inComponents with lossing settings

Unity Coding tricks

Scene Organization

Unity iOS Remote

Follow Object In Scene

Data Saving Techniques for Unity3d Application

Data is one of the integral element in modern applications of Games, VR/AR or gamification. Unity3d, the most famous and most widely use game-engine provide you different options to save your game data in different ways. Once on a forum, a programmer asks the question that how to save data in unity3d?? and I  answered him with different options. I guess it is necessary to share the detail of the answer for future users. So, here is the list of different options for saving data for unity application. (we will like to update this article to add more techniques if you know anyone).



1. Platform-independent:

One way of saving data in Unity3D in a Platform-independent way is to use the PlayerPrefs class.


Here is the example to set a string and later get it through PlayerPrefs class.


Where the Data Store? Here is the chart:
Platform
Data stored at
Windows
Registry under HKCU\Software\[company name]\[product name] key
macOS
~/Library/Preferences folder, in a file named unity.[company name].[product name].plist, 
Win Phone 8
 application's local folder
WebGL
browser's IndexedDB
Linux
~/.config/unity3d/[CompanyName]/[ProductName]
Android
/data/data/pkg-name/shared_prefs/pkg-name.xml



* company and product names are the names set up in Project Settings

Reference Links:

·         PlayerPrefas Documentation

·   Tutorial PERSISTENCE - SAVING AND LOADING DATA using DontDestroyOnLoad, PlayerPrefs, and data serialization Video Tutorial by unity.

2. Server Side:

You can also use a Server for saving data (like a combination of PHP and MySQL Database). You can use it to save Score Data, user profile, etc., Learn More From Unity Wiki
You can also use third party solution like back4App and firebase.



3. Embedded Database:

SQLite (an embedded database for your app) is another great option for you get the Free Package, it is simple and easy (and my favorite) if you know SQL.

Artificial intelligence, Some Quotes\Tweet Need Your attention!

According to merriam webster, AI is

  1. a branch of computer science dealing with the simulation of intelligent behavior in computers
  2. the capability of a machine to imitate intelligent human behavior.
  Undoubtedly, Artificial intelligence is changing the game and nations are trying hard and investing billions dollars to excel in AI. No matter you are common man or an expert of AI, you should familiarize yourself with AI and its recent developments. Therefore, we gather some of the tweets and quotes from different source so that it will teach us the current market status, use, depth and future of AI.




Why AI:

Russian President Vladimir Putin: Artificial intelligence is the future, not only for Russia, but for all humankind. It comes with colossal opportunities, but also threats that are difficult to predict. Whoever becomes the leader in this sphere will become the ruler of the world”.


Fabio Moioli"Artificial Intelligence will be everywhere in our future world, from clouds to dust, from things to beings."


Glimpse of AI:


Scope of AI:

AI Sub-fields:


AI Market: 

AI & Automated Wars:


AI with Uncountable Opportunities: 





Free Web & Mobile App Development Training in Karachi


Want to be a world-class Software developer? But
  • You are a novice in programming and want to enter in the arena of software development?
  • You want to be the master of state of the art web technologies?
  • Want to be a master in Software, Web, and Mobile App Development?
  • Searching for well qualified and loyal faculty (skilled teachers in their respective development fields)?
  • Willing to earn the best training and Free. Yes, its Free, Free, Free?
  • You want your own choice of class/practice timing?
  • You have inspired with mobiles and web applications that you are using?
  • You want to be the part of billion-dollar ($,$$$,$$$,$$$) industry?

Important Announcement! Stay at Home but get online admission in PIAIC now - No fee for first quarter

Visit Saylani Mass IT Training Offical Web for Latest News

Unity3d Training and Certification in Pakistan

 Unity3d, the amazing cross platform game-engine developed by Unity Technologies, helping thousands of users to develop games, simulations, architecture, gamification, VR, Mobile and Console applications. In April 2016, Unity announced it own certification program with this objective and background:

In talking with members in the Unity community, one of the common, recurring themes we have encountered is a need for a way to reliably assess an individual’s Unity knowledge and skills against a benchmark of proficiency.

In an effort to respond to all of these needs, we developed the Unity Certification Program, and at GDC 2016 we were thrilled to announce that the first level, Unity Certified Developer, is now available!


In order to make accessible its certifications in different countries,  Unity Technologies has partner with different training institutes. You can find its partner list here. Initially there was no affiliated partner exists in Pakistan but yesterday, i received an email from unity and I am pleased to share with you that, CETA has become the first and only Unity authorized institute in Pakistan.

"We are proud to announce our first Authorized Training Center in Pakistan: Center for Enterprise and Technology Advancement (CETA). You can now learn and get certified all at the same place!"

Now congrats for all Unity fans in Pakistan, CETA is giving Game Development Training in collaboration with Unity for the first time in Pakistan. Remember, its certification valid only for 2 years but  it is expected that it will teach you a lot as its course-ware seems comprehensive.


Unity3d Interview questions

Unity3d one of the famous and most amazing cross-platform game-engines that provides a great environment for game development. It is widely used and there are significant opportunities available for game development using this technology. If you want to avail these opportunities then, you must have to prepare yourself for technical questions and this is the reason for this post.

      After making some initial search and an interview experience, we have gathered some of the questions for you that you can consider before conducting or giving an interview as these questions addressing different aspects of unity game engine including programing, unity features and shaders etc. Remember this list does not include all the necessary questions. We will try to update this article in order to make a valuable resource. You can comment to share your interview question so that we can improve this source for our reader. In the future, we have also a plan to write the answer of these questions:

Advice for Junior Programmer

            Neither I am an expert programmer nor I have too much experience but I love to code and want to improve my skills. One of the way to achieve my this objective is, sharing my knowledge and experience with others. Therefore, here are some of the rules which I have adopted and it can be helpful for Junior or new Programmers. Honestly writing, I am still struggling to act on my own rules :). In my opinion! these rules are difficult but it will finally help you to become a good programmer:

  1. Don’t copy-paste code ever, even you know the Syntax/Logic. Write Yourself Always.
  2. Develop or Contribute to Open Source Projects.
  3. Join Programming Forums Stack overflow, Codeproject, etc. Spend some time there to solve problems.
  4. Start Building Robust Portfolio (preferably research-based)
  5. Write a Blog, share your hard-work and experience (You even can make money online through it)
  6. Prefer Good Mentor over Big Company. A good mentor will develop your skills.
  7. At first, don’t ask everything from a senior, try yourself first.
  8. Don’t allow seniors to write code for you, get instruction but write yourself.
  9. Code for other developers. I mean code in a way that other programmer can understand it easily.
  10. Use comments always. You will forget your own code next month. 
  11. Always welcome new technologies. Don't hesitate to work on new techs.
  12. Aim every day, love your work.
  13. If you don’t like the working environment or find a good opportunity then, Quit. Don’t waste your time.

Is Programming for everyone?

From my personal experience of teaching and as a programmer and lead (for particular time period), I found that programming is not for everyone. but this is usual and common, as

  • Not everyone can be a Doctor
  • Not everyone can be a Mathematician (this is 100% true for myself :)
  • Not everyone can be an Architect
  • Not everyone can be a Lawyer
  • Not everyone can be a Leader etc., etc.,

        Therefore, no exception for programming field. It is a skill that require motivation, hardworking, dedication along with Good Mentor/Teacher and will. There are significant programmer who are self-taught and there are also significant programmer who don;t know how to program despite good teaching and mentoring. Some people learn programming syntax easily but become fail to provide/think solution of a particular problem. Some people even fail to learn syntax and afraid with the syntax.

Most demanding Programming Language

Which is the most demanding programming language?
Or Which language is so popular?
Or Which programming language should I learn in order to start make money quickly? And so on ..
These are the questions which novice programmers usually ask on different forums everyday. Certainly, experience programmers are also interested to know which language is demanding but actually they are well aware of the fact that most demanding programming language is Javascript. [Remember: you should not confuse with Javascript and Java, Java is a separate language (which is also popular), although names are almost similar but comparison of Java and JavaScript is like comparison of car and carpet].  Clearly, we are not here to discuss what is Javascript? you can find the details here.
Now the question is Why Javascript is so demanding? Lets ask this question from the world largest, and most trusted online programming community Stack Overflow.
It found No. 1 at Stackoverflow 2017 Survey actually from last 5 years, JavaScript on Top.
Most popular programming language (source: stackoverflow)

As Stackoverlfow 2017 stated:

Immediately Start Earning with Programming

Most of the novice are willing to learn and earn quickly through programming. So I decided to provide them step by step solution. Novice in the programming field is want to know that which programming language will allow them to earn immediately.?



My simple answer to them, start with HTML and CSS. HTML/CSS is easy to start with but remember, it is not a programming language but actually a rendering language. HTML allows you to structure web pages and it will render your desired content on the web page while CSS use to design your web page (It is actually a makeup for your HTML).