Answer the question
In order to leave comments, you need to log in
What are the best practices for unity3d?
Not so long ago I decided for the soul to start developing games for Unity3d. It seems that everything is clear, but do not want to make childish mistakes.
First of all, architectural patterns are of interest. How to solve the problem in large projects "the manager came and now we don't get points for the victory, but experience." How to achieve flexibility.
Answer the question
In order to leave comments, you need to log in
devmag.org.za/2012/07/12/50-tips-for-working-with-unity-best-practices/
Develop code with components to make it easier to maintain.
Introduce interfaces and communicate through them (we are not tied to the implementation, only to the functionality).
Threat There is no single correct solution, it all depends on the specifics of the project.
1. Don't use multiple inheritance from MonoBehavior:
class SomeBaseBehavior : MonoBehavior
{...}
class SomeConcreatBehavior : SomeBaseBehavior
{...}
GetComponent<...>();
SendMessage(Wrap<T> valueRequest)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question