About 131,000 results
Open links in new tab
  1. How to call a scriptable object method from a custom inspector? - Unity

    Oct 24, 2022 · You can get the inspected object by casting UnityEditor.Editor.target to your type.

  2. Use ScriptableObjects as Delegate Objects - Unity

    Create a ScriptableObject that implements the strategy: Fill in the missing logic and populate the Inspector with any necessary values. Use the strategy in context: In the MonoBehaviour, call …

  3. Unity: Custom Inspector for ScriptableObject not working

    Sep 15, 2019 · I created a custom Inspector for some of my ScriptableObject. The inspector seems to work perfectly. If a value gets changed in the inspector, this value is used in game.

  4. Unity Trick #1 – Make an inspector for any ScriptableObject

    Sep 4, 2015 · In it, we'll instance a ScriptableObject in a Monobehaviour. We'll then write a custom inspector that will display the variables in the Monobehaviour, including those in the …

  5. How do I make a custom inspector for scriptable object?

    Aug 29, 2023 · Currently, I have several types of scriptable objects for each ingredient. I want the main scriptable object to have references to the other ones that might hold other data. How …

  6. How to assign a script to a ScriptableObject in the inspector? - Unity

    Dec 17, 2019 · Well you can’t assign scene objects to fields in scriptable objects (I know you know this of course). However nowadays you have SerializeReference, which does let you …

  7. Creating Custom Inspectors in Unity with Editor Scripting

    This blog post will show you how to create custom inspectors with Unity’s editor scripting. We’ll use ScriptableObjects and AnimationCurves, which are powerful tools for creating reusable …

  8. Create a Scriptable Object Instance through a Constructor

    May 13, 2019 · Take the example of the string.format function inside the constructor. Let us say that I just create a ScriptableObject in Unity and then type the firstName, lastName and …

  9. Display Scriptable object in inspector using ... - Unity Discussions

    Jul 15, 2020 · // Fetch the objects from the GameObject script to display in the inspector. m_GameObjectProp = serializedObject.FindProperty("Variable"); public override void …

  10. Displays the fields of a ScriptableObject in the inspector

    Apr 28, 2025 · // Allows calling this drawer from GUILayout rather than as a property drawer, which can be useful for custom inspectors public static T …

Refresh