I have generated a mesh in a C# script. When I try to use
Unwrapping.GenerateSecondaryUVSet( mesh );
I get an error:
CS0103: The name `Unwrapping' does not exist in the current context
In the script I am calling:
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
Am I missing something?
https://docs.unity3d.com/ScriptReference/Unwrapping.html
– SorrellUnityEditor.Unwrapping
is available in editor only. Referencing it in a runtime code will throw build errors.