About 88,400 results
Open links in new tab
  1. c# - Scale GameObject in Unity - Stack Overflow

    Aug 31, 2016 · How can I increase / decrease the size of objects in Unity? Example: public GameObject sprite; public float scale = 2.0f; void ScaleResolution() { sprite = sprite*scale; …

  2. scale - How screen scaling works in Unity? - Game Development …

    Nov 3, 2021 · By default, Unity scales the camera view of your 3D world to fit the height of the window. That simple rule is the only thing happening in both of your examples: When you've …

  3. unity - How to adjust objects' coordinates and scale for different ...

    Apr 10, 2018 · It will adjust everything automatically for different resolutions if the aspect ratio is the same. If the aspect ratio is different, everything will still be scaled automatically, but you …

  4. unity game engine - Scaling a gameObject through C# script?

    Jul 14, 2022 · The variable provided by Unity is the same as GetComponent (), so you can delete this line as well, because transform is by default the same as that. In general, if the variables …

  5. unity game engine - Way to scale all assets in a Unity3d scene

    Dec 11, 2013 · 3 Does anyone know of a component or a way to scale multiple objects in a scene, including hierarchies of objects and objects created externally as well as internally ? It I …

  6. Unity: Scale a GameObject in world space - Stack Overflow

    Dec 6, 2017 · I am trying to achieve this: This is a non-axis-aligned cube being scaled in world space in blender alongside the Z axis (Y in Unity). I want to achieve the same in Unity. I tried …

  7. How to work with units (meters) in unity - Stack Overflow

    Feb 22, 2015 · Once you've settled this, in meters, feet or "unity scale", take note of the primitives' size and stick to it, this way the actual units won't be that important but the coherence between …

  8. c# - Scale gameobject on just one side - Stack Overflow

    Aug 30, 2016 · You can now attach the script in your question to that new GameObject and it should scale the cube on one side only. Don't forget to remove the old scaling script that is …

  9. unity - How to scale an object in one direction without moving the ...

    Dec 30, 2018 · I am using Unity. In my game, I have an SpriteRenderer and I'd like it to increase its size I'd like it to lengthen to the right, without moving the left edge. I tried changing its scale …

  10. How can I programmatically change the Scale of the Rect …

    Jan 7, 2021 · I'd like to programmatically modify the Scale parameter (specifically the x Scale) of the Rect Transform component attached to my 'damage pop-up' game object, as shown in the …