Skip to content

Built in define directives editor window

Roman Fadeev edited this page Mar 15, 2020 · 2 revisions

Motivation

Unity has several built-in defines described as platform dependent compilation. While Unity recommends to write testing code to see whether specific built-in define is set, it's not convenient to check whether define is set at editor time as testing code has to be written and playmode should be started. Built-in define directives editor window allows check whether define is set or not set at editor time.

How to use

Access editor window via Unity toolbar: Window->Pump Editor->Built-in Define Directives.

built-in-defines-0

Use search field to search defines by name.

built-in-defines-1

Clone this wiki locally