private float percentageWidth = 30f; // Percentage public void OnEnable() { // Get reference autodeskSync = target as CM_AutodeskSync; // Initialize if (autodeskSync.initialize) { autodeskSync.GetSalsa3D(); autodeskSync.GetRandomEyes3D(); autodeskSync.GetBody(); autodeskSync.GetTeeth(); autodeskSync.GetEyeBones(); if (autodeskSync.saySmall == null) { autodeskSync.saySmall = new List <CM_ShapeGroup>(); } if (autodeskSync.sayMedium == null) { autodeskSync.sayMedium = new List <CM_ShapeGroup>(); } if (autodeskSync.sayLarge == null) { autodeskSync.sayLarge = new List <CM_ShapeGroup>(); } autodeskSync.GetShapeNames(); autodeskSync.SetDefaultSmall(); autodeskSync.SetDefaultMedium(); autodeskSync.SetDefaultLarge(); autodeskSync.initialize = false; } }