public override void OnInstantiateAsset()
        {
            //Debug.Log(transform.CalculateBounds().ToString());
            MaterialWidget.GenerateMaterialWidgets(this);

            if (onModelInstanced != null)
            {
                onModelInstanced(this);
            }
        }
Exemple #2
0
        public override void Initialize()
        {
            base.Initialize();

            var materials = MaterialWidget.GenerateMaterialWidgets(this);

            m_materialWidget = materials.FirstOrDefault();

            if (stereo)
            {
                m_secondaryMaterialWidget = materials[1];
            }
            //Initialize(m_materialWidget);
        }