W
W
WOSNE2021-10-03 18:51:08
Unity
WOSNE, 2021-10-03 18:51:08

How to make a development branch for ScriptableObjects?

I'll attach a reference, I need to do the same, only this is done by commenting to show you.

When adding an object to the database, there is a Type list, it is necessary that further fields appear from its value.
For example, if I select Melle, then I have fields specifically for Melle. If Range, then fields for Range.

I suspect that this is done simply, but I just can not understand.

6159d0ff2453d226156315.png6159d1070cec8904387920.png6159d10ac937e356863954.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
NoNameDeveloper, 2021-10-04
@NoNameDeveloper

To do this, you need to create a custom inspector using the Editor class from the UnityEditor namespace.
They even have an example in the documentation:
https://docs.unity3d.com/ScriptReference/EditorGUI...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question