コード例 #1
0
        protected void handleUpdated()
        {
            if (this.instance == null)
            {
                return;
            }
            if (this.instance is Component)
            {
                try
                {
                    if ((this.instance as Component).gameObject == null)
                    {
                        return;
                    }
                }
                catch
                {
                    return;
                }
            }
            float width       = this.kvContainer.transform.rect.size.x * this.kvSeparator.handle.value;
            float scaleFactor = DevkitCanvas.scaleFactor;

            this.updateTypeInspectors(width, scaleFactor, this.panel);
            if (this.instance is IInspectorValidateable)
            {
                IInspectorValidateable inspectorValidateable = this.instance as IInspectorValidateable;
                inspectorValidateable.inspectorValidate();
            }
        }
コード例 #2
0
 // Token: 0x06001167 RID: 4455 RVA: 0x00071314 File Offset: 0x0006F714
 public virtual void validate()
 {
     if (this.instance == null)
     {
         return;
     }
     if (this.instance is IInspectorValidateable)
     {
         IInspectorValidateable inspectorValidateable = this.instance as IInspectorValidateable;
         inspectorValidateable.inspectorValidate();
     }
 }