public override void OnInstantiateAsset() { //Debug.Log(transform.CalculateBounds().ToString()); MaterialWidget.GenerateMaterialWidgets(this); if (onModelInstanced != null) { onModelInstanced(this); } }
public override void Initialize() { base.Initialize(); var materials = MaterialWidget.GenerateMaterialWidgets(this); m_materialWidget = materials.FirstOrDefault(); if (stereo) { m_secondaryMaterialWidget = materials[1]; } //Initialize(m_materialWidget); }