Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

instantiate scale object

GameObject newObject = Instantiate(objectPrefab, location, Quaternion.identity) as GameObject;  // instatiate the object
newObject.transform.localscale = new Vector3(whatever.x, whatever.y, whatever.z); // change its local scale in x y z format
Comment

Instantiate objects scale

public GameObject objectPrefab; // whatever you want to instantiate
public Vector3 location; // place you want it
 
GameObject newObject = Instantiate(objectPrefab, location, Quaternion.identity) as GameObject;  // instatiate the object
newObject.transform.localScale = new Vector3(whatever.x, whatever.y, whatever.z); // change its local scale in x y z format
 
Comment

PREVIOUS NEXT
Code Example
Csharp :: unity c# check if multiple keys are pressed 
Csharp :: c# dynamic object get value 
Csharp :: unity get list of children 
Csharp :: c# reverse a string 
Csharp :: c# start process and wait for exit code 
Csharp :: how is c# pronounced 
Csharp :: unity object to mouse position 
Csharp :: how to convert iformfile to byte array c# 
Csharp :: lump in neck under jaw 
Csharp :: unity change material 
Csharp :: exit programm c# 
Csharp :: c# tryparse int 
Csharp :: readonly vs const c# 
Csharp :: c# create file 
Csharp :: how to create an array in c# 
Csharp :: group by linq multiple columns c# 
Csharp :: regular expression for website url validation in c# 
Csharp :: abril modal boostrap 
Csharp :: reverse for loop 
Csharp :: unity deactivate all colliders of a gameobject 
Csharp :: array.convertall 
Csharp :: how to clear datagridview c# 
Csharp :: unity check if a animator parameter trigger is activated 
Csharp :: how do I print something in the console at the start of the game unity 
Csharp :: how to change the color of a sprite in unity 
Csharp :: if statement swiftui 
Csharp :: change sprite of a sprite unity 
Csharp :: void ontriggerenter not working 
Csharp :: clear controls from panel c# 
Csharp :: c# stop process 
ADD CONTENT
Topic
Content
Source link
Name
4+2 =