public void Initialize(ModelWidget model, Animator animator = null) { m_model = model; m_animator = animator ? animator : model.GetComponentInChildren <Animator>(); playSpeed = m_animator.speed; Loop = m_animator.GetCurrentAnimatorStateInfo(0).loop; }
private void OnDisplayReady(ModelWidget modelWidget) { waitingOnDisplay = false; modelWidget.UnsubscribeForInstancing(OnDisplayReady); GenerateMaterialWidgets(modelWidget); //GetMaterial(); }
private void OnDisplayReady(ModelWidget modelWidget) { waitingOnDisplay = false; modelWidget.UnsubscribeForInstancing(OnDisplayReady); if (!waitingOnAsset) { UpdateDisplay(); } }
public override GameObject InstancePlaceholder() { return(ModelWidget.GeneratePrimitive(ModelWidget.Primitive.Sphere, transform)); }