Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

change size of a unity object

    public GameObject cube;
    public Vector3 sizeChange; // This has to be set for (x,y,z) in the editor
    //public float cubeSize = 0.2f;

    void OnMouseDown()
    {
        cube.transform.localScale = cube.transform.localScale - sizeChange;    
    }
Comment

PREVIOUS NEXT
Code Example
Csharp :: c# template 
Csharp :: c# join strings with comma 
Csharp :: unity get gameobject from hit 
Csharp :: c# .net 3.5 post json httpclient 
Csharp :: c# binary search 
Csharp :: how to close a form c# 
Csharp :: c# delete files in directory and subdirectories 
Csharp :: Edit file C# 
Csharp :: addd to array c# 
Csharp :: .net core identity get user id 
Csharp :: c# html to pdf 
Csharp :: c# loop through dictionary 
Csharp :: add spaces in string 
Csharp :: c# string console readline array 
Csharp :: unity game object remove parent 
Csharp :: c# api bypass ssl certificate 
Csharp :: c# example code 
Csharp :: how to create function in c# 
Csharp :: how to close another app in system with c# 
Csharp :: c# string right extension 
Csharp :: linq find object from id 
Csharp :: callling class c# 
Csharp :: enable cors asp.net mvc 
Csharp :: unity initialize array 
Csharp :: c# callback action lambda 
Csharp :: c sharp 
Csharp :: C# linq mselect 
Csharp :: get key in dictionary c# 
Csharp :: Get Mac address of Device in Xamarin 
Csharp :: c# jagged array initialization 
ADD CONTENT
Topic
Content
Source link
Name
3+4 =