UnityEditor.ModelImporterRigEditor.DoesHumanDescriptionMatch C# (CSharp) Method

DoesHumanDescriptionMatch() private static method

private static DoesHumanDescriptionMatch ( ModelImporter importer, ModelImporter otherImporter ) : bool
importer ModelImporter
otherImporter ModelImporter
return bool
        private static bool DoesHumanDescriptionMatch(ModelImporter importer, ModelImporter otherImporter)
        {
            UnityEngine.Object[] objs = new UnityEngine.Object[] { importer, otherImporter };
            SerializedObject obj2 = new SerializedObject(objs);
            bool flag = !obj2.FindProperty("m_HumanDescription").hasMultipleDifferentValues;
            obj2.Dispose();
            return flag;
        }

Usage Example

コード例 #1
0
 private void CheckIfAvatarCopyIsUpToDate()
 {
     if (this.animationType != ModelImporterAnimationType.Human && this.animationType != ModelImporterAnimationType.Generic || this.m_AvatarSource.objectReferenceValue == (UnityEngine.Object)null)
     {
         this.m_AvatarCopyIsUpToDate = true;
     }
     else
     {
         this.m_AvatarCopyIsUpToDate = ModelImporterRigEditor.DoesHumanDescriptionMatch(this.singleImporter, AssetImporter.GetAtPath(AssetDatabase.GetAssetPath(this.m_AvatarSource.objectReferenceValue)) as ModelImporter);
     }
 }
All Usage Examples Of UnityEditor.ModelImporterRigEditor::DoesHumanDescriptionMatch