id
stringlengths
15
22
source
stringclasses
2 values
category
stringclasses
12 values
instruction
stringlengths
22
180
response
stringlengths
100
46.1k
system
stringclasses
5 values
local_man_bca29840dace
unity_docs
rendering
In Unity's 'Build your application for Android', what is 'Build the application' and how does it work?
To build your Unity application for Android: Select File > Build Profiles . Select Add Build Profile to open the Platform Browser window. From the list of platforms in the Platform pane, select Android . If Android isn’t an option, select Install with Unity Hub and follow the installation instructions. Refer to set up ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_aaffadcaa4a0
unity_docs
math
What is `AI.NavMesh.SamplePosition` in Unity? Explain its purpose and usage.
NavMesh.SamplePosition Declaration public static bool SamplePosition ( Vector3 sourcePosition , out AI.NavMeshHit hit , float maxDistance , int areaMask ); Parameters Parameter Description sourcePosition The origin of the sample query. hit Holds the properties of the resulting location. The value of ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d4d1bbc57fb4
unity_docs
scripting
Show me a Unity C# example demonstrating `Bounds.min`.
Bounds.min public Vector3 min ; Description The minimal point of the box. This is always equal to center-extents . ```csharp using UnityEngine;public class ColliderBounds : MonoBehaviour { Collider m_Collider; Vector3 m_Center; Vector3 m_Size, m_Min, m_Max; void Start() { //Fetch the Collider from the G...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_85a067d73a78
unity_docs
scripting
In Unity's 'How Unity builds Android applications', what is 'Incremental build pipeline' and how does it work?
Unity uses the incremental build pipeline when it builds the Player for Android. See the following Android-specific incremental build pipeline behaviors: Unity incrementally builds/generates: Gradle files Manifest files Assets packs APK expansion files (obbs) Uncompressed asset splits Android symbols zip files Unity in...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_baf0d0af13e8
unity_docs
ui
Show me a Unity code example for 'Name selectors'.
ous to CSS ID selectors that match elements with a specific id attribute. To set the name of an element: In C# script, use VisualElement.name . In UXML, use the name attribute. For example: <VisualElement name="my-nameName"> . To avoid unexpected matches, make element names unique within a panel. ## Syntax A name sel...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5c507bd69009
unity_docs
scripting
What is `ShortcutManagement.KeyCombination.ctor` in Unity? Explain its purpose and usage.
KeyCombination Constructor Declaration public KeyCombination ( KeyCode keyCode , ShortcutManagement.ShortcutModifiers shortcutModifiers ); Parameters Parameter Description keyCode Non-modifier key code of key combination. shortcutModifiers Shortcut modifiers keys of key combination. Description Creat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d4e0efae8581
unity_docs
rendering
What is `AssetPreview.GetAssetPreview` in Unity? Explain its purpose and usage.
AssetPreview.GetAssetPreview Declaration public static Texture2D GetAssetPreview ( Object asset ); Description Returns a preview texture for an asset. Description Returns a preview texture for an instanceID of an asset.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ba376fd251e3
unity_docs
scripting
What is `GUIContent` in Unity? Explain its purpose and usage.
GUIContent class in UnityEngine / Implemented in: UnityEngine.IMGUIModule Description The contents of a GUI element. This works closely in relation with GUIStyle . GUIContent defines what to render and GUIStyle defines how to render it. Additional resources: GUIStyle . Static Properties Property Desc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_798440c1d836
github
scripting
Write a Unity C# script called Game Event
```csharp using Hudossay.AttributeEvents.Assets.Runtime.EventLinks; using System.Collections.Generic; using UnityEngine; namespace Hudossay.AttributeEvents.Assets.Runtime.GameEvents { public class GameEvent<T1, T2> : GameEventBase { public List<EventLink<T1, T2>> Links = new List<EventLink<T1, T2>>(); ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4436204a335e
unity_docs
scripting
What is `UIElements.BasePopupField_2` in Unity? Explain its purpose and usage.
BasePopupField<T0,T1> class in UnityEngine.UIElements / Inherits from: UIElements.BaseField_1 / Implemented in: UnityEngine.UIElementsModule Description This is the base class for all the popup field elements. TValue and TChoice can be different, see MaskField, or the same, see PopupField Static Properti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_260554fc0827
unity_docs
rendering
In Unity's 'Check or write to the stencil buffer in a shader', what is 'Examples' and how does it work?
``` Shader "Examples/CommandExample" { SubShader { // The rest of the code that defines the SubShader goes here. Pass { // All pixels in this Pass will pass the stencil test and write a value of 2 to the stencil buffer // You would typically do this if you wanted to prevent subsequent shaders from drawing to t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_113599eeb277
unity_docs
scripting
Show me a Unity C# example demonstrating `MonoBehaviour.OnCollisionEnter`.
ta in your OnCollisionEnter callback, leave out the collision parameter from the method declaration to avoid unneccessary calculations. Note: Collision events are only sent if one of the colliders also has a non-kinematic rigidbody attached. Collision events will be sent to disabled MonoBehaviours, to allow enabli...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0b9d025206d0
unity_docs
scripting
In Unity's 'Registering a Search Provider', what is 'Registering a Search Provider shortcut' and how does it work?
To register a shortcut for a new provider, use: ```csharp [UsedImplicitly, Shortcut("Help/Quick Search/Assets")] private static void PopQuickSearch() { // Open Search with only the "Asset" provider enabled. SearchService.ShowContextual("asset"); } ``` You can map shortcuts to keys or key combinations using the shortc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0f04cde21c18
unity_docs
rendering
Explain 'Legacy Vertex Lit rendering path in the Built-In Render Pipeline' in Unity.
This page describes details of the Vertex Lit rendering path in Unity’s Built-in Render Pipeline . The Vertex Lit path generally renders each object in one pass, with lighting from all lights calculated for each vertex. It’s the fastest rendering path and has the widest hardware support. Since all lighting is calculate...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7fa9714eb7a5
unity_docs
scripting
What is `Media.VideoTrackEncoderAttributes.frameRate` in Unity? Explain its purpose and usage.
VideoTrackEncoderAttributes.frameRate public Media.MediaRational frameRate ; Description The frame rate for the encoded video, in frames per second, expressed as a fraction. To indicate that the track uses a variable frame rate (VFR), specify a frame rate of 0, or an invalid frame rate. In VFR mode, there is ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_af512d0f6d59
unity_docs
math
What is `ComputeShader.SetBool` in Unity? Explain its purpose and usage.
ComputeShader.SetBool Declaration public void SetBool (string name , bool val ); Declaration public void SetBool (int nameID , bool val ); Parameters Parameter Description name Variable name in shader code. nameID Property name ID, use Shader.PropertyToID to get it. val Value to set. Descripti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5a490b2aa9fc
unity_docs
scripting
What is `ParticleSystem.NoiseModule.remap` in Unity? Explain its purpose and usage.
ParticleSystem.NoiseModule.remap public ParticleSystem.MinMaxCurve remap ; Description Define how the noise values are remapped. Additional resources: MinMaxCurve . ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoBehaviour { ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b4ca43c9925b
unity_docs
scripting
Give me an overview of the `SpriteMaskInteraction` class in Unity.
SpriteMaskInteraction enumeration Description This enum controls the mode under which the sprite will interact with the masking system. Sprites by default do not interact with masks SpriteMaskInteraction.None . A sprite can also be setup to be visible in presence of one or more masks SpriteMaskInteraction.Visibl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7a48960e8f59
unity_docs
editor
What is `Device.SystemInfo.supportsParallelPSOCreation` in Unity? Explain its purpose and usage.
SystemInfo.supportsParallelPSOCreation public static bool supportsParallelPSOCreation ; Description This has the same functionality as SystemInfo.supportsParallelPSOCreation and also mimics platform-specific behavior in the Unity Editor.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b45156c7cc82
unity_docs
scripting
Show me a Unity C# example demonstrating `SystemInfo.processorManufacturer`.
Read Only). With SystemInfo.processorManufacturer and SystemInfo.processorModel values, you can categorize the devices running Unity applications to gather accurate performance metrics. You can use this data to test and optimize your application for improved performance. Returns unknown on WebGL platforms which...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_70a1d7000da5
github
scripting
Write a Unity C# script called Explosion PIP
```csharp using System.Collections; using UnityEngine; public class ExplosionPIP : PipState { public GameObject ExplosionEffect; public Rigidbody mainBone; public float duration; public float explosiveForce; private bool triggered = false; public override PipState RunState() { ...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_a32d7d21243f
unity_docs
xr
What is `XR.XRSettings.eyeTextureHeight` in Unity? Explain its purpose and usage.
XRSettings.eyeTextureHeight public static int eyeTextureHeight ; Description The current height of an eye texture for the loaded device. This value will be the product of the default eye texture size for the HMD and XRSettings.eyeTextureResolutionScale . If XR isn't enabled this value will be zero.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b259bea77cf0
unity_docs
physics
What is `Rigidbody2D.AddForceX` in Unity? Explain its purpose and usage.
Rigidbody2D.AddForceX Declaration public void AddForceX (float force , ForceMode2D mode = ForceMode2D.Force); Parameters Parameter Description force The force to add to the X component of the Linear Velocity in the world space of the Rigidbody2D . mode The method used to apply the specified force. De...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_71aa09676b80
unity_docs
math
What is `UIElements.Painter2D.SaveToVectorImage` in Unity? Explain its purpose and usage.
Painter2D.SaveToVectorImage Declaration public bool SaveToVectorImage ( UIElements.VectorImage vectorImage ); Parameters Parameter Description vectorImage The VectorImage object that will be initialized with this painter. This object should not be null. Returns bool True if the VectorImage initializatio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f43c34b313c8
unity_docs
scripting
Show me a Unity code example for 'Programming with gizmos and handles'.
rcle radius gizmo around a non-player character in a game, which represents the area within which they can hear or see the player. ## Gizmos The Gizmos class allows you to draw lines, spheres, cubes, icons, textures and meshes into the Scene view to use as debugging, set-up aids, or tools while developing your projec...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_95202a06a2d8
unity_docs
physics
What is `RaycastHit.normal` in Unity? Explain its purpose and usage.
RaycastHit.normal public Vector3 normal ; Description The normal of the surface the ray hit. The normal of the surface the ray hit on the collider where the ray intersects, which may or may not match the original mesh surface depending on the collider type and settings. For primitive colliders such as BoxC...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_45d1b10e29f6
unity_docs
scripting
What is `CameraEditor` in Unity? Explain its purpose and usage.
CameraEditor class in UnityEditor / Inherits from: Editor Description Unity Camera Editor. This is the Unity Camera Editor class. If you want to write your own custom Camera Editor you can extend this class and override the OnInspectorGUI function. Public Methods Method Description OnDestroy See ScriptableO...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a05fc21a4fe6
unity_docs
scripting
What is `Android.GetAssetPackStateAsyncOperation.isDone` in Unity? Explain its purpose and usage.
GetAssetPackStateAsyncOperation.isDone public bool isDone ; Description Checks if the operation is finished. Returns true if the operation is finished. Otherwise, returns false . Once the property returns true, GetAssetPackStateAsyncOperation.size and GetAssetPackStateAsyncOperation.states properties can...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_087d4b99e27f
unity_docs
physics
What is `TerrainHeightmapSyncControl.None` in Unity? Explain its purpose and usage.
TerrainHeightmapSyncControl.None Description Does not synchronize the height data nor the LOD data. This option forces the tessellation level to maximum on the modified heightmap region. Use TerrainData.SyncHeightmap afterward to readback height data from the heightmap texture, and rectify the tessellation.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_249028bff994
unity_docs
scripting
What is `ApplicationMemoryUsageChange` in Unity? Explain its purpose and usage.
ApplicationMemoryUsageChange struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Contains information about a change in the application's memory usage. See Application.memoryUsageChanged . Properties Property Description memoryUsage The memory usage level for the application.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e6c376bc1ce9
unity_docs
scripting
Show me a Unity C# example demonstrating `Transform.RotateAround`.
Transform.RotateAround Declaration public void RotateAround ( Vector3 point , Vector3 axis , float angle ); Description Rotates the transform about axis passing through point in world coordinates by angle degrees. This modifies both the position and the rotation of the transform. ```csharp using U...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_13fb1dc038e4
unity_docs
rendering
Explain 'Rich Text' in Unity.
The text for UI elements and text meshes can incorporate multiple font styles and sizes. Rich text is supported both for the UI System and the legacy GUI system. The Text, GUIStyle, GUIText and TextMesh classes have a Rich Text setting which instructs Unity to look for markup tags within the text. The Debug.Log functio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3473ec00dfeb
unity_docs
editor
What are the parameters of `EditorGUI.LayerField` in Unity?
Returns int The layer selected by the user. Description Makes a layer selection field. Layer field in an Editor Window. ```csharp using UnityEngine; using UnityEditor; // Change the Tag and/or the layer of the selected GameObjects.class EditorGUITagLayerField : EditorWindow { string selectedTag = ""; int select...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a9797ee87191
unity_docs
editor
What is `PlayerSettings.Android.defaultWindowHeight` in Unity? Explain its purpose and usage.
PlayerSettings.Android.defaultWindowHeight public static int defaultWindowHeight ; Description The default vertical size of the Android Player window in pixels. On Android phones and tablets that support multiple windows, this controls the height of the window when in the popup window mode. ```csharp using Un...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7c5be46bd44d
unity_docs
scripting
What are the parameters of `LayerMask.GetMask` in Unity?
Returns int The layer mask created from the layerNames . Description Given a set of layer names as defined by either a Builtin or a User Layer in the Tags and Layers manager , returns the equivalent layer mask for all of them. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_db3727ce4b94
unity_docs
scripting
Give me an overview of the `AsyncOperation` class in Unity.
AsyncOperation class in UnityEngine / Inherits from: YieldInstruction / Implemented in: UnityEngine.CoreModule Description Suspends a coroutine until an asynchronous operation completes. WaitForSecondsRealtime can only be used with a yield statement in coroutines. You can yield until the AsyncOperation ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_776b05bb4176
unity_docs
editor
What is `EditorTools.ToolManager.activeToolChanged` in Unity? Explain its purpose and usage.
ToolManager.activeToolChanged Parameters Parameter Description value An event issued after the active tool changes. Description Defines an event handler for when the active tool changes. Use this event along with IsActiveTool to be notified when an EditorTool is activated.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_df337aea35a6
unity_docs
editor
What is `Profiling.RawFrameDataView.GetSampleMetadataAsLong` in Unity? Explain its purpose and usage.
RawFrameDataView.GetSampleMetadataAsLong Declaration public long GetSampleMetadataAsLong (int sampleIndex , int metadataIndex ); Parameters Parameter Description sampleIndex Index of the Profiler sample. metadataIndex Metadata index. Returns long Returns long representation of sample metadata value. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_aa30fc23a69a
unity_docs
scripting
What is `Color.HSVToRGB` in Unity? Explain its purpose and usage.
Color.HSVToRGB Declaration public static Color HSVToRGB (float H , float S , float V ); Declaration public static Color HSVToRGB (float H , float S , float V , bool hdr ); Parameters Parameter Description H Hue [0..1]. S Saturation [0..1]. V Brightness value [0..1]. hdr Output HDR colours...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_31075e389ae2
unity_docs
scripting
What is `UIElements.BaseTreeViewController.IsExpanded` in Unity? Explain its purpose and usage.
BaseTreeViewController.IsExpanded Declaration public bool IsExpanded (int id ); Parameters Parameter Description id The item ID Returns bool Whether the item with the specified ID is expanded in the tree. Description Return whether the item with the specified ID is expanded in the tree.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5f6ac5081112
unity_docs
rendering
What is `LightingSettings.directSampleCount` in Unity? Explain its purpose and usage.
LightingSettings.directSampleCount public int directSampleCount ; Description Specifies the number of samples the Progressive Lightmapper uses for direct lighting calculations. (Editor only). The range is 1 to 1,000,000,000. Higher values result in reduced noise in lightmaps, but baking takes more time. The de...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_e86ebf2b0978_doc_5
github
scripting
What does `IPoolable` do in this Unity script? Explain its purpose and signature.
Releases the specified MonoBehaviour object back to its pool.The type of the MonoBehaviour object to release.The object to release. Signature: ```csharp public void ReleaseMono<T>(T obj) where T : MonoBehaviour, IPoolable => GetPool<MonoPool<T>, T>(_monoPools).Release(obj); ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_35e4bcf7fabb
unity_docs
rendering
What is `MonoBehaviour.OnRenderImage` in Unity? Explain its purpose and usage.
MonoBehaviour.OnRenderImage(RenderTexture,RenderTexture) Parameters Parameter Description source A RenderTexture containing the source image. destination The RenderTexture to update with the modified image. Description Event function that Unity calls after a Camera has finished rendering, that allows ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_8c79fc8a5e99
github
scripting
Write a Unity C# MonoBehaviour script called Mono Singleton
```csharp using System; using UnityEngine; namespace RayNeo { /// <summary> /// Mono单例 /// </summary> public abstract class MonoSingleton<T> : MonoBehaviour where T : MonoSingleton<T> { private static T m_Instance; /// <summary> /// 单例对象 /// </summary> pub...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_man_e52b145979f8
unity_docs
audio
In Unity's 'Activating and enabling Profiler modules', what is 'Activating and deactivating Profiler modules' and how does it work?
To activate or deactivate a module: Open the Profiler window ( Window > Analysis > Profiler ) Select the Profiler Modules dropdown Enable or disable the modules you want to display Disabling a module removes the module from the window, stops the Profiler from collecting that module’s data, and lowers the overhead of th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8bd91f481df6
unity_docs
editor
What is `MPE.ProcessState` in Unity? Explain its purpose and usage.
ProcessState enumeration Description Describes the state of a specifc UnityEditor process. Properties Property Description UnknownProcess The queried UnityEditor process is unknown. FinishedSuccessfully The queried UnityEditor process ended successfully. FinishedWithError The queried UnityEditor process finis...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5435bcf2b321
unity_docs
xr
Explain 'Finding package documentation' in Unity.
The Unity Manual provides documentation for a specific version of Unity. For package documentation, each package has its own version, so each package provides documentation for a specific version of that package. For this reason, the package documentation isn’t part of the main Unity Manual documentation. Instead, docu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_547640da5c48
unity_docs
scripting
What is `XR.XRDisplaySubsystem.FoveatedRenderingFlags` in Unity? Explain its purpose and usage.
FoveatedRenderingFlags enumeration Description Optional flags to control the foveated rendering system. Properties Property Description None The default behavior with no extra configuration flags. GazeAllowed Allows the platform to use eye tracking to optimize foveated rendering.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d4098ad36ed9
unity_docs
physics
Show me a Unity C# example demonstrating `Collider.attachedRigidbody`.
Collider.attachedRigidbody public Rigidbody attachedRigidbody ; Description The rigidbody the collider is attached to. Returns null if the collider is attached to no rigidbody. Colliders are automatically connected to the rigidbody attached to the same game object or attached to any parent game object. ```cs...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f17e26b9ee96
unity_docs
physics
What is `BoxCollider2D` in Unity? Explain its purpose and usage.
BoxCollider2D class in UnityEngine / Inherits from: Collider2D / Implemented in: UnityEngine.Physics2DModule Description Collider for 2D physics representing an axis-aligned rectangle. Additional resources: CircleCollider2D , PolygonCollider2D , EdgeCollider2D . Properties Property Description autoTili...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2e4b6f60fd49
unity_docs
ui
Explain 'Migration guides' in Unity.
This section includes the following pages: Topic Description Migrate custom controls from an earlier version to Unity 6 Compare the conventional custom control authoring process with the new revamped workflow in Unity 6. Migrate from Unity UI (uGUI) to UI Toolkit Understand the similarities and differences between uGUI...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f5a2dd24f902
unity_docs
scripting
Show me a Unity C# example demonstrating `DeviceType.Unknown`.
DeviceType.Unknown Description Device type is unknown. You should never see this in practice. ```csharp //Attach this script to a GameObject //This script checks what device type the Application is running on and outputs this to the consoleusing UnityEngine;public class DeviceTypeExample : MonoBehaviour { //This i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ca826b43b3d5
unity_docs
scripting
What is `DetailInstanceTransform.posY` in Unity? Explain its purpose and usage.
DetailInstanceTransform.posY public float posY ; Description The Y coordinate of the detail object in the Terrain's local space. To get the Y in world space, add this value to position Y of the Terrain. Note that the Y coordinate is already displaced by the Terrain heightmap.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_aa1ca83a0be4
unity_docs
physics
What is `BoxcastCommand` in Unity? Explain its purpose and usage.
BoxcastCommand struct in UnityEngine / Implemented in: UnityEngine.PhysicsModule Description Use this struct to set up a box cast command to be performed asynchronously during a job. When you use this struct to schedule a batch of box casts, the box casts will are performed asynchronously and in parallel. The r...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4a77d969bd72
unity_docs
scripting
What is `Collider.enabled` in Unity? Explain its purpose and usage.
Collider.enabled public bool enabled ; Description Enabled Colliders will collide with other Colliders, disabled Colliders won't. This is shown as the small checkbox in the inspector of the Colliders. It decides if a GameObject can collide with other Colliders. ```csharp //This example enables and disables the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_560b3b0b801d
unity_docs
rendering
What is `UnityEngine.AMDModule` in Unity? Explain its purpose and usage.
UnityEngine.AMDModule Description A module that contains API you can use to interact with AMD graphics cards. To activate this module at runtime, call AMD.Plugins.LoadPlugin with the AMD.Plugins.Plugin.AMDUnityPlugin value during application startup. Classes Class Description AMDUnityPlugin Provides methods to ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1b18ff354ac8
unity_docs
editor
Explain 'Use Property Drawers with IMGUI to customize the Inspector' in Unity.
Note : It’s strongly recommended to use the UI Toolkit to extend the Unity Editor , as it provides a more modern, flexible, and scalable solution than IMGUI. Property Drawers can be used to customize the look of certain controls in the Inspector window by using attributes on your scripts , or by controlling how a speci...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_25c9f7b6fa29
unity_docs
scripting
What is `LocationService.Stop` in Unity? Explain its purpose and usage.
LocationService.Stop Declaration public void Stop (); Description Stops location service updates. This is useful to save battery power when the application doesn't require the location service.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f0532a70bd27
unity_docs
rendering
Show me a Unity C# example demonstrating `Mesh.GetUVDistributionMetric`.
eter Description uvSetIndex UV set index to return the UV distibution metric for. 0 for first. Returns float Average of triangle area / uv area. Description The UV distribution metric can be used to calculate the desired mipmap level based on the position of the camera. The example code shows how this value...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bbc7b72b5bf4
unity_docs
scripting
What is `GUIStyleState.textColor` in Unity? Explain its purpose and usage.
GUIStyleState.textColor public Color textColor ; Description The text color used by GUI elements in this state. ```csharp using UnityEngine;public class Example : MonoBehaviour { // Sets the text color to yellow of customStyles[0] when an // element is turned on and pressed down void OnGUI() { if (GUI.sk...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f19c75541987
unity_docs
editor
What is `AssetImporter.AddRemap` in Unity? Explain its purpose and usage.
AssetImporter.AddRemap Declaration public void AddRemap ( AssetImporter.SourceAssetIdentifier identifier , Object externalObject ); Parameters Parameter Description identifier The identifier of the sub-asset. externalObject The object to be mapped to the internal object. Can belong to another Prefab or...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7d1acd6ce6c8
unity_docs
scripting
What is `ColorGamut` in Unity? Explain its purpose and usage.
ColorGamut enumeration Description Represents a color gamut. Properties Property Description sRGB sRGB color gamut. Rec709 Rec. 709 color gamut. Rec2020 Rec. 2020 color gamut. DisplayP3 Display-P3 color gamut. HDR10 HDR10 high dynamic range color gamut. DolbyHDR DolbyHDR high dynamic range color gamut. P3...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_83b035511749
unity_docs
scripting
What is `InspectorNameAttribute.ctor` in Unity? Explain its purpose and usage.
InspectorNameAttribute Constructor Declaration public InspectorNameAttribute (string displayName ); Parameters Parameter Description displayName The name to display. Description Specify a display name for an enum value.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_fc4a58965cf8_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Base class for a serializable ordered dictionary asset. Custom dictionary assetclasses should inherit from this class since Unity is currently unable toserialize instances of generic types.Type of key.Type of value. Signature: ```csharp public abstract partial class OrderedDictionary<TKey, TValue> : OrderedDictionary,...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_be6c84ce1f7e
unity_docs
rendering
What is `Experimental.Rendering.GraphicsFormatUtility.IsAlphaTestFormat` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormatUtility.IsAlphaTestFormat Declaration public static bool IsAlphaTestFormat ( Experimental.Rendering.GraphicsFormat format ); Declaration public static bool IsAlphaTestFormat ( TextureFormat format ); Desc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2365d32542b8
unity_docs
physics
What is `LowLevelPhysics.TerrainGeometry` in Unity? Explain its purpose and usage.
TerrainGeometry struct in UnityEngine.LowLevelPhysics / Implemented in: UnityEngine.PhysicsModule Implements interfaces: IGeometry Description Contains the geometric shape of a Terrain collider. The only way to retrieve this shape is to use the TerrainCollider.Geometry property to get it from a TerrainCollide...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a96bff0c4525
unity_docs
xr
In Unity's 'Remove a UPM package from a project', what is 'Before you begin' and how does it work?
Make sure you understand these important notes before you begin: Use this procedure to remove a package only if you added it to the current project by installing it, such as (but not limited to) Install a feature set , Install a UPM package from a registry , Install a UPM package from Asset Store , and installing custo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_952ceccf3291
unity_docs
rendering
What is `RenderTextureDescriptor.enableRandomWrite` in Unity? Explain its purpose and usage.
RenderTextureDescriptor.enableRandomWrite public bool enableRandomWrite ; Description Enable random access write into this render texture on Shader Model 5.0 level shaders. Additional resources: RenderTexture.enableRandomWrite .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_11f3021bf1ee
unity_docs
rendering
What is `SpeedTreeImporter.castShadowsByDefault` in Unity? Explain its purpose and usage.
SpeedTreeImporter.castShadowsByDefault public bool castShadowsByDefault ; Description Gets and sets a boolean to toggle whether the imported SpeedTree casts shadows. Setting this variable to true lets the rendering pipeline use the imported SpeedTree asset in the shadow passes and generate soft shadows for a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cc266c9a4c26
unity_docs
physics
What is `PhysicsVisualizationSettings.SetShowTerrainColliders` in Unity? Explain its purpose and usage.
PhysicsVisualizationSettings.SetShowTerrainColliders Declaration public static void SetShowTerrainColliders (bool show ); Description Should TerrainColliders be shown. Additional resources: TerrainCollider .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_79fd5ba0dda8
github
scripting
Write a Unity C# script called Hierarchy Root Search
```csharp using System.Collections.Generic; using UnityEngine; namespace RuntimeInspectorNamespace { public class HierarchyRootSearch : IHierarchyRootContent { public string Name { get { return reference.Name; } } public bool IsValid { get { return reference.IsValid; } } public List<GameObject> Children { get...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a3e23fd5f936
unity_docs
editor
What is `PlayModeStateChange.ExitingEditMode` in Unity? Explain its purpose and usage.
PlayModeStateChange.ExitingEditMode Description Occurs when exiting edit mode, before the Editor is in play mode. In this condition, EditorApplication.isPlaying is false and EditorApplication.isPlayingOrWillChangePlaymode is true .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b9658619bba6
unity_docs
rendering
What is `Rendering.SortingLayerRange` in Unity? Explain its purpose and usage.
SortingLayerRange struct in UnityEngine.Rendering / Implemented in: UnityEngine.CoreModule Description Describes a renderer's sorting layer range. ScriptableRenderContext.DrawRenderers, FilterRenderersSettings.sortingLayerRange. Static Properties Property Description all A range that includes all objects. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0f9146d7f9bb
unity_docs
scripting
Show me a Unity C# example demonstrating `Progress`.
Progress class in UnityEditor Description The Progress utility class reports the progress of asynchronous tasks to Unity. The Progress utility class can be used to report progress of asynchronous tasks in multiple ways. Here is an example of a task that runs on the EditorApplication.update loop and reports prog...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5caf3d4e0aac
unity_docs
scripting
What is `Search.ISearchQuery.GetProviderTypes` in Unity? Explain its purpose and usage.
ISearchQuery.GetProviderTypes Declaration public IEnumerable<string> GetProviderTypes (); Returns IEnumerable<string> Search provider type ids. Description Returns the list of aggregated type ids the search query executes with. See SearchProvider.type .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_728455d5e402
unity_docs
editor
What are the parameters of `EditorGUILayout.IntPopup` in Unity?
Returns int The value of the option that has been selected by the user. Description Make an integer popup selection field. Takes the currently selected integer as a parameter and returns the integer selected by the user. Rescales the current selected GameObject. ```csharp // Simple Editor Script that lets you rescale t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_21fe190b3e18
unity_docs
scripting
Show me a Unity C# example demonstrating `Search.IPropertyDatabaseView.Store`.
IPropertyDatabaseView.Store Declaration public bool Store (string documentId , string propertyPath , object value ); Parameters Parameter Description documentId A document identifier. propertyPath A property path or name. value The value of the property. Returns bool True if the store operation suc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_88f6ae99b484
unity_docs
math
What is `Matrix4x4.MultiplyVector` in Unity? Explain its purpose and usage.
Matrix4x4.MultiplyVector Declaration public Vector3 MultiplyVector ( Vector3 vector ); Description Transforms a direction by this matrix. This function is similar to MultiplyPoint ; but it transforms directions and not positions. When transforming a direction, only the rotation part of the matrix is taken ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a011a827b775
unity_docs
audio
What is `Video.VideoPlayer.GetAudioLanguageCode` in Unity? Explain its purpose and usage.
VideoPlayer.GetAudioLanguageCode Declaration public string GetAudioLanguageCode (ushort trackIndex ); Parameters Parameter Description trackIndex Index of the audio track to query. Returns string Language code. Description Returns the language code, if any, for the specified track. For URL sources, ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b0df4f548ada
unity_docs
math
In Unity's 'BoundsField', what is 'Example' and how does it work?
The following UXML example creates a BoundsField: ``` <UXML xmlns="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements"> <BoundsField label="UXML Field" name="the-uxml-field" /> </UXML> ``` The following C# example illustrates some of the customizable functionalities of the BoundsField: ``` /// <sample> // Get a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_906c54dc02de
unity_docs
scripting
What is `ParticleSystem.MainModule.startSize` in Unity? Explain its purpose and usage.
ParticleSystem.MainModule.startSize public ParticleSystem.MinMaxCurve startSize ; Description The initial size of particles when the Particle System first spawns them. Additional resources: MinMaxCurve . ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3ede28c87655
unity_docs
scripting
What is `UIElements.ColorField` in Unity? Explain its purpose and usage.
ColorField class in UnityEditor.UIElements / Inherits from: UIElements.BaseField_1 Description Makes a field for selecting a color. For more information, refer to UXML element ColorField . Static Properties Property Description colorContainerUssClassName USS class name of color container elements in el...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6cccdaddccc3
unity_docs
input
What is `Experimental.GraphView.EdgeDragHelper_1.HandleMouseMove` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. EdgeDragHelper<T0>.HandleMouseMove Declaration public void HandleMouseMove ( UIElements.MouseMoveEvent evt ); Parameters Parameter Description evt The event. Description Handle mouse move event.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fc6c0a51aaa0
unity_docs
scripting
What is `Unity.Hierarchy.HierarchyNodeTypeHandlerBase.GetDefaultNodeFlags` in Unity? Explain its purpose and usage.
HierarchyNodeTypeHandlerBase.GetDefaultNodeFlags(HierarchyNode,HierarchyNodeFlags) Parameters Parameter Description node The hierarchy node. defaultFlags The default hierarchy node flags. Returns void The default flags of the hierarchy node. Description Get the default value used to initialize a hierar...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_68b0789ee515
unity_docs
rendering
What is `ParticleSystem.Particle.startLifetime` in Unity? Explain its purpose and usage.
ParticleSystem.Particle.startLifetime public float startLifetime ; Description The starting lifetime of the particle. This is the total lifetime of this particle in seconds. The Particle System sets this value when it first spawns the particle. ```csharp using UnityEngine;public class Example : MonoBehaviour ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5f27d0092d7c
unity_docs
math
What are the parameters of `Mathf.Sin` in Unity?
Returns float The return value between -1 and +1. Description Returns the sine of angle f . Note: If using very large numbers with this function, there is an acceptable range for input angle values for this method, beyond which the calculation will fail. On windows, the acceptable range is approximately between -922337...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_dc2523e019ad
unity_docs
scripting
Explain 'Graphics quality settings in the Built-In Render Pipeline' in Unity.
Resources for understanding and configuring graphics tiers in the Built-in Render Pipeline . | Page Description Graphics tiers in the Built-In Render Pipeline Learn about applying different graphics settings when your application runs on hardware with different capabilities. Configure graphics tiers in the Built-In Ren...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e00e97b234b9
unity_docs
scripting
What is `Unity.Android.Gradle.Manifest.PermissionTree` in Unity? Explain its purpose and usage.
PermissionTree class in Unity.Android.Gradle.Manifest / Inherits from: Unity.Android.Gradle.Manifest.BaseElement Description The C# definition of the <permission-tree> Android Manifest element. For more information about the element, see Android's documentation: PermissionTree element Properties Property...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_04b2e5cd8216
unity_docs
scripting
What is `AI.NavMeshLinkData.costModifier` in Unity? Explain its purpose and usage.
NavMeshLinkData.costModifier public float costModifier ; Description If positive, overrides the pathfinder cost to traverse the link. When searching for a path this cost multiplies the Euclidean distance between the link end points when scoring the link. If the value is negative, the default cost based on area ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_339dbf4da238
unity_docs
editor
What is `SceneManagement.EditorSceneManager.SaveScene` in Unity? Explain its purpose and usage.
EditorSceneManager.SaveScene Declaration public static bool SaveScene ( SceneManagement.Scene scene , string dstScenePath = "", bool saveAsCopy = false); Parameters Parameter Description scene The Scene to be saved. dstScenePath The file path to save the Scene to. If the path is empty, the current ope...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d0705650213a
unity_docs
scripting
What is `FrameTiming.cpuMainThreadPresentWaitTime` in Unity? Explain its purpose and usage.
FrameTiming.cpuMainThreadPresentWaitTime public double cpuMainThreadPresentWaitTime ; Description The CPU time the last frame spent in waiting for Present on the main thread, in ms. This is the sum of shown [wait] blocks. It includes waits for Present() and the target fps. It's harder to show GPU work time ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3243b55d93e4
unity_docs
rendering
What is `AssetPreview.GetMiniThumbnail` in Unity? Explain its purpose and usage.
AssetPreview.GetMiniThumbnail Declaration public static Texture2D GetMiniThumbnail ( Object obj ); Description Returns the thumbnail for an object (like the ones you see in the project view).
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_536dc3b288b2
unity_docs
scripting
What is `GUISkin.textField` in Unity? Explain its purpose and usage.
GUISkin.textField public GUIStyle textField ; Description Style used by default for GUI.TextField controls. ```csharp using UnityEngine;public class Example : MonoBehaviour { // Modifies only the textField style of the current GUISkin GUIStyle style; string str = "A string..."; void OnGUI() { GUI.skin....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3bae339faa6f
unity_docs
editor
What is `AssetDatabase.MoveAsset` in Unity? Explain its purpose and usage.
AssetDatabase.MoveAsset Declaration public static string MoveAsset (string oldPath , string newPath ); Parameters Parameter Description oldPath The path where the asset currently resides. newPath The path which the asset should be moved to. Returns string An empty string if the asset has been successf...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_717edda1cd0a
unity_docs
scripting
What is `Media.VideoTrackEncoderAttributes.ctor` in Unity? Explain its purpose and usage.
VideoTrackEncoderAttributes Constructor Declaration public VideoTrackEncoderAttributes ( Media.H264EncoderAttributes h264Attrs ); Declaration public VideoTrackEncoderAttributes ( Media.VP8EncoderAttributes vp8Attrs ); Parameters Parameter Description h264Attrs H.264 encoding attributes (for macOS and ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_db899e90db20
unity_docs
physics
What is `Build.Reporting.StrippingInfo.GetReasonsForIncluding` in Unity? Explain its purpose and usage.
StrippingInfo.GetReasonsForIncluding Declaration public IEnumerable<string> GetReasonsForIncluding (string entityName ); Parameters Parameter Description entityName The name of an engine module, class, or other entity present in the build. Returns IEnumerable<string> A list of modules, classes, or other ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_5824071f0d84
github
scripting
Write a Unity Editor script for Unity Events
```csharp using UnityEngine; using Codice.Utils; namespace Unity.PlasticSCM.Editor.UI { internal static class Keyboard { internal static bool IsShiftPressed(Event e) { if (e == null) return false; return e.type == EventType.KeyDown && e...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_e2f5dba77099
unity_docs
scripting
What is `Vector3.Min` in Unity? Explain its purpose and usage.
Vector3.Min Declaration public static Vector3 Min ( Vector3 lhs , Vector3 rhs ); Description Returns a vector that is made from the smallest components of two vectors. Additional resources: Max function. ```csharp using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_04fb00dc91a3
unity_docs
scripting
What is `Unity.Android.Gradle.BaseBlock.GetElement` in Unity? Explain its purpose and usage.
BaseBlock.GetElement Declaration public Unity.Android.Gradle.BaseElement GetElement (uint id ); Parameters Parameter Description id The ID of the element to get. Returns BaseElement The element with the passed-in ID when one exists. Otherwise, returns null. Description Gets an element by ID.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_559c9cac5f41
unity_docs
audio
In Unity's 'Develop an ambisonic audio decoder', what is 'UnityAudioEffectDefinitionFlags_IsAmbisonicDecoder' and how does it work?
During the plug-in scanning phase, the UnityAudioEffectDefinitionFlags_IsAmbisonicDecoder flag notifies Unity that this is an ambisonic decoder effect. To enable a plug-in to operate as an ambisonic decoder, set a flag in the description bit-field of the effect: ``` definition.flags |= UnityAudioEffectDefinitionFlags_I...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.