How to change collision set with a smart component?

I want to update a collision set with a smart component. Is that somehow possible?

Answers

  • scottdf93
    scottdf93 United Kingdom
    edited October 2020
    // Index through the collision sets in a station
     for (int i = 0; i < station.CollisionSets.Count; i++)
     {
          // We make a change to the collision set
          station.CollisionSets[i].Name = "Changed Name";
     }

    OR

    station.CollisionSets.First(x => x.DisplayName == "SpecificName").CollisionColor = Color.Black;
  • EricH
    EricH Germany
    This is via SDK right?