コード例 #1
0
            public void OnValidate()
            {
                /*
                 * if (this.componentParameters != null) {
                 *
                 *      if (this.componentParameters.GetFlags() == 0x0) {
                 *
                 *              // no flags = no parameters
                 *              var link = this.componentParameters;
                 *              UnityEditor.EditorApplication.delayCall += () => {
                 *
                 *                      Object.DestroyImmediate(link, allowDestroyingAssets: true);
                 *
                 *              };
                 *
                 *      }
                 *
                 * }*/

                if (this.componentResource == null)
                {
                    this.componentResource = new ResourceMono();
                }
                this.componentResource.Validate(this.component);

                if (this.componentResource.IsLoadable() == false)
                {
                    this.componentNoResource = this.component;
                }
                else
                {
                    this.componentNoResource = null;
                }
            }
コード例 #2
0
 public void SetComponent(ResourceMono resource)
 {
     this.componentResource = resource;
 }