Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
12 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jul 05, 2017 at 08:59 AM by Hellium for the following reason:

Question is too broad and does not target Unity specifically. Please, learn basic programming before going into game creation with Unity. Unity Answers is not designed to teach beginners how to code.

avatar image
0
Question by james82 · Jul 05, 2017 at 05:50 AM · classesapi

what different between my own class and unity api class?

when i need to use my own classes? when i need to use unity scripting api classes? why i have create my own classes?how can i know which class i need to use? How can I identify the functionality of each class so that I can choose?how i can create my own class? when I type my class, it never exist before like unity script api class.

  using System;
  using UnityEngine;
  
  public class Car {
        
  }

class 'car' never exist before.
if i type:

  using System;
  using UnityEngine;
  
  public class Car : MonoBehavior {
        
  }

class 'car' already exist in unity scripting api document. can anybody give me some document and book about use classes in unity?

some have UnityEngine.xxx have enumerations, Interfaces, Attributes. what is enumerations? what is Interfaces? what is Attributes?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

  • Sort: 
avatar image
0

Answer by isbdnt · Jul 05, 2017 at 05:56 AM

It depends on your requirements. I recommend you to write some basic console applications instead of game before you understand what is programming.

Comment
Add comment · Show 11 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image james82 · Jul 05, 2017 at 05:58 AM 0
Share

tell me detail, please.

avatar image isbdnt james82 · Jul 05, 2017 at 06:03 AM 0
Share

This is a great topic, there is no way to tell you all the concepts in such place. You'd better learn c# program$$anonymous$$g at least two months.

avatar image james82 isbdnt · Jul 05, 2017 at 06:07 AM 0
Share

thanks. but can you give me more detail.

Show more comments
avatar image james82 · Jul 05, 2017 at 07:02 AM 0
Share

can you give me Detail document? or please explain for me detail? how classes work? WHY I HAVE TO CREATE $$anonymous$$Y OWN CLASSES?

avatar image isbdnt james82 · Jul 05, 2017 at 07:15 AM 0
Share

checkout c# Topics, your own classes are to define your custom game world, Unity scripting api just provides common functionalities among game program$$anonymous$$g like rendering models, camera view and math etc.

avatar image james82 isbdnt · Jul 05, 2017 at 07:18 AM 0
Share
  using System;
  using UnityEngine;
  
  public class Audio$$anonymous$$anager : $$anonymous$$onoBehaviour, CheckpointListener
  {

do you what is CheckpointListener??how to use something like that?

Show more comments
avatar image james82 · Jul 05, 2017 at 11:18 AM 0
Share

is $$anonymous$$onoBehavior is a class? normal in c# it is another class.

avatar image
0

Answer by kumarc123 · Jul 05, 2017 at 07:41 AM

Unity API classes are intended for most of the rendering/ physics, transformation of game objects. Depending on each game or any Unity 3D app, you'll have to design your custom classes or object models.

Unity provides with all important needs to make any kind of game.

Each game will have it's own behavior which means the game objects will have their own behaviors, which you'll have to code using Unity APIs.

it is the developer's job to design or utilize the engine features as he/she wishes. In all scenarios, there definitely exists a case where you have to write custom code for your game logic. Examples include, camera behavior, custom collision detection for updating scores etc.

As a developer you'll have to create your own custom behaviors and reuse them if needed in any game.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

67 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Is the scripting API source code available? 2 Answers

Question regarding how Vector3 works 2 Answers

Is Input.GetAxis meant to return to 0 on key up? 1 Answer

How to implement leaderboard with social api 1 Answer

Help me reading a spreadsheet from Google drive using the API 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges