Not a very hard work, but is useful
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace ImstkUnity
{
public class BoundaryManager : MonoBehaviour
{
public List<GameObject> bcObj = null;
public bool hideMeshes = true;
void Awake()
{
foreach (GameObject o in bcObj)
{
BoundaryCondition b = gameObject.AddComponent<BoundaryCondition>();
b.bcObj = o;
if (hideMeshes)
{
b.hideMesh = true;
}
}
}
}
}