using UnityEngine;
using System.Collections;
[RequireComponent (typeof (SkinnedMeshRenderer))]
public class SkinWire : MonoBehaviour {
public Color color;
private SkinnedMeshRenderer smr;
void Start () {
smr = GetComponent<SkinnedMeshRenderer> ();
smr.sharedMesh.SetIndices(smr.sharedMesh.GetIndices(0), MeshTopology.LineStrip, 0);
smr.material.color = color;
}
void OnApplicationQuit(){
smr.sharedMesh.SetIndices(smr.sharedMesh.GetIndices(0), MeshTopology.Triangles, 0);
}
}
- Unlit shader and bloom is also match this wireframe view.