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_sr_b36b520863fc
unity_docs
editor
What is `EditorApplication.isRemoteConnected` in Unity? Explain its purpose and usage.
EditorApplication.isRemoteConnected public static bool isRemoteConnected ; Description Is editor currently connected to Unity Remote 4 client app. This lets you to check if editor has successfully connected to Unity Remote 4 client, and data is being transferred between them.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e2cfff42cfe4
unity_docs
rendering
In Unity's 'Build assets into AssetBundles', what is 'Build subsets of AssetBundles' and how does it work?
When you give the BuildPipeline.BuildAssetBundles method no specific AssetBundle names, it builds all AssetBundles defined in the project. If you only want to build a subset of AssetBundles, you query the AssetDatabase for defined AssetBundles and then pass a filtered list to the build pipeline. The following script de...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_60bb2f4d707e
unity_docs
scripting
What is `ParticleSystem.NoiseModule.octaveMultiplier` in Unity? Explain its purpose and usage.
ParticleSystem.NoiseModule.octaveMultiplier public float octaveMultiplier ; Description When combining each octave, scale the intensity by this amount. ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoBehaviour { private ParticleS...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d5715e85bcac
unity_docs
scripting
Explain 'Preset Manager' in Unity.
The Preset Manager is a window in Project Settings (menu: Edit > Project Settings > Preset Manager ) that allows you to manage custom Presets you create to specify default properties when you add a component to a GameObject or a new Asset to your project. The default Presets you define override Unity’s default settings...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2279cf89c054
unity_docs
math
What is `AndroidJNI.FromSByteArray` in Unity? Explain its purpose and usage.
AndroidJNI.FromSByteArray Declaration public static sbyte[] FromSByteArray (IntPtr array ); Description Converts a Java array of byte to a managed array of System.SByte. Additional resources: AndroidJNI.GetSByteArrayElement , AndroidJNI.GetArrayLength .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d035ed988740
unity_docs
rendering
What is `Experimental.GlobalIllumination.SpotLightPyramidShape` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. SpotLightPyramidShape struct in UnityEngine.Experimental.GlobalIllumination / Implemented in: UnityEngine.CoreModule Description Use this Struct to help initialize a LightDataGI structure as a pyramid-shaped spot light. Prop...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_412685383ca9
unity_docs
editor
In Unity's 'Build Profiles Profiler settings', what is 'Profiler Build Profiles settings' and how does it work?
There are two settings related to how the Profiler collects data. Setting Description Autoconnect Profiler Enable this setting to automatically connect to the Profiler when your application starts. The Unity Editor bakes its IP address into the built player during the build process. When you start the player, it attemp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_78212c02c4e1
unity_docs
physics
What are the parameters of `PhysicsShapeGroup2D.GetShape` in Unity?
Returns PhysicsShape2D Returns the shape stored at the specified shapeIndex . Description Gets the PhysicsShape2D stored at the specified shapeIndex . NOTE : Because the PhysicsShape2D is a struct, this is a copy of the shape therefore changing the shape afterwards will not change the PhysicsShapeGroup2D . ```csharp us...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1a08011cab0f
unity_docs
scripting
What is `UIElements.Columns.primaryColumnName` in Unity? Explain its purpose and usage.
Columns.primaryColumnName public string primaryColumnName ; Description Indicates the column that needs to be considered as the primary column, by ID. Needs to match a Column 's id, otherwise will be ignored. The primary column cannot be hidden and will contain the expand arrow for tree views.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_15511f53b856
unity_docs
rendering
What is `RenderTexture.autoGenerateMips` in Unity? Explain its purpose and usage.
RenderTexture.autoGenerateMips public bool autoGenerateMips ; Description Mipmap levels are generated automatically when this flag is set. When a render texture is with mipmaps ( useMipMap ), then by default rendering into it generates all the mipmap levels. The mipmap generation happens automatically only aft...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_091d12f8e83d
unity_docs
scripting
In Unity's 'Configuring global particle properties', what is 'Simulation Space' and how does it work?
The Simulation Space property determines whether the particles move with the Particle System parent object, a custom object, or independently in the game world. For example, systems like clouds, hoses and flamethrowers need to be set independently of their parent GameObject , as they tend to leave trails that persist i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e37543d3bf02
unity_docs
rendering
Give me an overview of the `LightingSettings` class in Unity.
LightingSettings class in UnityEngine / Inherits from: Object / Implemented in: UnityEngine.CoreModule Description An object containing settings for precomputing lighting data, that Unity can serialize as a Lighting Settings Asset . When the Unity Editor precomputes lighting data for a Scene that uses the B...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2ea5fb2cd3fb
unity_docs
editor
What is `AssetImporter.importSettingsMissing` in Unity? Explain its purpose and usage.
AssetImporter.importSettingsMissing public bool importSettingsMissing ; Description The value is true when no meta file is provided with the imported asset. ```csharp using UnityEngine; using UnityEditor;public class ImportSettingsMissingExample : MonoBehaviour { [MenuItem("Tools/ImportSettingsMissingExample")...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1c458c6bfef9
unity_docs
math
What is `Tilemaps.Tilemap.DeleteCells` in Unity? Explain its purpose and usage.
Tilemap.DeleteCells Declaration public void DeleteCells ( Vector3Int position , Vector3Int deleteCells ); Parameters Parameter Description position The target position to remove from. deleteCells The number of columns, rows and layers of cells to remove. Description Removes cells from within the Til...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ba3e31a0b841
unity_docs
rendering
What is `AssetPostprocessor.OnPreprocessTexture` in Unity? Explain its purpose and usage.
AssetPostprocessor.OnPreprocessTexture() Description Add this function to a subclass to get a notification just before the texture importer is run. This lets you set up default values for the import settings. Use this callback if you want to change the compression format of the texture. ```csharp using UnityEngin...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_02391d284a63
unity_docs
scripting
What are the parameters of `Unity.Properties.PropertyContainer.TryGetValue` in Unity?
Returns bool true if the value exists for the specified name; otherwise, false . Description Gets the value of a property by name. Declaration public static bool TryGetValue (TContainer container , ref Unity.Properties.PropertyPath path , out TValue value ); Parameters Parameter Description container The container whos...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2d32677384cf
unity_docs
scripting
What is `SettingsProviderGroupAttribute.ctor` in Unity? Explain its purpose and usage.
SettingsProviderGroupAttribute Constructor Declaration public SettingsProviderGroupAttribute (); Description Creates a SettingsProviderGroupAttribute used to register multiple SettingsProvider s.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_a01acb8fc5c2
github
scripting
Write a Unity Editor script for Script Extension Field Drawer
```csharp using System.Linq; using Baxter.ClusterScriptExtensions.Editor.Inspector.ExtensionFieldDrawer; using Baxter.ClusterScriptExtensions.Editor.Localization; using UnityEditor; using UnityEngine; namespace Baxter.ClusterScriptExtensions.Editor.Inspector { [CustomPropertyDrawer(typeof(ScriptExtensionField))] ...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_337a20ebbbc6
unity_docs
rendering
What is `Rendering.ScriptableRenderContext.EmitWorldGeometryForSceneView` in Unity? Explain its purpose and usage.
ScriptableRenderContext.EmitWorldGeometryForSceneView Declaration public static void EmitWorldGeometryForSceneView ( Camera cullingCamera ); Parameters Parameter Description cullingCamera Camera to emit the geometry for. Description Emits UI geometry into the Scene view for rendering.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dcca4ae0b153
unity_docs
scripting
What are the parameters of `Rendering.CommandBuffer.RequestAsyncReadbackIntoNativeArray` in Unity?
Description Adds an asynchonous GPU readback request command to the command buffer. Additional resources: AsyncGPUReadback.RequestIntoNativeArray . Declaration public void RequestAsyncReadbackIntoNativeArray (ref NativeArray<T> output , ComputeBuffer src , Action<AsyncGPUReadbackRequest> callback ); Declaration public ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d78a814df073
unity_docs
scripting
Show me a Unity C# example demonstrating `EditorGUI.Vector2Field`.
ctor2 Vector2Field ( Rect position , GUIContent label , Vector2 value ); Parameters Parameter Description position Rectangle on the screen to use for the field. label Label to display above the field. value The value to edit. Returns Vector2 The value entered by the user. Description Makes ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e3f661f467b9
unity_docs
scripting
What is `Cloth.stretchingStiffness` in Unity? Explain its purpose and usage.
Cloth.stretchingStiffness public float stretchingStiffness ; Description Stretching stiffness of the cloth. Must be greater than zero and smaller or equal to one. In many cases, when you want a cloth to be more stiff, actually reducing the number of vertices will get you better results - and performance. ```...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_267b960841be
unity_docs
rendering
In Unity's 'Set the lighting model in a Surface Shader in the Built-In Render Pipeline', what is 'Declaring lighting models' and how does it work?
A lighting model consists of regular functions with names that begin Lighting . You can declare them anywhere in your shader file, or one of the included files. The functions are: half4 Lighting<Name> (SurfaceOutput s, UnityGI gi); Use this in forward rendering paths for light models that are not dependent on the view ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1cb0d1c971fe
unity_docs
rendering
In Unity's 'Gizmos menu reference', what is 'General options' and how does it work?
Property Function 3D Icons The 3D Icons checkbox controls whether component icons (such as those for Lights and Cameras) are drawn by the Editor in 3D in the Scene view. When the 3D Icons checkbox is ticked, component icons are scaled by the Editor according to their distance from the Camera, and obscured by GameObject...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6d63d507c15f
unity_docs
scripting
What is `Experimental.GraphView.Node.OnPortRemoved` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Node.OnPortRemoved Declaration protected void OnPortRemoved ( Experimental.GraphView.Port port ); Parameters Parameter Description port The removed port. Description Called when port is remove.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bf85a8970024
unity_docs
physics
What is `Physics.defaultSolverVelocityIterations` in Unity? Explain its purpose and usage.
Physics.defaultSolverVelocityIterations public static int defaultSolverVelocityIterations ; Description The defaultSolverVelocityIterations affects how accurately the Rigidbody joints and collision contacts are resolved. (default 1). Must be positive. Increasing this value will result in higher accuracy of the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9d7348d7f44a
unity_docs
physics
What is `Build.OverrideTextureCompression.ForceFastCompressor` in Unity? Explain its purpose and usage.
OverrideTextureCompression.ForceFastCompressor Description Import textures with fast, but lower quality, texture compression. You can set EditorUserBuildSettings.overrideTextureCompression to ForceFastCompressor to import all compressed textures with a faster (but possibly lower quality) texture compression. Th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_ca33a11be82f
unity_docs
scripting
In Unity's 'Create custom Editors with IMGUI', what is 'Scene View Additions' and how does it work?
You can add extra code to the Scene View . To do this, implement OnSceneGUI in your custom editor. OnSceneGUI works just like OnInspectorGUI except it runs in the Scene view. To help you make your own editing controls, you can use the functions defined in the Handles class. All functions in there are designed for worki...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_69d51dd7e248
unity_docs
editor
What is `iOS.Xcode.PBXProject.AddTarget` in Unity? Explain its purpose and usage.
PBXProject.AddTarget Declaration public string AddTarget (string name , string ext , string type ); Parameters Parameter Description name The name of the new target. ext The file extension of the target artifact. Note : Adding a leading . isn't necessary, but is accepted. type The type of the target...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c420c8d09a6a
unity_docs
scripting
Show me a Unity C# example demonstrating `Color.gray`.
Color.gray public static Color gray ; Description Gray. RGBA is (0.5, 0.5, 0.5, 1). ```csharp //Attach this script to a GameObject with a Renderer (go to Create>3D Object and select one of the first 6 options to create a GameObject with a Renderer automatically attached). //This script changes the Color of yo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_25d7f72e05de
unity_docs
scripting
What is `Experimental.GraphView.GraphView.GraphViewChanged` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphView.GraphViewChanged Declaration public delegate Experimental.GraphView.GraphViewChange GraphViewChanged ( Experimental.GraphView.GraphViewChange graphViewChange ); Parameters Parameter Description graphViewChange...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7dfbde1b748b
unity_docs
scripting
Show me a Unity C# example demonstrating `Color32.r`.
Color32.r public byte r ; Description Red component of the color. ```csharp using UnityEngine;public class Example : MonoBehaviour { Color32 color = Color.white; void Start() { color.r = 0; } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_379cee751765
unity_docs
scripting
What is `Experimental.GraphView.GraphView.selection` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphView.selection public List<ISelectable> selection ; Description All currently selected elements in the graph.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_900566b75d12
unity_docs
rendering
What is `Rendering.GraphicsSettings.SetCustomShader` in Unity? Explain its purpose and usage.
GraphicsSettings.SetCustomShader Declaration public static void SetCustomShader ( Rendering.BuiltinShaderType type , Shader shader ); Parameters Parameter Description type Built-in shader type to set custom shader to. shader The shader to use. Description Set custom shader to use instead of a built-i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ddf90c684af3
unity_docs
scripting
What is `VideoClipImporter.Equals` in Unity? Explain its purpose and usage.
VideoClipImporter.Equals Declaration public bool Equals ( VideoClipImporter rhs ); Parameters Parameter Description rhs The importer to compare with. Returns bool Returns true if the settings for both VideoClipImporters match. Returns false otherwise. Description Performs a value comparison with ano...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f21dfe75ee93
unity_docs
rendering
What is `EditorGUIUtility.Load` in Unity? Explain its purpose and usage.
EditorGUIUtility.Load Declaration public static Object Load (string path ); Description Load a built-in resource. This function will look in Assets/Editor Default Resources/ + path for the resource. If not there, it will try the built-in editor resources by name. ```csharp using UnityEngine; using UnityEditor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4d4d87054695
unity_docs
ui
What is `UIElements.VisualElement.enabledInHierarchy` in Unity? Explain its purpose and usage.
VisualElement.enabledInHierarchy public bool enabledInHierarchy ; Description Returns true if the VisualElement is enabled in its own hierarchy. This flag verifies if the element is enabled globally. A parent disabling its child VisualElement affects this variable.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f33c3909990b
unity_docs
editor
What are the parameters of `iOS.Xcode.PBXProject.GetSourcesBuildPhaseByTarget` in Unity?
Returns string Returns the GUID of the existing phase or null if it does not exist. Description Returns the GUID of sources build phase for the given target. ```csharp using UnityEngine; using UnityEditor; using System.IO; using UnityEditor.Callbacks; using UnityEditor.iOS.Xcode;public class Sample_GetSourcesBuildPhase...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6bc929030c3e
unity_docs
scripting
What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemSwap` in Unity? Explain its purpose and usage.
UnsafeUtility.MemSwap Declaration public static void MemSwap (void* ptr1 , void* ptr2 , long size ); Parameters Parameter Description ptr1 A pointer to the first memory buffer. This buffer will be swapped with the second one. ptr2 A pointer to the second memory buffer to swap with the first. Ensure both ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_27f36d7d6c0e
unity_docs
rendering
What is `Light.enableSpotReflector` in Unity? Explain its purpose and usage.
Light.enableSpotReflector public bool enableSpotReflector ; Description Wether a Spot Light should simulate having a reflector. When enabled, indicates that the Spot Light intensity should be simulated using a reflector. This means the narrower the Outer Angle, the more intense the Spot Light. When disabled, t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_83382129ee41
unity_docs
rendering
What is `CustomRenderTexture.GetDoubleBufferRenderTexture` in Unity? Explain its purpose and usage.
CustomRenderTexture.GetDoubleBufferRenderTexture Declaration public RenderTexture GetDoubleBufferRenderTexture (); Returns RenderTexture If CustomRenderTexture. doubleBuffered is true, this returns the Render Texture that this Custom Render Texture uses for double buffering. If CustomRenderTexture. doubleBu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4caf2514d1b2
unity_docs
scripting
In Unity's 'Loading assets from AssetBundles', what is 'Loading AssetBundles' and how does it work?
You can use the following APIs to load AssetBundles: The static Load methods on the AssetBundle class, for example AssetBundle.LoadFromFile . This class has a range of loading methods depending on the AssetBundle location and whether you want to load it synchronously or asynchronously. The UnityWebRequest support for A...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a18a4b099e0d
unity_docs
scripting
What is `Experimental.GraphView.GraphView.BuildContextualMenu` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphView.BuildContextualMenu Declaration public void BuildContextualMenu ( UIElements.ContextualMenuPopulateEvent evt ); Parameters Parameter Description evt The event holding the menu to populate. Description Add men...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f51032abbc0d
unity_docs
scripting
What are the parameters of `Mesh.GetVertexBufferStride` in Unity?
Returns int Vertex data size in bytes in this stream, or zero if the stream is not present. Description Get vertex buffer stream stride in bytes. Meshes usually use a single vertex buffer stream. But it is possible to setup a vertex layout where some attributes use different vertex buffers (see SetVertexBufferParams , ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3b603187b05b
unity_docs
ui
Show me a Unity C# example demonstrating `GUILayout.EndVertical`.
GUILayout.EndVertical Declaration public static void EndVertical (); Description Close a group started with BeginVertical. Vertical Layout. ```csharp using UnityEngine;public class ExampleScript : MonoBehaviour { void OnGUI() { GUILayout.BeginVertical("box"); GUILayout.Button("I'm the top button"); GUILayo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cd0dfe53c28f
unity_docs
rendering
What is `ModelImporter.isReadable` in Unity? Explain its purpose and usage.
ModelImporter.isReadable public bool isReadable ; Description Are mesh vertices and indices accessible from script? Making a mesh readable will keep two copies of it in memory, one for rendering and one in system memory for script access. Setting isReadable to false therefore saves memory. Scaling a mesh with d...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_284864e6b372
unity_docs
xr
Explain 'New in Unity 6.0' in Unity.
Unity 6.0 is the latest version of Unity. Unity 6.0 includes all the features from Unity 6.0 Preview, 2023.2, and 2023.1. To find out the changes and known issues in this version of Unity, refer to the Unity 6.0 Release Notes . To find the release notes for other releases, refer to the Unity download archive . If you a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_70767284d394
github
scripting
Write a Unity C# script called Load Cloud Save Unity Event
```csharp using System.Collections.Generic; using System.Threading.Tasks; using RMC.Mini.Service; using Unity.Services.Authentication; using Unity.Services.CloudSave.Models; using Unity.Services.Core; using UnityEngine; using UnityEngine.Events; namespace RMC.Mini.Samples.UGS.Mini.Service { // Namespace Propertie...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_1cff98f32f38
unity_docs
rendering
What is `Experimental.GlobalIllumination.FalloffType.Legacy` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. FalloffType.Legacy Description Quadratic falloff model. This is the legacy falloff model. It is not physically based. It is a quadratic falloff within the light range. It is normalised to the light range, which causes the shaded...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_eb1722c3d461
unity_docs
physics
What is `Physics.OverlapCapsuleNonAlloc` in Unity? Explain its purpose and usage.
Physics.OverlapCapsuleNonAlloc Declaration public static int OverlapCapsuleNonAlloc ( Vector3 point0 , Vector3 point1 , float radius , Collider[] results , int layerMask = AllLayers, QueryTriggerInteraction queryTriggerInteraction = QueryTriggerInteraction.UseGlobal); Parameters Parameter Descripti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_77ef5938bfd2
unity_docs
rendering
In Unity's 'Introduction to material properties', what is 'How property values are provided to shaders' and how does it work?
Shader property values are found and provided to shaders from these places: Per-Renderer values set in MaterialPropertyBlock . This is typically “per-instance” data (e.g. customized tint color for a lot of objects that all share the same material). Values set in the Material that’s used on the rendered object. Global s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e2e8102cd66e
unity_docs
editor
Show me a Unity C# example demonstrating `EditorGUILayout.BeginToggleGroup`.
; Parameters Parameter Description label Label to show above the toggled controls. toggle Enabled state of the toggle group. Returns bool The enabled state selected by the user. Description Begin a vertical group with a toggle to enable or disable all the controls within at once. Additional resources:...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_616e045010b5
github
scripting
Write a Unity C# MonoBehaviour script called Solid Behaviour
```csharp using System; using UnityEngine; /*Copyright (c) Created by Oleksii Volovich 2021*/ namespace Solid.Core { public abstract class SolidBehaviour : MonoBehaviour { private static object[] _parameters; public int ID { get; } private void Awake() { t...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_f3a517c086d9
unity_docs
physics
What is `UIElements.FocusController.IgnoreEvent` in Unity? Explain its purpose and usage.
FocusController.IgnoreEvent Declaration public void IgnoreEvent ( UIElements.EventBase evt ); Parameters Parameter Description evt The event to be ignored. Description Instructs the FocusController to ignore the given event. This will prevent the event from changing the current focused VisualElement or ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_116764dfa2bf
unity_docs
math
What is `XR.XRInputSubsystem.TryGetBoundaryPoints` in Unity? Explain its purpose and usage.
XRInputSubsystem.TryGetBoundaryPoints Declaration public bool TryGetBoundaryPoints (List<Vector3> boundaryPoints ); Parameters Parameter Description boundaryPoints The list of boundary points. Returns bool True if this XRInputSubsystem supports boundary points and they are available. Returns false othe...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2dfb4ca9043d
unity_docs
scripting
What is `Experimental.GraphView.Placemat.StartEditTitle` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Placemat.StartEditTitle Declaration public void StartEditTitle (); Description Sets the focus to the title of placemat and sets the title for editing.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_d248317a7d73
github
scripting
Write a Unity C# script called Character View
```csharp using System; using UnityEngine; [DisallowMultipleComponent] class CharacterView : CharacterBehaviour { public enum Mode { None, Eyes, FirstPerson, ThirdPerson } [Serializable] protected struct EyesData { public Transform eyes; } [Ser...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_69a728d75325
unity_docs
scripting
What is `SystemInfo.supportedRandomWriteTargetCount` in Unity? Explain its purpose and usage.
SystemInfo.supportedRandomWriteTargetCount public static int supportedRandomWriteTargetCount ; Description The maximum number of random write targets (UAV) that Unity supports simultaneously. (Read Only) Additional resources: Graphics.SetRandomWriteTarget .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_4c36fb77052b
github
scripting
Write a Unity C# MonoBehaviour script called Coroutine Extensions
```csharp using System; using System.Collections; using UnityEngine; namespace THEBADDEST.Coroutines { public static class CoroutineExtensions { public static UnityEngine.Coroutine StartStaticCoroutine(this object o,IEnumerator enumerator) { return CoroutineHandler.StartStaticCoroutine(enumerator); } ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a891ea7c55c3
unity_docs
performance
What is `Profiling.RawFrameDataView.GetSampleName` in Unity? Explain its purpose and usage.
RawFrameDataView.GetSampleName Declaration public string GetSampleName (int sampleIndex ); Parameters Parameter Description sampleIndex Index of the Profiler sample. Returns string Returns sample name. Returns null if sample index is invalid. Description Gets the name of the specific sample. Note:...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ff0cae78820b
unity_docs
performance
What is `Unity.Collections.NativeArray_1.ReinterpretLoad` in Unity? Explain its purpose and usage.
NativeArray<T0>.ReinterpretLoad Declaration public U ReinterpretLoad (int sourceIndex ); Parameters Parameter Description sourceIndex Index in the underlying array where the load should start. Returns U The loaded data. Description Reinterpret and load data starting at underlying index as a different...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6c9207008551
unity_docs
physics
What is `PhysicsShapeGroup2D.vertexCount` in Unity? Explain its purpose and usage.
PhysicsShapeGroup2D.vertexCount public int vertexCount ; Description The total number of vertices in the shape group used to represent all PhysicsShape2D within it. (Read Only) ```csharp using UnityEngine; using UnityEngine.Assertions;public class Example : MonoBehaviour { private const int ShapeCount = 10; ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c66c9582d155
unity_docs
rendering
Show me a Unity C# example demonstrating `Search.SearchValue.SetupEngine`.
archValue.SetupEngine Declaration public static void SetupEngine (QueryEngine<T> queryEngine ); Parameters Parameter Description queryEngine Query engine to add extended search value filters and parsers. Description Extended a query engine to work with dynamic search values. Here's a few example of custom...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cbc33d9b264d
unity_docs
xr
What is `VRTextureUsage` in Unity? Explain its purpose and usage.
VRTextureUsage enumeration Description This enum describes how the RenderTexture is used as a VR eye texture. Instead of using the values of this enum manually, use the value returned by eyeTextureDesc or other VR functions returning a RenderTextureDescriptor . Properties Property Description None The Rend...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ef4c3ffff0f5
unity_docs
scripting
What is `RuntimeInitializeOnLoadMethodAttribute.ctor` in Unity? Explain its purpose and usage.
RuntimeInitializeOnLoadMethodAttribute Constructor Declaration public RuntimeInitializeOnLoadMethodAttribute (); Declaration public RuntimeInitializeOnLoadMethodAttribute ( RuntimeInitializeLoadType loadType ); Parameters Parameter Description loadType Specifies when the callback is invoked during the s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8e756954e043
unity_docs
scripting
What is `AndroidJNI.EnsureLocalCapacity` in Unity? Explain its purpose and usage.
AndroidJNI.EnsureLocalCapacity Declaration public static int EnsureLocalCapacity (int capacity ); Description Ensures that at least a given number of local references can be created in the current thread. Additional resources: Java Native Interface Specification (Oracle)
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ce5cd6f19dea
unity_docs
physics
What is `Rigidbody2D.linearVelocityX` in Unity? Explain its purpose and usage.
Rigidbody2D.linearVelocityX public float linearVelocityX ; Description The X component of the linear velocity of the Rigidbody2D in world-units per second. The linear velocity is specified as a Vector2 with components in the X and Y directions (there is no Z direction in 2D physics). This property lets you re...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_db27c4b72b04
unity_docs
rendering
What are the parameters of `Mesh.SetIndices` in Unity?
Description Sets the index buffer for the sub-mesh. A sub-mesh represents a list of triangles (or indices with a different MeshTopology ) that are rendered using a single Material . When the Mesh is used with a Renderer that has multiple materials, you should ensure that there is one sub-mesh per Material. SetTriangles...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_df7dd69442c4
unity_docs
editor
Show me a Unity code example for 'Create a custom Editor window with C# script'.
es, the example uses AssetDatabase to find all sprites in a project. For the sprite browser, add a TwoPaneSplitView to split the available window space into two panes: one that is fixed-size and one that is flexibly sized. When you resize the window, the flexible pane resizes while the fixed-size pane remains the same ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_470ac8c72291
unity_docs
scripting
What is `Experimental.GraphView.BlackboardRow` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. BlackboardRow class in UnityEditor.Experimental.GraphView / Inherits from: Experimental.GraphView.GraphElement Description Collapsible GraphElement that represents a row in a BlackboardSection. A BlackboardRow contains a Vis...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b5328728f9e9
unity_docs
networking
Explain 'Create callbacks between Unity C#, JavaScript, and C/C++/C# code' in Unity.
Callbacks are an important part of web development because they let your Unity project communicate better with your JavaScript browser, JavaScript plug-in , and C/C++/C# plug-ins. You might want to call functions from your C/C++/C# or JavaScript code in your Unity C# code, and callbacks are an effective way to do this....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_79344f8f37be
github
scripting
Write a Unity C# MonoBehaviour script called Mono Singleton
```csharp using UnityEngine; namespace GameUtil { public abstract class MonoSingleton<T> : MonoBehaviour where T : MonoSingleton<T>, new() { #if UNITY_EDITOR protected static bool IsApplicationQuit { private set; get; } #endif private static T instance; public static T In...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_707af496c177
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.A2B10G10R10_UNormPack32` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.A2B10G10R10_UNormPack32 Description A four-component, 32-bit packed unsigned normalized format that has a 2-bit A component in bits 30..31, a 10-bit B component in bits 20..29, a 10-bit G component in bits 10..19, ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5193f8dd7c99
unity_docs
scripting
What is `UIElements.UIDocument` in Unity? Explain its purpose and usage.
UIDocument class in UnityEngine.UIElements / Inherits from: MonoBehaviour / Implemented in: UnityEngine.UIElementsModule Description Defines a Component that connects VisualElements to GameObjects. This makes it possible to render UI defined in UXML documents in the Game view. Properties Property Descri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_00720791a740
unity_docs
editor
Show me a Unity code example for 'Create an aspect ratio custom control'.
o. You can find the completed files that this example creates in this GitHub repository . ## Create the custom control class Create a C# class that inherits from VisualElement with two attributes: width and height . The width and height attributes are used to calculate the aspect ratio. Create a Unity project with an...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_03454eea432d
unity_docs
scripting
What is `PlayerSettings.iOS.requiresFullScreen` in Unity? Explain its purpose and usage.
PlayerSettings.iOS.requiresFullScreen public static bool requiresFullScreen ; Description RequiresFullScreen maps to Apple's plist build setting UIRequiresFullScreen, which is used to opt out of being eligible to participate in Slide Over and Split View for iOS 9.0 multitasking.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8bd004f8e551
unity_docs
animation
What is `AnimationMode.StartAnimationMode` in Unity? Explain its purpose and usage.
AnimationMode.StartAnimationMode Declaration public static void StartAnimationMode (); Declaration public static void StartAnimationMode ( AnimationModeDriver driver ); Parameters Parameter Description driver Specify an AnimationModeDriver object to lock the AnimationMode to a driver. Description ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6a491c40c022
unity_docs
physics
What is `ArticulationBody.IsSleeping` in Unity? Explain its purpose and usage.
ArticulationBody.IsSleeping Declaration public bool IsSleeping (); Description Indicates whether the articulation body is sleeping. See the Physics Overview in the manual for more information about Rigidbody/ArticulationBody sleeping.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_08452a361312
unity_docs
rendering
What are the parameters of `Rendering.RayTracingShader.SetShaderPass` in Unity?
Description Selects which Shader Pass to use when executing ray/geometry intersection shaders. This name is specified in the ShaderLab shaders used by Materials applied to Renderers used in ray tracing. If a shader doesn't have a Shader Pass with the specified name, then no ray/geometry intersection code is executed. T...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_66c741659ebc
unity_docs
audio
Show me a Unity C# example demonstrating `Microphone.Start`.
ple rate. Returns AudioClip The function returns null if the recording fails to start. Description Start Recording with device. If you pass a null or empty string for the device name then the default microphone is used. You can get a list of available microphone devices from the devices property and the rang...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_02e5dfe74eef
unity_docs
xr
Show me a Unity code example for 'Cache behavior in Web'.
Web Cache behavior By default, the cache configuration stores the asset data file .data and AssetBundle files .bundle, and revalidates them before loading them from the cache. To change this behavior, add a new Web template that changes the UnityLoader configuration. The following example shows how to add a custom cac...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_29983403ddd3
unity_docs
scripting
Show me a Unity C# example demonstrating `ParticleSystem.CollisionModule.bounce`.
ParticleSystem.CollisionModule.bounce public ParticleSystem.MinMaxCurve bounce ; Description How much force is applied to each particle after a collision. Additional resources: ParticleSystem.collision , MinMaxCurve . ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleS...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_a560da6472d4
github
scripting
Write a Unity C# ScriptableObject for App Settings
```csharp using UnityEngine; namespace Fiftytwo { [CreateAssetMenu] public class AppSettings : ScriptableObject { public static AppSettings Instance; public App AppPrefab; private void OnEnable() { if (Instance != null) throw new ...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_0b5d91c21375
unity_docs
rendering
What is `Rendering.BatchRendererGroup.UnregisterMaterial` in Unity? Explain its purpose and usage.
BatchRendererGroup.UnregisterMaterial Declaration public void UnregisterMaterial ( Rendering.BatchMaterialID material ); Parameters Parameter Description material BatchRendererGroup Material ID. Description Unregister the Material ID associated with BatchRendererGroup . Each deregistration of a specific...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e93e9ec72bf7
unity_docs
scripting
What is `LightEditor` in Unity? Explain its purpose and usage.
LightEditor class in UnityEditor / Inherits from: Editor Description The class used to render the Light Editor when a Light is selected in the Unity Editor. Properties Property Description settings The settings helper that can be used for rendering a custom LightEditor. Public Methods Method Description...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_23f6cdbe5bff
unity_docs
math
What is `AI.NavMesh.CalculateTriangulation` in Unity? Explain its purpose and usage.
NavMesh.CalculateTriangulation Declaration public static AI.NavMeshTriangulation CalculateTriangulation (); Returns NavMeshTriangulation Object that contains a list of vertices and a list of indices that describe the triangles of the active NavMeshes. Description Calculates a triangulation of all the Nav...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_198eaa534aa5
unity_docs
math
Show me a Unity C# example demonstrating `Mathf.MoveTowardsAngle`.
, float target , float maxDelta ); Description Same as MoveTowards but makes sure the values interpolate correctly when they wrap around 360 degrees. Variables current and target are assumed to be in degrees. For optimization reasons, negative values of maxDelta are not supported and may cause oscillatio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_74fc56c7f25a_doc_3
github
scripting
What does `Paint` do in this Unity script? Explain its purpose and signature.
Paints Prefabs into a given position within the selected layers.The PrefabBrush overrides this to provide Prefab painting functionality.Grid used for layout.Target of the paint operation. By default the currently selected GameObject.The coordinates of the cell to paint data to. Signature: ```csharp public override voi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8b28238d746f
unity_docs
scripting
What is `UIElements.BaseTreeView.IsExpanded` in Unity? Explain its purpose and usage.
BaseTreeView.IsExpanded Declaration public bool IsExpanded (int id ); Parameters Parameter Description id The TreeView item identifier. Description Returns true if the specified TreeView item is expanded, false otherwise.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c67bad82f384
unity_docs
editor
Show me a Unity C# example demonstrating `Search.QueryEngine_1.SetSearchDataCallback`.
mparison String comparison options. Description Sets the callback used to fetch the data that is matched against the search words. This function lets you register a callback that will be called on each element of the data set you are trying to filter, in order to retrieve the search data that will be compared again...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_441f391f9fce
unity_docs
scripting
What is `AudioType.VAG` in Unity? Explain its purpose and usage.
AudioType.VAG Description The audio file you want to stream has the VAG audio file format for PlayStation. Use this enumeration value to ensure the format type of the audio file has the VAG audio file format. Use this audio type for files with the extension .vag . If the audio file has a different format, Unity mig...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_82183dd80718
unity_docs
math
What is `AndroidJNIHelper.ConvertFromJNIArray` in Unity? Explain its purpose and usage.
AndroidJNIHelper.ConvertFromJNIArray Declaration public static ArrayType ConvertFromJNIArray (IntPtr array ); Parameters Parameter Description array Java array object to be converted into a managed array. Description Creates a managed array from a Java array. Additional resources: AndroidJNIHelper.Conver...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1e37d0979488
unity_docs
scripting
What is `PlayerSettings.iOS.tvOSManualProvisioningProfileID` in Unity? Explain its purpose and usage.
PlayerSettings.iOS.tvOSManualProvisioningProfileID public static string tvOSManualProvisioningProfileID ; Description A provisioning profile Universally Unique Identifier (UUID) that Xcode will use to build your tvOS app in Manual Signing mode.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f4bcd7929710
unity_docs
editor
What is `Build.Content.ObjectSerializedInfo` in Unity? Explain its purpose and usage.
ObjectSerializedInfo struct in UnityEditor.Build.Content Description Struct containing details about how an object was serialized. Note: this struct and its members exist to provide low-level support for the Scriptable Build Pipeline package. This is intended for internal use only; use the Scriptable Build Pip...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cacd9b593b35
unity_docs
scripting
Show me a Unity C# example demonstrating `Event.delta`.
Event.delta public Vector2 delta ; Description The relative movement of the mouse compared to last event. Used in EventType.MouseMove , EventType.MouseDrag , EventType.ScrollWheel events. Additional resources: Event.mousePosition . ```csharp using UnityEngine;public class Example : MonoBehaviour { // M...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e87b532d4356
unity_docs
scripting
What is `Rendering.ScopedRenderPass` in Unity? Explain its purpose and usage.
ScopedRenderPass struct in UnityEngine.Rendering / Implemented in: UnityEngine.CoreModule Description Represents an active render pass until disposed. Additional resources: ScriptableRenderContext.BeginScopedRenderPass . Public Methods Method Description Dispose Ends the current render pass in the Scriptab...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ac15bcc1bcee
unity_docs
scripting
What is `Search.SearchExpression.Execute` in Unity? Explain its purpose and usage.
SearchExpression.Execute(SearchContext,SearchExpressionExecutionFlags) Parameters Parameter Description searchContext SearchContext used to initialize the SearchExpressionContext that will encapsulate all information relative to expression evaluation. executionFlags Execution flags helping define how to evaluat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_908b4a874593
unity_docs
scripting
Give me an overview of the `FlareLayer` class in Unity.
FlareLayer class in UnityEngine / Inherits from: Behaviour / Implemented in: UnityEngine.CoreModule Description FlareLayer component. The FlareLayer is a lensflare component to be used on cameras. It has no properties. Inherited Members Properties Property Description enabled Enabled Behaviours are Updated...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6aca9baa861c
unity_docs
math
Show me a Unity C# example demonstrating `Color.operator_Color`.
Color.Vector4 Description Colors can be implicitly converted to and from Vector4 . ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { Vector4 newV4 = new Color(0.3f, 0.4f, 0.6f); } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d5b094a59fcb
unity_docs
ui
What is `GUI.backgroundColor` in Unity? Explain its purpose and usage.
GUI.backgroundColor public static Color backgroundColor ; Description Global tinting color for all background elements rendered by the GUI. This gets multiplied by color . Additional resources: contentColor , color . Yellow Background color applied to a button. ```csharp using UnityEngine; using System.C...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.