top of page
Search

Day #33 Unity Junior Programmer

Writer: Us Smurf
Us Smurf
May 12, 2023
2 min read

Today I learned about the basics of object-oriented programming (OOP) paradigm and its four associated principles: encapsulation, inheritance, polymorphism, and abstraction. These four principles work together to create organized and efficient code that is easy to maintain and extend.


Encapsulation is the practice of hiding the internal workings of a class from the outside world and providing access only through well-defined interfaces. This helps to prevent unintentional misuse of a class and allows for changes to be made to the internal implementation without affecting the rest of the codebase.


Inheritance is the practice of creating new classes based on existing classes, inheriting their properties and methods, and modifying or adding to them. This allows for code reuse and helps to organize related classes in a hierarchy.


Polymorphism is the ability of objects of different types to be treated as if they were of the same type. This allows for more flexible and extensible code, as different objects can be used interchangeably in the same context.

Abstraction is the practice of defining a simplified interface for complex systems. This allows for easier understanding and use of complex systems, as well as easier modification and maintenance.


In another tutorial, I learned how to set up the scene flow and exit flow for a Unity application. By calling the appropriate start-up methods in the initialization sequence of the app and loading the next scene when triggered by an event, the user experience can be streamlined and intuitive.


In yet another tutorial, I learned about data persistence and how to preserve information across different scenes in a Unity application. By using the Unity DontDestroyOnLoad method and implementing static classes, singletons, and static variables, important data can be saved and accessed throughout the application session. This can be useful for retaining user preferences, progress, and other important information.


Overall, these concepts and skills are foundational to developing well-organized, efficient, and maintainable code in Unity and other object-oriented programming environments.

 
 
 

Recent Posts

See All
Unity AR Development 3

Today, I had the opportunity to delve into the exciting world of AR development through a tutorial that focused on deploying AR projects...

 
 
 

Comments


Crylix.exe

  • alt.text.label.Instagram
  • alt.text.label.LinkedIn

©2023 by Crylix.exe. Met trots gemaakt met Wix.com

bottom of page