示例#1
0
 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;
 }
示例#2
0
        private void OnDisplayReady(ModelWidget modelWidget)
        {
            waitingOnDisplay = false;
            modelWidget.UnsubscribeForInstancing(OnDisplayReady);

            GenerateMaterialWidgets(modelWidget);
            //GetMaterial();
        }
示例#3
0
        private void OnDisplayReady(ModelWidget modelWidget)
        {
            waitingOnDisplay = false;
            modelWidget.UnsubscribeForInstancing(OnDisplayReady);

            if (!waitingOnAsset)
            {
                UpdateDisplay();
            }
        }
示例#4
0
 public override GameObject InstancePlaceholder()
 {
     return(ModelWidget.GeneratePrimitive(ModelWidget.Primitive.Sphere, transform));
 }