using TMPro;
[SerializeField] private TMP_Text quadTermsLegalAge;
quadTermsLegalAge.GetComponent<TMP_Text>().fontStyle = FontStyle.Bold;
Error:
Assets\Scripts\SceneMainController_Scene2.cs(193,76): error CS0266: Cannot implicitly convert type 'UnityEngine.FontStyle' to 'TMPro.FontStyles'. An explicit conversion exists (are you missing a cast?)
Why is this not working ???
Unity Version: 2020.3
TextMeshPro Version: 3.0.6
[SerializeField] private TMP_Text quadTermsLegalAge;
quadTermsLegalAge.GetComponent<TMP_Text>().fontStyle = FontStyle.Bold;
Error:
Assets\Scripts\SceneMainController_Scene2.cs(193,76): error CS0266: Cannot implicitly convert type 'UnityEngine.FontStyle' to 'TMPro.FontStyles'. An explicit conversion exists (are you missing a cast?)
Why is this not working ???
Unity Version: 2020.3
TextMeshPro Version: 3.0.6