Answer the question
In order to leave comments, you need to log in
Unity Property Drawer. How to make custom property output for each element in a list?
Hello everyone, here is such a structure:
[System.Serializable]
public struct LocalizationResource
{
public string name;
public string resourceName;
public string filename;
public string webResourceUrl;
public LocalizationProviderType type;
}
[System.Serializable]
public enum LocalizationProviderType
{
UnityResourcesSystem = 0,
FileSystem = 1,
WebResourcesSystem = 2
}
Answer the question
In order to leave comments, you need to log in
This task can be solved with the help of field attributes.
Here, for example, this .
This is how to use it.
[SerializeField] LocalizationProviderType type;
[ConditionalField("NextState", LocalizationProviderType.WebResourcesSystem )]
[SerializeField] private string webResourceUrl;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question