public void initData(UnityProductModel model, ProductMaterial mat, string GameObjectName) { this.SwatchUrl = mat.swatchURL2x; gameObject.transform.name = GameObjectName; this.productMaterial = mat; this.unityProductModel = model; if ((model.activeUnityProductMaterial.name == mat.name) && (checkbox != null)) { checkbox.startsChecked = true; } }