Incompatible Names
Because of Bridge code translation and the mechanism of Bridge class availability in a browser, users may encounter naming collisions with C# classes and MonoBehaviour fields.
For example, if a class such as JSON
is defined, the class overrides the default window.JSON
class and causes errors.
In order to prevent such problems, we have made a list of names that we recommend avoiding when choosing C# class names or MonoBehaviour field names.
Due to the length of this list, consider to use Page Search (CTRL+F / CMD+F).
C# class names to avoid
'Object',
'Function',
'Array',
'Number',
'Infinity',
'NaN',
'undefined',
'Boolean',
'String',
'Symbol',
'Date',
'Promise',
'RegExp',
'Error',
'AggregateError',
'EvalError',
'RangeError',
'ReferenceError',
'SyntaxError',
'TypeError',
'URIError',
'globalThis',
'JSON',
'Math',
'Intl',
'ArrayBuffer',
'Uint8Array',
'Int8Array',
'Uint16Array',
'Int16Array',
'Uint32Array',
'Int32Array',
'Float32Array',
'Float64Array',
'Uint8ClampedArray',
'BigUint64Array',
'BigInt64Array',
'DataView',
'Map',
'BigInt',
'Set',
'WeakMap',
'WeakSet',
'Proxy',
'Reflect',
'FinalizationRegistry',
'WeakRef',
'console',
'Option',
'Image',
'Audio',
'webkitURL',
'webkitRTCPeerConnection',
'webkitMediaStream',
'WebKitMutationObserver',
'WebKitCSSMatrix',
'XPathResult',
'XPathExpression',
'XPathEvaluator',
'XMLSerializer',
'XMLHttpRequestUpload',
'XMLHttpRequestEventTarget',
'XMLHttpRequest',
'XMLDocument',
'WritableStreamDefaultWriter',
'WritableStreamDefaultController',
'WritableStream',
'Worker',
'Window',
'WheelEvent',
'WebSocket',
'WebGLVertexArrayObject',
'WebGLUniformLocation',
'WebGLTransformFeedback',
'WebGLTexture',
'WebGLSync',
'WebGLShaderPrecisionFormat',
'WebGLShader',
'WebGLSampler',
'WebGLRenderingContext',
'WebGLRenderbuffer',
'WebGLQuery',
'WebGLProgram',
'WebGLFramebuffer',
'WebGLContextEvent',
'WebGLBuffer',
'WebGLActiveInfo',
'WebGL2RenderingContext',
'WaveShaperNode',
'VisualViewport',
'ValidityState',
'VTTCue',
'UserActivation',
'URLSearchParams',
'URL',
'UIEvent',
'TreeWalker',
'TransitionEvent',
'TransformStream',
'TrackEvent',
'TouchList',
'TouchEvent',
'Touch',
'TimeRanges',
'TextTrackList',
'TextTrackCueList',
'TextTrackCue',
'TextTrack',
'TextMetrics',
'TextEvent',
'TextEncoderStream',
'TextEncoder',
'TextDecoderStream',
'TextDecoder',
'Text',
'TaskAttributionTiming',
'SyncManager',
'SubmitEvent',
'StyleSheetList',
'StyleSheet',
'StylePropertyMapReadOnly',
'StylePropertyMap',
'StorageEvent',
'Storage',
'StereoPannerNode',
'StaticRange',
'ShadowRoot',
'Selection',
'SecurityPolicyViolationEvent',
'ScriptProcessorNode',
'ScreenOrientation',
'Screen',
'SVGViewElement',
'SVGUseElement',
'SVGUnitTypes',
'SVGTransformList',
'SVGTransform',
'SVGTitleElement',
'SVGTextPositioningElement',
'SVGTextPathElement',
'SVGTextElement',
'SVGTextContentElement',
'SVGTSpanElement',
'SVGSymbolElement',
'SVGSwitchElement',
'SVGStyleElement',
'SVGStringList',
'SVGStopElement',
'SVGSetElement',
'SVGScriptElement',
'SVGSVGElement',
'SVGRectElement',
'SVGRect',
'SVGRadialGradientElement',
'SVGPreserveAspectRatio',
'SVGPolylineElement',
'SVGPolygonElement',
'SVGPointList',
'SVGPoint',
'SVGPatternElement',
'SVGPathElement',
'SVGNumberList',
'SVGNumber',
'SVGMetadataElement',
'SVGMatrix',
'SVGMaskElement',
'SVGMarkerElement',
'SVGMPathElement',
'SVGLinearGradientElement',
'SVGLineElement',
'SVGLengthList',
'SVGLength',
'SVGImageElement',
'SVGGraphicsElement',
'SVGGradientElement',
'SVGGeometryElement',
'SVGGElement',
'SVGForeignObjectElement',
'SVGFilterElement',
'SVGFETurbulenceElement',
'SVGFETileElement',
'SVGFESpotLightElement',
'SVGFESpecularLightingElement',
'SVGFEPointLightElement',
'SVGFEOffsetElement',
'SVGFEMorphologyElement',
'SVGFEMergeNodeElement',
'SVGFEMergeElement',
'SVGFEImageElement',
'SVGFEGaussianBlurElement',
'SVGFEFuncRElement',
'SVGFEFuncGElement',
'SVGFEFuncBElement',
'SVGFEFuncAElement',
'SVGFEFloodElement',
'SVGFEDropShadowElement',
'SVGFEDistantLightElement',
'SVGFEDisplacementMapElement',
'SVGFEDiffuseLightingElement',
'SVGFEConvolveMatrixElement',
'SVGFECompositeElement',
'SVGFEComponentTransferElement',
'SVGFEColorMatrixElement',
'SVGFEBlendElement',
'SVGEllipseElement',
'SVGElement',
'SVGDescElement',
'SVGDefsElement',
'SVGComponentTransferFunctionElement',
'SVGClipPathElement',
'SVGCircleElement',
'SVGAnimationElement',
'SVGAnimatedTransformList',
'SVGAnimatedString',
'SVGAnimatedRect',
'SVGAnimatedPreserveAspectRatio',
'SVGAnimatedNumberList',
'SVGAnimatedNumber',
'SVGAnimatedLengthList',
'SVGAnimatedLength',
'SVGAnimatedInteger',
'SVGAnimatedEnumeration',
'SVGAnimatedBoolean',
'SVGAnimatedAngle',
'SVGAnimateTransformElement',
'SVGAnimateMotionElement',
'SVGAnimateElement',
'SVGAngle',
'SVGAElement',
'Response',
'ResizeObserverSize',
'ResizeObserverEntry',
'ResizeObserver',
'Request',
'ReportingObserver',
'ReadableStreamDefaultReader',
'ReadableStreamDefaultController',
'ReadableStreamBYOBRequest',
'ReadableStreamBYOBReader',
'ReadableStream',
'ReadableByteStreamController',
'Range',
'RadioNodeList',
'RTCTrackEvent',
'RTCStatsReport',
'RTCSessionDescription',
'RTCSctpTransport',
'RTCRtpTransceiver',
'RTCRtpSender',
'RTCRtpReceiver',
'RTCPeerConnectionIceEvent',
'RTCPeerConnectionIceErrorEvent',
'RTCPeerConnection',
'RTCIceCandidate',
'RTCErrorEvent',
'RTCError',
'RTCEncodedVideoFrame',
'RTCEncodedAudioFrame',
'RTCDtlsTransport',
'RTCDataChannelEvent',
'RTCDataChannel',
'RTCDTMFToneChangeEvent',
'RTCDTMFSender',
'RTCCertificate',
'PromiseRejectionEvent',
'ProgressEvent',
'ProcessingInstruction',
'PopStateEvent',
'PointerEvent',
'PluginArray',
'Plugin',
'PeriodicWave',
'PerformanceTiming',
'PerformanceServerTiming',
'PerformanceResourceTiming',
'PerformancePaintTiming',
'PerformanceObserverEntryList',
'PerformanceObserver',
'PerformanceNavigationTiming',
'PerformanceNavigation',
'PerformanceMeasure',
'PerformanceMark',
'PerformanceLongTaskTiming',
'PerformanceEventTiming',
'PerformanceEntry',
'PerformanceElementTiming',
'Performance',
'Path2D',
'PannerNode',
'PageTransitionEvent',
'OverconstrainedError',
'OscillatorNode',
'OffscreenCanvasRenderingContext2D',
'OffscreenCanvas',
'OfflineAudioContext',
'OfflineAudioCompletionEvent',
'NodeList',
'NodeIterator',
'NodeFilter',
'Node',
'NetworkInformation',
'Navigator',
'NamedNodeMap',
'MutationRecord',
'MutationObserver',
'MutationEvent',
'MouseEvent',
'MimeTypeArray',
'MimeType',
'MessagePort',
'MessageEvent',
'MessageChannel',
'MediaStreamTrackEvent',
'MediaStreamEvent',
'MediaStreamAudioSourceNode',
'MediaStreamAudioDestinationNode',
'MediaStream',
'MediaRecorder',
'MediaQueryListEvent',
'MediaQueryList',
'MediaList',
'MediaError',
'MediaEncryptedEvent',
'MediaElementAudioSourceNode',
'MediaCapabilities',
'Location',
'LayoutShiftAttribution',
'LayoutShift',
'LargestContentfulPaint',
'KeyframeEffect',
'KeyboardEvent',
'IntersectionObserverEntry',
'IntersectionObserver',
'InputEvent',
'InputDeviceInfo',
'InputDeviceCapabilities',
'ImageData',
'ImageCapture',
'ImageBitmapRenderingContext',
'ImageBitmap',
'IdleDeadline',
'IIRFilterNode',
'IDBVersionChangeEvent',
'IDBTransaction',
'IDBRequest',
'IDBOpenDBRequest',
'IDBObjectStore',
'IDBKeyRange',
'IDBIndex',
'IDBFactory',
'IDBDatabase',
'IDBCursorWithValue',
'IDBCursor',
'History',
'Headers',
'HashChangeEvent',
'HTMLVideoElement',
'HTMLUnknownElement',
'HTMLUListElement',
'HTMLTrackElement',
'HTMLTitleElement',
'HTMLTimeElement',
'HTMLTextAreaElement',
'HTMLTemplateElement',
'HTMLTableSectionElement',
'HTMLTableRowElement',
'HTMLTableElement',
'HTMLTableColElement',
'HTMLTableCellElement',
'HTMLTableCaptionElement',
'HTMLStyleElement',
'HTMLSpanElement',
'HTMLSourceElement',
'HTMLSlotElement',
'HTMLSelectElement',
'HTMLScriptElement',
'HTMLQuoteElement',
'HTMLProgressElement',
'HTMLPreElement',
'HTMLPictureElement',
'HTMLParamElement',
'HTMLParagraphElement',
'HTMLOutputElement',
'HTMLOptionsCollection',
'HTMLOptionElement',
'HTMLOptGroupElement',
'HTMLObjectElement',
'HTMLOListElement',
'HTMLModElement',
'HTMLMeterElement',
'HTMLMetaElement',
'HTMLMenuElement',
'HTMLMediaElement',
'HTMLMarqueeElement',
'HTMLMapElement',
'HTMLLinkElement',
'HTMLLegendElement',
'HTMLLabelElement',
'HTMLLIElement',
'HTMLInputElement',
'HTMLImageElement',
'HTMLIFrameElement',
'HTMLHtmlElement',
'HTMLHeadingElement',
'HTMLHeadElement',
'HTMLHRElement',
'HTMLFrameSetElement',
'HTMLFrameElement',
'HTMLFormElement',
'HTMLFormControlsCollection',
'HTMLFontElement',
'HTMLFieldSetElement',
'HTMLEmbedElement',
'HTMLElement',
'HTMLDocument',
'HTMLDivElement',
'HTMLDirectoryElement',
'HTMLDialogElement',
'HTMLDetailsElement',
'HTMLDataListElement',
'HTMLDataElement',
'HTMLDListElement',
'HTMLCollection',
'HTMLCanvasElement',
'HTMLButtonElement',
'HTMLBodyElement',
'HTMLBaseElement',
'HTMLBRElement',
'HTMLAudioElement',
'HTMLAreaElement',
'HTMLAnchorElement',
'HTMLAllCollection',
'GeolocationPositionError',
'GeolocationPosition',
'GeolocationCoordinates',
'Geolocation',
'GamepadHapticActuator',
'GamepadEvent',
'GamepadButton',
'Gamepad',
'GainNode',
'FormDataEvent',
'FormData',
'FontFaceSetLoadEvent',
'FontFace',
'FocusEvent',
'FileReader',
'FileList',
'File',
'FeaturePolicy',
'External',
'EventTarget',
'EventSource',
'EventCounts',
'Event',
'ErrorEvent',
'ElementInternals',
'Element',
'DynamicsCompressorNode',
'DragEvent',
'DocumentType',
'DocumentFragment',
'Document',
'DelayNode',
'DecompressionStream',
'DataTransferItemList',
'DataTransferItem',
'DataTransfer',
'DOMTokenList',
'DOMStringMap',
'DOMStringList',
'DOMRectReadOnly',
'DOMRectList',
'DOMRect',
'DOMQuad',
'DOMPointReadOnly',
'DOMPoint',
'DOMParser',
'DOMMatrixReadOnly',
'DOMMatrix',
'DOMImplementation',
'DOMException',
'DOMError',
'CustomEvent',
'CustomElementRegistry',
'Crypto',
'CountQueuingStrategy',
'ConvolverNode',
'ConstantSourceNode',
'CompressionStream',
'CompositionEvent',
'Comment',
'CloseEvent',
'ClipboardEvent',
'CharacterData',
'ChannelSplitterNode',
'ChannelMergerNode',
'CanvasRenderingContext2D',
'CanvasPattern',
'CanvasGradient',
'CanvasCaptureMediaStreamTrack',
'CSSVariableReferenceValue',
'CSSUnparsedValue',
'CSSUnitValue',
'CSSTranslate',
'CSSTransformValue',
'CSSTransformComponent',
'CSSSupportsRule',
'CSSStyleValue',
'CSSStyleSheet',
'CSSStyleRule',
'CSSStyleDeclaration',
'CSSSkewY',
'CSSSkewX',
'CSSSkew',
'CSSScale',
'CSSRuleList',
'CSSRule',
'CSSRotate',
'CSSPropertyRule',
'CSSPositionValue',
'CSSPerspective',
'CSSPageRule',
'CSSNumericValue',
'CSSNumericArray',
'CSSNamespaceRule',
'CSSMediaRule',
'CSSMatrixComponent',
'CSSMathValue',
'CSSMathSum',
'CSSMathProduct',
'CSSMathNegate',
'CSSMathMin',
'CSSMathMax',
'CSSMathInvert',
'CSSMathClamp',
'CSSKeywordValue',
'CSSKeyframesRule',
'CSSKeyframeRule',
'CSSImportRule',
'CSSImageValue',
'CSSGroupingRule',
'CSSFontFaceRule',
'CSSCounterStyleRule',
'CSSConditionRule',
'CSS',
'CDATASection',
'ByteLengthQueuingStrategy',
'BroadcastChannel',
'BlobEvent',
'Blob',
'BiquadFilterNode',
'BeforeUnloadEvent',
'BeforeInstallPromptEvent',
'BatteryManager',
'BaseAudioContext',
'BarProp',
'AudioWorkletNode',
'AudioScheduledSourceNode',
'AudioProcessingEvent',
'AudioParamMap',
'AudioParam',
'AudioNode',
'AudioListener',
'AudioDestinationNode',
'AudioContext',
'AudioBufferSourceNode',
'AudioBuffer',
'Attr',
'AnimationEvent',
'AnimationEffect',
'Animation',
'AnalyserNode',
'AbstractRange',
'AbortSignal',
'AbortController',
'window',
'self',
'document',
'name',
'location',
'customInteractive Templates',
'history',
'locationbar',
'menubar',
'personalbar',
'scrollbars',
'statusbar',
'toolbar',
'status',
'closed',
'frames',
'length',
'top',
'opener',
'parent',
'frameElement',
'navigator',
'origin',
'external',
'screen',
'innerWidth',
'innerHeight',
'scrollX',
'pageXOffset',
'scrollY',
'pageYOffset',
'visualViewport',
'screenX',
'screenY',
'outerWidth',
'outerHeight',
'devicePixelRatio',
'event',
'clientInformation',
'offscreenBuffering',
'screenLeft',
'screenTop',
'defaultStatus',
'defaultstatus',
'styleMedia',
'isSecureContext',
'performance',
'crypto',
'indexedDB',
'webkitStorageInfo',
'sessionStorage',
'localStorage',
'alert',
'atob',
'blur',
'btoa',
'focus',
'postMessage',
'queueMicrotask',
'requestAnimationFrame',
'requestIdleCallback',
'scroll',
'structuredClone',
'webkitCancelAnimationFrame',
'webkitRequestAnimationFrame',
'Atomics',
'chrome',
'WebAssembly',
'caches',
'cookieStore',
'AbsoluteOrientationSensor',
'Accelerometer',
'AudioWorklet',
'Cache',
'CacheStorage',
'Clipboard',
'ClipboardItem',
'CookieChangeEvent',
'CookieStore',
'CookieStoreManager',
'Credential',
'CredentialsContainer',
'CryptoKey',
'DeviceMotionEvent',
'DeviceMotionEventAcceleration',
'DeviceMotionEventRotationRate',
'DeviceOrientationEvent',
'FederatedCredential',
'Gyroscope',
'Keyboard',
'KeyboardLayoutMap',
'LinearAccelerationSensor',
'Lock',
'LockManager',
'MIDIAccess',
'MIDIConnectionEvent',
'MIDIInput',
'MIDIInputMap',
'MIDIMessageEvent',
'MIDIOutput',
'MIDIOutputMap',
'MIDIPort',
'MediaDeviceInfo',
'MediaDevices',
'MediaKeyMessageEvent',
'MediaKeySession',
'MediaKeyStatusMap',
'MediaKeySystemAccess',
'MediaKeys',
'NavigationPreloadManager',
'NavigatorManagedData',
'OrientationSensor',
'PasswordCredential',
'RTCIceTransport',
'RelativeOrientationSensor',
'Sensor',
'SensorErrorEvent',
'ServiceWorker',
'ServiceWorkerContainer',
'ServiceWorkerRegistration',
'StorageManager',
'SubtleCrypto',
'Worklet',
'XRDOMOverlayState',
'XRLayer',
'XRWebGLBinding',
'AudioData',
'EncodedAudioChunk',
'EncodedVideoChunk',
'ImageTrack',
'ImageTrackList',
'VideoColorSpace',
'VideoFrame',
'AudioDecoder',
'AudioEncoder',
'ImageDecoder',
'VideoDecoder',
'VideoEncoder',
'AuthenticatorAssertionResponse',
'AuthenticatorAttestationResponse',
'AuthenticatorResponse',
'PublicKeyCredential',
'BarcodeDetector',
'Bluetooth',
'BluetoothCharacteristicProperties',
'BluetoothDevice',
'BluetoothRemoteGATTCharacteristic',
'BluetoothRemoteGATTDescriptor',
'BluetoothRemoteGATTServer',
'BluetoothRemoteGATTService',
'CanvasFilter',
'EyeDropper',
'FileSystemDirectoryHandle',
'FileSystemFileHandle',
'FileSystemHandle',
'FileSystemWritableFileStream',
'FragmentDirective',
'GravitySensor',
'HID',
'HIDConnectionEvent',
'HIDDevice',
'HIDInputReportEvent',
'IdleDetector',
'MediaStreamTrackGenerator',
'MediaStreamTrackProcessor',
'OTPCredential',
'PaymentAddress',
'PaymentRequest',
'PaymentResponse',
'PaymentMethodChangeEvent',
'Presentation',
'PresentationAvailability',
'PresentationConnection',
'PresentationConnectionAvailableEvent',
'PresentationConnectionCloseEvent',
'PresentationConnectionList',
'PresentationReceiver',
'PresentationRequest',
'Profiler',
'Scheduling',
'ScreenDetailed',
'ScreenDetails',
'Serial',
'SerialPort',
'USB',
'USBAlternateInterface',
'USBConfiguration',
'USBConnectionEvent',
'USBDevice',
'USBEndpoint',
'USBInTransferResult',
'USBInterface',
'USBIsochronousInTransferPacket',
'USBIsochronousInTransferResult',
'USBIsochronousOutTransferPacket',
'USBIsochronousOutTransferResult',
'USBOutTransferResult',
'VirtualKeyboard',
'WakeLock',
'WakeLockSentinel',
'WebTransport',
'WebTransportBidirectionalStream',
'WebTransportDatagramDuplexStream',
'WebTransportError',
'XRAnchor',
'XRAnchorSet',
'XRBoundedReferenceSpace',
'XRFrame',
'XRInputSource',
'XRInputSourceArray',
'XRInputSourceEvent',
'XRInputSourcesChangeEvent',
'XRPose',
'XRReferenceSpace',
'XRReferenceSpaceEvent',
'XRRenderState',
'XRRigidTransform',
'XRSession',
'XRSessionEvent',
'XRSpace',
'XRSystem',
'XRView',
'XRViewerPose',
'XRViewport',
'XRWebGLLayer',
'XRCPUDepthInformation',
'XRDepthInformation',
'XRWebGLDepthInformation',
'XRHitTestResult',
'XRHitTestSource',
'XRRay',
'XRTransientInputHitTestResult',
'XRTransientInputHitTestSource',
'XRLightEstimate',
'XRLightProbe',
'originAgentCluster',
'trustedTypes',
'speechSynthesis',
'crossOriginIsolated',
'scheduler',
'AnimationPlaybackEvent',
'AnimationTimeline',
'CSSAnimation',
'CSSTransition',
'DocumentTimeline',
'BackgroundFetchManager',
'BackgroundFetchRecord',
'BackgroundFetchRegistration',
'BluetoothUUID',
'CSSLayerBlockRule',
'CSSLayerStatementRule',
'CustomStateSet',
'DelegatedInkTrailPresenter',
'Ink',
'MediaMetadata',
'MediaSession',
'MediaSource',
'SourceBuffer',
'SourceBufferList',
'MediaStreamTrack',
'NavigatorUAData',
'Notification',
'PaymentInstruments',
'PaymentManager',
'PaymentRequestUpdateEvent',
'PeriodicSyncManager',
'PermissionStatus',
'Permissions',
'PictureInPictureEvent',
'PictureInPictureWindow',
'PushManager',
'PushSubscription',
'PushSubscriptionOptions',
'RemotePlayback',
'Scheduler',
'TaskController',
'TaskPriorityChangeEvent',
'TaskSignal',
'SharedWorker',
'SpeechSynthesisErrorEvent',
'SpeechSynthesisEvent',
'SpeechSynthesisUtterance',
'TrustedHTML',
'TrustedScript',
'TrustedScriptURL',
'TrustedTypePolicy',
'TrustedTypePolicyFactory',
'URLPattern',
'VideoPlaybackQuality',
'VirtualKeyboardGeometryChangeEvent',
'XSLTProcessor',
'webkitSpeechGrammar',
'webkitSpeechGrammarList',
'webkitSpeechRecognition',
'webkitSpeechRecognitionError',
'webkitSpeechRecognitionEvent',
'webkitRequestFileSystem',
'webkitResolveLocalFileSystemURL',
'EmberENV',
'lunaStartup',
'pi',
'DEBUG',
'TRACE',
'DEVELOP',
'TESTS',
'FORCE_STABLE_RANDOM_SEED',
'TouchEmulator',
'ace',
'SPECTOR',
'audioVolumeToggle',
'spector',
'Deserializers',
'pc',
'traceResults',
'Bridge',
'shaderVariantsTraceResults',
'System',
'planck',
'Goblin',
'LunaUnity',
'utf8ArrayToStr',
'UnityEngine',
'Luna',
'Playcanvas',
'SelectionBase',
'UnityEditor',
'UnityTest',
'TMPro',
'app',
'ShaderProgramsLibrary',
'dir',
'dirxml',
'profile',
'profileEnd',
'table',
'keys',
'values',
'copy',
'queryObjects',
MonoBehaviour field names to avoid
'MonoHandle',
'timers',
'methodCoroutines',
'Handle',
'Attributes<T>',
'ConfigureForEntity',
'Entity',
'SystemName',
'RendererType',
'Code',
'IsScript',
'On',
'Off',
'EnqueueDestroy',
'MakePrimitiveTypeAliases',
'instanceId',
'instanceIdCounter',
'Destroyed',
'FromHandle<T>',
'SetHandle',
'InstantiateInternal<T>',
'CheckDestroyed',