Apply Scale (Just Like In Blender) – updated fixed caps
Script Name: ApplyScaleEditor
Be sure to unparent other objects, great for quit building in unity and not having to use any other addons or prefab builders. Just scale it to what you need, apply, and the mesh stay while the scale resets.
using UnityEngine;
using UnityEditor;
public class ApplyScaleEditor : MonoBehaviour
{
[MenuItem("GameObject/Apply Scale to Mesh", false, 20)]
static void ApplyScaleToSelected()
{
foreach (GameObject obj in Selection.gameObjects)
{
ApplyScale(obj.transform);
}
}
static void ApplyScale(Transform obj)
{
// Get the MeshFilter
MeshFilter meshFilter = obj.GetComponent<MeshFilter>();
if (meshFilter == null || meshFilter.sharedMesh == null)
{
Debug.LogWarning($"[ApplyScaleEditor] No mesh found on {obj.name}, skipping.");
return;
}
// Create a copy of the mesh to modify
Mesh mesh = Instantiate(meshFilter.sharedMesh);
Vector3[] vertices = mesh.vertices;
// Apply scale to vertices
for (int i = 0; i < vertices.Length; i++)
{
vertices[i] = Vector3.Scale(vertices[i], obj.localScale);
}
mesh.vertices = vertices;
mesh.RecalculateBounds();
mesh.RecalculateNormals();
// Assign new mesh to the object
meshFilter.sharedMesh = mesh;
// Reset scale to (1,1,1)
Undo.RecordObject(obj, "Apply Scale");
obj.localScale = Vector3.one;
Debug.Log($"[ApplyScaleEditor] Applied scale to {obj.name} and reset to (1,1,1).");
}
}
Frame Limit – (Unity6 hdrp helper)
Script name: LimitFPS
Why this isn’t a built in option, no one knows. It simply lets you set your frame rate so the HDRP in unity isn’t maxing out your settings or anyone else’s.
using UnityEngine;
public class LimitFPS : MonoBehaviour
{
void Start()
{
Application.targetFrameRate = 120; // FPS to 120
QualitySettings.vSyncCount = 1; // Enable VSync to stabilize frame pacing
}
}

