Unity 1
Unity 1
UNITY I
Time: 3 Hours Max. Marks: 70
SECTION – A
I. Answer any FIVE questions. Each question carries TWO marks. [2x5=10]
1.Explain what Unity 3D is?
Unity 3D is a game development engine used to create 2D and 3D interactive content,
including games and simulations. It supports cross-platform development and uses C# for
scripting, offering advanced graphics and a vast asset store for resources.
Practical Classes in C#
C# C
Object-oriented Procedural
Platform: Platform:
Extension methods in C# are a way to add new methods to existing types without modifying
their source code.
Syntax:
‘this’
SECTION – B
II. Answer any FOUR questions. Each question carries five marks. [5x6=30]
1. Cross-Platform: Supports development for PC, consoles, mobile, VR/AR, and web.
2. User-Friendly: Intuitive interface and tools suitable for beginners and experts.
3. Real-Time Rendering: Provides high-quality graphics and real-time rendering capabilities.
4. Asset Store: Access to a vast library of assets, plugins, and tools to speed up development.
5. C# Scripting: Uses C# for scripting, offering powerful and flexible programming options.
6. Strong Community: Large user community and extensive resources for support and learning.
1. Prepare the File: Ensure it's in a compatible format (e.g., `.fbx`, `.obj`).
2. Open Unity: Start or open your Unity project.
3. Import: Drag and drop the file into the Project window or use Assets > Import New Asset....
4. Adjust Settings: Configure import settings in the Inspector.
5. Add to Scene: Drag the asset into the **Scene** view or **Hierarchy**.
6. **Position and Use**: Adjust the object's placement and apply necessary components.
1. Regular Class: Standard class with fields, properties, methods, and constructors.
2. Abstract Class: Cannot be instantiated; serves as a base with abstract methods.
3. Static Class: Contains only static members; cannot be instantiated.
4. Partial Class: Allows splitting class definition across multiple files.
5. Sealed Class: Cannot be inherited; prevents further subclassing.
6. Derived Class: Inherits members from a base class, allowing reuse and extension of
functionality.
SECTION –C
III.Answer any FOUR questions. Each question carries TEN marks. [10x4=40]
15. What are the main differences between UE4 and Unity 3D?
UE4 UNITY 3D
C++ and Blueprint: Uses C++ and visual C# Scripting: Easier to learn and use.
scripting.
Steeper Learning Curve: More complex User-Friendly: Gentler learning curve.
for beginners.
It is designed to provide a common foundation for derived classes, containing both fully implemented
methods and abstract methods that must be implemented by those derived classes.
This structure ensures consistency and enforces specific behaviors across different classes that inherit
from it.
Eg:
#region
set { id = value; }
#endregion
1. Efficient Management: Packages and loads assets separately from the main app.
2. Dynamic Updates: Allows adding new content without updating the whole app.
Prepare the File: Ensure the object is in a supported format (e.g., .fbx, .obj).
Drag and Drop: Drag the file directly into the Unity Project Panel.
Import Settings: Adjust import settings in the Inspector for the object, if necessary.
Place in Scene: Drag the imported object from the Project Panel into the Scene view to add it
to the game.
Apply Changes: Make any additional modifications or apply materials as needed.
C# is pronounced "C-Sharp".
It is an object-oriented programming language created by Microsoft that runs on the .NET
Framework.
C# has roots from the C family, and the language is close to other popular languages like C+
+ and Java.
The first version was released in year 2002. The latest version, C# 12, was released in November
2023.
C# is used for:
Mobile applications
Desktop applications
Web applications
Web services
Web sites
Games
VR
Database applications
And much, much more!
It is one of the most popular programming languages in the world
It is easy to learn and simple to use
It has huge community support
C# is an object-oriented language which gives a clear structure to programs and allows code to
be reused, lowering development costs
As C# is close to C, C++ and Java, it makes it easy for programmers to switch to C# or vice
versa
****************************