Documentation index for AI agents (llms.txt) A Markdown version of every page is available: request the page's source under /docs/, follow the "alternate" link in this page's head, or start from /llms.txt.
Visual Script logo Manual

Is Scriptable Object Null#

Scriptable Object / Is Scriptable Object Null

  • Can Read

  • Cannot Write

Description#

Returns True if the Scriptable Object reference points to nothing

Parameters#

Name Description
Scriptable Object The asset reference that is checked

Code#

using System;
using UnityEngine;
using VisualScript.Icons;

namespace VisualScript.Runtime
{
    [Get]

    [Title("Is Scriptable Object Null")]
    [Category("Scriptable Object/Is Null")]

    [Description("Returns True if the Scriptable Object reference points to nothing")]
    [Image(typeof(IconNull), ColorTheme.Type.Blue, typeof(BadgeScriptableObject))]

    [Parameter("Scriptable Object", "The asset reference that is checked")]

    [Keywords("None", "Empty", "Missing", "Exists", "Reference", "Asset")]

    [Serializable]
    public class TypeBoolScriptableObjectIsNull : TypeBool
    {
        [SerializeField] private GetScriptableObject m_ScriptableObject = new GetScriptableObject();

        public override bool GetPreview(GameObject source) => this.m_ScriptableObject.GetPreview(source) == null;

        public override bool Get(Args args)
        {
            return this.m_ScriptableObject.Get(args) == null;
        }

        public override string ToString()
        {
            return $"{this.m_ScriptableObject} is Null";
        }

        protected override SubscriptionMode Subscription => SubscriptionMode.OnChange;
    }
}
Visual Script logoVisual Script © Catsoft Works 2026. All rights reserved.