Пример #1
0
 public void BuildAndSetDirty()
 {
     if (Sprite)
     {
         DecalUtils.FixRatio(this, ref oldScale);
     }
     DecalBuilder.Build(this);
     DecalUtils.SetDirty(this);
 }
Пример #2
0
 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;
     }
 }