Skip to main content

Posts

Showing posts with the label unity

#Unity note : Platform dependent compilation

consist preprocessor directives, let scripts partitioned, compile and execute a section of code exclusively for one of the supported platforms from the defined symbol we can get to know UNITY_EDITOR UNITY_EDITOR_WIN UNITY_EDITOR_OSX UNITY_STANDALONE_OSX UNITY_IPHONE UNITY_ANDROID UNITY_2_6 //unity engine version and so forth. complete information on unity help manual http://docs.unity3d.com/Manual/PlatformDependentCompilation.html

#P5 Kick Start - Unity [Adding a background]

Create a "quad" object, rename to "background"    2. Set the background properties, transform the Y-axis to rotate 90 deg.            3. As the quad comes together with mesh collider, this time we going to remove it.                                          4. drag image "nebula" from our assets folder<textures to the background object           5. Change the background object setting to fit our game screen. Change a-axis to 15 and y-axis 30 aspect ratio of 1:2                                                                                                 ...

#P3 Kick Start - Unity [Player Settings]

Hi peeps, lets continue from our  #P2 tutorial , now we are going to import the player object and set setting unto it. 1) Drag our ship object (vehicle_playerShip) into the hierarchy tab/ directly unto scene view 2) Inside the hierarchy tab select the vehicle object and go to the "Edit" menu and select reframe selected or F key. after that in hierarchy tab right click the vehicle and rename to player Now we can view the object at better distant. 3) Go to the inspector tab, and under Transform option, click on the setting icon and select reset. Reset function will put the object at o, o, o orientation. origin (X,Y,Z axis) 4)In order to calculate the collision between the player ship and other component we need to add rigid body component to the player ship. select add component>physic>rigid body 5) Not only that we also need to know the volume or space used by the player object in order to calculate the collision, thus we add ano...

#P2 Kick Start - Unity [Project Settings]

Hi peeps, lets continue our  #space-shooter  project. In this post (#P2), as per tutorial, we are going to set up our project settings. 1) Re-open new project that we have created in  #P1 fist post , and save our scene as "Main" in _Scene folder(newly created). note : The scene must be save in Assets folders. and we can create subfolder for it as well, in this tutorial we going to save in under _Scenes folder. after we managed to save it, we can see in the project explorer, our _Scenes folder, and inside it we can see our main scene. 2) Set our build settings to "Web Player" click file>Build Settings or can use short cut keys (Ctrl + Shift + B) Select web player, and click "switch platform" button. by default PC, Mac & Linux standalone is selected. Now or game will be build to be playable on web player. 4) Set player settings : after we have set the build setting, we click on the "Player Setting..."...