Unity logo
Cancel
Cart
Applications
Sell Assets

Over 11,000 five-star assets

Rated by 85,000+ customers

Supported by 100,000+ forum members

Every asset moderated by Unity

Home
Tools
Utilities
This content is hosted by a third party provider that does not allow video views without acceptance of Targeting Cookies. Please set your cookie preferences for Targeting Cookies to yes if you wish to view videos from these providers.
1/5
Smooth Operator is a Unity extension that allows the use of the null conditional operator (?.) also called the Elvis operator, and the null coalescing operator (??) on Unity GameObjects.
Render pipeline compatibility
The Built-in Render Pipeline is Unity’s default render pipeline. It is a general-purpose render pipeline that has limited options for customization. The Universal Render Pipeline (URP) is a Scriptable Render Pipeline that is quick and easy to customize, and lets you create optimized graphics across a wide range of platforms. The High Definition Render Pipeline (HDRP) is a Scriptable Render Pipeline that lets you create cutting-edge, high-fidelity graphics on high-end platforms.
Unity VersionBuilt-inURPHDRP
2021.3.0f1
Compatible
Compatible
Compatible
Description

Smooth Operator is a Unity extension that allows the use of the null conditional operator (?. also called the Elvis operator) and the null coalescing operator (??) on Unity GameObjects. No missing reference exceptions!


By default the ?. and ?? operators are not safe to use on Unity objects, as they may throw missing reference exceptions. Smooth Operator allows the safe use of these operators with no exceptions thrown.


Simply add the extension from the Unity Asset Store and import the package into your project, Smooth Operator will handle the rest, with no configuration needed.

Technical details
  • Use ?. and ?? operators safely with no errors.
  • No configuration needed. Simply add the package.
  • Write modern, clear, concise code.
  • Performance is exactly equal to a standard null check.
  • Backed by dozens of unit tests.
  • All platforms are supported.
  • Build Pipelines are supported.
  • Debugging is supported.


Smooth Operator

(not enough ratings)
20 users have favourite this asset
(20)
$10
Seat
1
Updated price and taxes/VAT calculated at checkout
Refund policy
This asset is covered by the Unity Asset Store Refund Policy. Please see section 2.9.3 of the EULA for details.
Secure checkout:
Supported payment methods: Visa, Mastercard, Maestro, Paypal, Amex
License type
File size
74.9 KB
Latest version
1.1.1
Latest release date
Aug 7, 2024
Original Unity version
2021.3.0
Support
Visit site
Quality assets
Over 11,000 five-star assets
Trusted
Rated by 85,000+ customers
Community support
Supported by 100,000+ forum members
Unity logo
Language
Feedback
Partners Program
Partners
USD
EUR
Copyright © 2025 Unity Technologies
All prices are exclusive of tax
USD
EUR