UNITY3D WAREHOUSE

WELCOME TO COMMUNITY.

OOOOOMG

I"M SO !!!.

!!!

Coming Soon.

!!!

Coming Soon..

Friday 27 March 2015

Unity3D Turtorial:27 Player Material Changer

Unity3D Turtorial:27  Player Material Changer










THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL 27 Script option 1

1. Create New java and name it : MaterialChangerByMouseButon


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


#pragma strict

var matArray : Material[];
 private var index : int;

 function Update () {
      if (Input.GetButtonDown("Fire1")) {
        index++;
        index = index % matArray.Length;
        renderer.material = matArray[index];
     }
 }







 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-
 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-
 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-







THIS IS BACKUP  IN TEXT FORM  TUTORIAL 27 Script option 2

1. Create New java and name it : materialchangeronkeypress


2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-



#pragma strict

var matArray : Material[];
 private var index : int;

 function Update () {
      if (Input.GetKeyDown (KeyCode.Q)) {
        index++;
        index = index % matArray.Length;
        renderer.material = matArray[index];
     }
 }



 ----------------------------------------­­­­­------------------------------------­-­-­-­-­-





















Saturday 21 March 2015

Unity3D Speed 3D Modeling - Building a game ! 2

Unity3D Speed 3D Modeling - Building a game ! 2 






30 minutes with game Developer !
On Saturday evening compressed in 2 min

Inspiration is : 
Plants vs Zombies 2
Frostbite Caves
After playing on mobile 
i wanna make my own ice head four my game lol

And yes i give you my 3d model off ice heda in this video  100 % free
use it how you like in your game
;)

DIRECT DOWNLOAD HERE








Friday 20 March 2015

Unity Turtorial: 26 Quit Menu !

Unity Turtorial: 26 Quit Menu !






THIS IS Java# script: GOOD 4 2D GAMES AND 3D GAMES !
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------

DIRECT DOWNLOAD HERE




THIS IS BACKUP  IN TEXT FORM  TUTORIAL 26

1. Create New java and name it :
quitMenu

2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


#pragma strict

var quitMenu : boolean = false;

 function Start () {

 }

 function Update () {

 if(Input.GetKeyDown(KeyCode.Escape)) {

 quitMenu = !quitMenu;

 }

 }

 function OnGUI () {

 if(quitMenu == true) {

 if(GUI.Button(Rect(600,300,150,50), "Quit Game Yes ?")) {

 Application.Quit();

 }

 }

 }


----------------------------------------­­­­­------------------------------------­-­-­-­-­-























Friday 13 March 2015

Unity Turtorial: 25 Changing between cameras !

Unity Turtorial: 25 Changing between cameras !





Unity3D TUTORIAL: 25 Changing between cameras !

THIS IS C# script: GOOD 4 2D GAMES AND 3D GAMES ! 
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------



DIRECT DOWNLOAD HERE


----------------------------------------­­­­­------------------------------------­-­-­-­-­-

THIS IS BACKUP  IN TEXT FORM  TUTORIAL 25

1. Create New C# and name it :
CameraController

2. Copy & Past this text and save C# :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-

using UnityEngine;
 using System.Collections;
 public class CameraController : MonoBehaviour {
     public Camera[] cameras;
     private int currentCameraIndex;
     
     // Use this for initialization
     void Start () {
         currentCameraIndex = 0;
         
         //Turn all cameras off, except the first default one
         for (int i=1; i<cameras.Length; i++) 
         {
             cameras[i].gameObject.SetActive(false);
         }
         
         //If any cameras were added to the controller, enable the first one
         if (cameras.Length>0)
         {
             cameras [0].gameObject.SetActive (true);
             Debug.Log ("Camera with name: " + cameras [0].camera.name + ", is now enabled");
         }
     }
     
     // Update is called once per frame
     void Update () {
         //If the c button is pressed, switch to the next camera
         //Set the camera at the current index to inactive, and set the next one in the array to active
         //When we reach the end of the camera array, move back to the beginning or the array.
         if (Input.GetKeyDown(KeyCode.C))
         {
             currentCameraIndex ++;
             Debug.Log ("C button has been pressed. Switching to the next camera");
             if (currentCameraIndex < cameras.Length)
             {
                 cameras[currentCameraIndex-1].gameObject.SetActive(false);
                 cameras[currentCameraIndex].gameObject.SetActive(true);
                 Debug.Log ("Camera with name: " + cameras [currentCameraIndex].camera.name + ", is now enabled");
             }
             else
             {
                 cameras[currentCameraIndex-1].gameObject.SetActive(false);
                 currentCameraIndex = 0;
                 cameras[currentCameraIndex].gameObject.SetActive(true);
                 Debug.Log ("Camera with name: " + cameras [currentCameraIndex].camera.name + ", is now enabled");
             }
         }
     }
 }



