0
\$\begingroup\$

I have imported data from a csv file into a scriptable object. The scriptable object is made up like this.

  using System.Collections;
     using System.Collections.Generic;
     using UnityEngine;

     [CreateAssetMenu(fileName = "Names", menuName = "Project/Names", order = 0)]
     public class names : ScriptableObject{
         [System.Serializable]
         public class name
         {
             public string Name;
             public string Gender;
             public string Country;

             public string GetName() {
                 return Name;
             }

             public string GetGender() {
                 return Gender;

             }
    public string GetCountry() {
                 return Country;

             }

         }
         public name[] all_names;


     }

I want to filter out data. For example, if I filter out the country as United States. I want it to show me the names and genders only from United States.

\$\endgroup\$
  • \$\begingroup\$ This sounds like a job for a Custom Editor. How have you tried implementing your custom editor so far? \$\endgroup\$ – DMGregory Apr 7 at 16:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.