public void BuildAndSetDirty() { if (Sprite) { DecalUtils.FixRatio(this, ref oldScale); } DecalBuilder.Build(this); DecalUtils.SetDirty(this); }
public void BuildAndSetDirty() { //if (Sprite) DecalUtils.FixRatio( this, ref oldScale ); DecalBuilder.Build(this); DecalUtils.SetDirty(this); if (TryGetComponent <MeshCollider>(out MeshCollider col)) { col.sharedMesh = GetComponent <MeshFilter>().sharedMesh; } }