----------------------------------------­­­­­------------------------------------­-­-­-­-­-

Thursday 5 March 2015

Unity Turtorial: 24 How can I find the distance from one object to another using raycasts?

Unity Turtorial: 24 How can I find the distance from one object to another using raycasts ?







Unity3D TUTORIAL: 24 Find the distance from one object to another!

THIS IS Java script: GOOD 4 2D GAMES AND 3D GAMES ! 
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------



DIRECT DOWNLOAD HERE


----------------------------------------­­­­­------------------------------------­-­-­-­-­-

THIS IS BACKUP  IN TEXT FORM  TUTORIAL 23

1. Create New java and name it :
DISTANCE

2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-

#pragma strict

 var target: Transform; // planet transform
 private var distance: float;
 
 
 function FixedUpdate(){
   // get current position:
   var myPos: Vector3 = rigidbody.position;
   // create ray from this object to the planet center:
   var ray: Ray = new Ray(myPos, target.position - myPos);
   var hit: RaycastHit;
   // do a Raycast that sees only the target collider:
   if (target.collider.Raycast(ray, hit, Mathf.Infinity)){
     // save distance to the surface in variable distance:
     distance = hit.distance;
   }
 }
 
 function OnGUI(){
   // show the distance with one decimal digit:
   
   GUI.Label(Rect(10,10,120,30), distance.ToString("F1"));
 }



----------------------------------------­­­­­------------------------------------­-­-­-­-­-

Tuesday 3 March 2015

Unity3D TUTORIAL: 23 Simple Planet orbit

Unity3D TUTORIAL: 23 Simple Planet orbit







Unity3D TUTORIAL: 23 Simple Planet orbit

THIS IS Java script: GOOD 4 2D GAMES AND 3D GAMES ! 
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------



DIRECT DOWNLOAD HERE


----------------------------------------­­­­­------------------------------------­-­-­-­-­-

THIS IS BACKUP  IN TEXT FORM  TUTORIAL 23

1. Create New java and name it :
SimplePlanetOrbit

2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-

#pragma strict

var rotationSpeed = 5;

function Update() { transform.Rotate(0,rotationSpeed * Time.deltaTime,0); }



----------------------------------------­­­­­------------------------------------­-­-­-­-­-

Sunday 1 March 2015

Unity3D TUTORIAL: 22 Random Object Movement

Unity3D TUTORIAL: 22 Random Object Movement









THIS IS Java script: GOOD 4 2D GAMES AND 3D GAMES ! 
----------------------------------------­­­­­­­----------------------------------­-­-­-­-­-­-­------



DIRECT DOWNLOAD HERE


----------------------------------------­­­­­------------------------------------­-­-­-­-­-

THIS IS BACKUP  IN TEXT FORM  TUTORIAL 22
1. Create New java and name it : RandomMovement

2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


 var target:Vector3;
 var timer:float;
 var sec:int;
 function Start () {
  target = ResetTarget();
  sec=ResetSec();
 }
 
 function Update () {
 timer+=Time.deltaTime;
 if(timer>sec){
 target=ResetTarget();
 sec=ResetSec();
 }
 transform.Translate(target*10*Time.deltaTime);
 }
 function ResetTarget():Vector3{
     return Vector3(Random.Range(-2.0,2.0),Random.Range(-2.0,2.0),Random.Range(-2.0,2.0));
 }
 function ResetSec():int{
     timer =0;
     return Random.Range(1,3);
 }


----------------------------------------­­­­­------------------------------------­-­-­-­-­-





----------------------------------------­­­­­------------------------------------­-­-­-­-­-

THIS IS BACKUP  IN TEXT FORM  TUTORIAL 22
1. Create New java and name it : RandomRotate

2. Copy & Past this text and save java :
----------------------------------------­­­­­------------------------------------­-­-­-­-­-


#pragma strict
private var rotTarget:Quaternion;
var rotateEverySecond:float = 1;
private var lerpCounter:float;
private var rotCache:Quaternion;

function Start () {
randomRot ();
InvokeRepeating("randomRot", 0,rotateEverySecond);
}

function Update(){
transform.rotation = Quaternion.Lerp(transform.rotation, rotTarget, lerpCounter*Time.deltaTime);
lerpCounter++;
}

function randomRot () {
 
rotTarget = Random.rotation;
rotCache = transform.rotation;
lerpCounter = 0;
}



----------------------------------------­­­­­------------------------------------­-­-­-­-­-