Skip to content

OOP vs. Composition

antfarmar edited this page Dec 13, 2015 · 1 revision

Should one be using Object-Oriented Programming when programming in Unity?

  • Component scripting isn't about Object-Oriented Programming, it's about programming for Unity's design.
  • Development for Unity is in mostly procedural in nature, not object-oriented.
  • Unity is Component based. You're working with collections of data with behavior attached.
  • Components look like objects, but encapsulation and identity protection are not at all part of the architecture.
  • Trying to force Unity to always adhere to proper OOP standards is not practical, and actually not possible.

Clone this wiki locally