-
mandarin
- Oslo, Norway
- mandarin.no
Pinned Loading
-
Unity3D optimization tips
Unity3D optimization tips 1# Unity3D optimization tips
23Some code allocates memory when running in the editor and not on the device. This is due to Unity doing some extra error handling so possible error messages can be output in the console. Much of this code is stripped during build. It's therefore important to profile on device, and do it regularly.
45Optimizations often makes code more rigid and harder to reason. Don't do it until you really need to.
-
Visualize mesh normals in Unity3D
Visualize mesh normals in Unity3D 1using UnityEditor;
2using UnityEngine;
34[CustomEditor(typeof(MeshFilter))]
5public class NormalsVisualizer : Editor {
-
Unity3d ScrollRect Auto-Scroll, Drop...
Unity3d ScrollRect Auto-Scroll, Dropdown Use: Places this component in the Template of Dropdown (with the ScrollRect component) 1using System.Collections.Generic;
2using UnityEngine;
3using UnityEngine.EventSystems;
4using UnityEngine.UI;
5[RequireComponent(typeof(ScrollRect))]
-
9 slice scaling with a mesh in Unity3D
9 slice scaling with a mesh in Unity3D 1using UnityEngine;
23// Nine slice scaling using a Mesh.
4// Original code by Asher Vollmer
5// https://twitter.com/AsherVo
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.