Exemplo n.º 1
0
 public void BuildAndSetDirty()
 {
     if (Sprite)
     {
         DecalUtils.FixRatio(this, ref oldScale);
     }
     DecalBuilder.Build(this);
     DecalUtils.SetDirty(this);
 }
Exemplo n.º 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;
     }
 }