unity set object scale
//gets the local scale of an object
vector3 local = transform.localScale;
//sets the local scale of an object
transform.localScale = new Vector3(scaleX,scaleY,scaleZ);
//gets the world scale of the object but is read only
vector3 world = transform.lossyScale;// This returns the scale of the object the script is attached to.
transform.localScale
Also in C#:
- unity html get request
- c# string to lowercase
- c# remove time in datetime
- c# convert excel column index to letter
- convert system.byte a string c#
- no overload for 'useItemOnSceneLoad' matches delegate 'UnityAction<Scene, LoadSceneMode>'
- C# copy string except for last letter
- windows forms iterate through all controls
- Generate Genealogy view in mvc C# using Google Organizational Chart
- c# regex replace
- sort c#
- unity rotate vector
- c# constructor
- C# delegate
- MVC company assignments
- microsoft.portable.csharp.targets was not found vs 2019
- convert string to boolean c#
- replace all ponctuation characters c#
- .netstandard distinctby iqueryable
- c# authorize attribute
- c# skip following code in loop
- c# pass mouse events to parent
- set int to null c#
- unity addforceatposition