Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Unity Scale per code ändern

 using UnityEngine;
 using System.Collections;
  
 public class GetLonger : MonoBehaviour {
  
     void OnCollisionEnter(Collision col){
         if(col.gameObject.name == "Biggerer"{
             col.gameObject.transform.localScale += new Vector3(1, 0, 1);
         }
     }
 }
 
PREVIOUS NEXT
Tagged: #Unity #Scale #code
ADD COMMENT
Topic
Name
7+1 =