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_486ee2f3de71
unity_docs
physics
Explain 'RenderDoc Integration' in Unity.
The Editor supports integrated launching and capture of the RenderDoc graphics debugger, for detailed frame introspection and debugging. The integration is only supported for RenderDoc versions 0.26 or later, so if an earlier version is currently installed it is required that you update to at least version 0.26. Note: ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9f364fe253b8
unity_docs
math
Show me a Unity C# example demonstrating `Mathf.Approximately`.
Approximately (float a , float b ); Description Compares two floating point values and returns true if they are similar. Floating point imprecision makes comparing floats using the equals operator inaccurate. For example, (1.0 == 10.0 / 10.0) might not return true every time. Approximately() compares two float...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_040299d23a4b
unity_docs
networking
What is `Android.AndroidConfiguration.smallestScreenWidthDp` in Unity? Explain its purpose and usage.
AndroidConfiguration.smallestScreenWidthDp public int smallestScreenWidthDp ; Description Mirrors the Android property smallestScreenWidthDp . For information about this property, refer to the Android developer documentation on smallestScreenWidthDp .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_940fe654e1cf
unity_docs
scripting
What is `Search.QueryEngine_1.RemoveFilter` in Unity? Explain its purpose and usage.
QueryEngine<T0>.RemoveFilter Declaration public void RemoveFilter (string token ); Declaration public void RemoveFilter (Regex token ); Parameters Parameter Description token The identifier of the filter. Typically what precedes the operator in a filter (for example, "id" in "id>=2"). Description Remo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9fc07c2be3c2
unity_docs
scripting
Show me a Unity C# example demonstrating `AI.NavMeshObstacle.center`.
NavMeshObstacle.center public Vector3 center ; Description The center of the obstacle, measured in the object's local space. Note: When a NavMeshObstacle is created the center is set to zero. ```csharp // Default center is (0, 0, 0) using UnityEngine; using UnityEngine.AI;public class ExampleScript : ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d4237f370d26
unity_docs
physics
Explain 'The Package Manager window' in Unity.
Access the Package Manager window from the Unity Editor’s Window menu. Use the Package Manager window to: View which packages and feature sets are available for installation or already installed in your project. Check which package versions are available . Install, update, or remove UPM packages or feature sets . Downl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_92c0f651b790
unity_docs
editor
What are the parameters of `iOS.Xcode.PBXProject.ReadFromString` in Unity?
Description Reads the project from the given string. Current contents of the project are discarded. ```csharp using UnityEditor; using System.IO; using UnityEditor.Callbacks; using UnityEditor.iOS.Xcode;public class Sample_ReadFromString { [PostProcessBuild] public static void OnPostprocessBuild(BuildTarget b...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_dd6df5bb20c3_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Binds world-space UI to XR controllers and handles raycasting Signature: ```csharp public class XRUIBinder : MonoBehaviour ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_803f84df54fc
unity_docs
editor
What is `TerrainTools.TerrainPaintToolWithOverlaysBase.OnRenderBrushPreview` in Unity? Explain its purpose and usage.
TerrainPaintToolWithOverlaysBase.OnRenderBrushPreview Declaration public void OnRenderBrushPreview ( Terrain terrain , TerrainTools.IOnSceneGUI editContext ); Parameters Parameter Description terrain Active Terrain object. editContext Interface used to communicate between Editor and Paint tools. Descr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1136b3bd2a5e
unity_docs
animation
What is `Animations.AnimationScriptPlayable.SetJobData` in Unity? Explain its purpose and usage.
AnimationScriptPlayable.SetJobData Declaration public void SetJobData (T jobData ); Parameters Parameter Description jobData The new IAnimationJob data to set in the playable. Description Sets a new job data in the playable. The generic type must be the same as the one used for the creation of the playa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3bc9362bab2e
unity_docs
scripting
What is `AsyncOperation.allowSceneActivation` in Unity? Explain its purpose and usage.
AsyncOperation.allowSceneActivation public bool allowSceneActivation ; Description Allow Scenes to be activated as soon as it is ready. You can use this with SceneManager.LoadSceneAsync to delay the actual activation of the Scene and unloading of the previous Scene. When allowSceneActivation is set to false...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5ab14dc53c6c
unity_docs
rendering
What is `Experimental.Rendering.GraphicsStateCollection.RemoveGraphicsStatesForVariant` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsStateCollection.RemoveGraphicsStatesForVariant Declaration public bool RemoveGraphicsStatesForVariant ( Shader shader , Rendering.PassIdentifier passId , LocalKeyword[] keywords ); Parameters Parameter Descript...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_700a802537d5
unity_docs
input
What is `Experimental.GraphView.SelectionDropper.OnMouseDown` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. SelectionDropper.OnMouseDown Declaration protected void OnMouseDown ( UIElements.MouseDownEvent e ); Parameters Parameter Description e The event. Description Called on mouse down event.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d1a046baba1f
unity_docs
rendering
What is `Experimental.GlobalIllumination.RenderSettings.useRadianceAmbientProbe` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. RenderSettings.useRadianceAmbientProbe public static bool useRadianceAmbientProbe ; Description If enabled, ambient trilight will be sampled using the old radiance sampling method. This feature is here to maintain backwards ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_704a64bcbbea
unity_docs
ui
Show me a Unity C# example demonstrating `Viewpoint_1`.
s overlay, you can use the Cameras overlay to look through that component in the Scene view. To use this class, you must have a custom representation of your camera lens in a MonoBehaviour . When detected, the Cameras overlay creates an instance of the Viewpoint class for each component that is type T0 in the scene. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_75b361afd958
unity_docs
scripting
What is `ParticleSystem.ForceOverLifetimeModule.z` in Unity? Explain its purpose and usage.
ParticleSystem.ForceOverLifetimeModule.z public ParticleSystem.MinMaxCurve z ; Description The curve defining particle forces in the z-axis. Additional resources: MinMaxCurve . ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoB...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_285c0851dff1
unity_docs
scripting
What is `TerrainData.RemoveDetailPrototype` in Unity? Explain its purpose and usage.
TerrainData.RemoveDetailPrototype Declaration public void RemoveDetailPrototype (int index ); Parameters Parameter Description index The index of the detail prototype. Description Removes the detail prototype at the specified index.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_6910d9d9a9ea_doc_21
github
scripting
What does `OnTriggerExit2DAsObservable` do in this Unity script? Explain its purpose and signature.
Sent when another object leaves a trigger collider attached to this object (2D physics only). Signature: ```csharp public static IObservable<Collider2D> OnTriggerExit2DAsObservable(this Component component) ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_c786cfaa0b8f
unity_docs
scripting
What is `CombineInstance.subMeshIndex` in Unity? Explain its purpose and usage.
CombineInstance.subMeshIndex public int subMeshIndex ; Description Sub-Mesh index of the Mesh. This property holds the index to a submesh inside a Mesh object that is to be combined. The property is an integer value of 0 by default. Additional resources: Mesh.CombineMeshes , mesh , transform .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b73856bfc481
unity_docs
scripting
Explain 'Load SSH keys automatically on macOS' in Unity.
If you use macOS, follow these steps to configure the OpenSSH client so you can use your passphrase-protected SSH key without prompts. ## Before you begin Check if you have any existing SSH keys. Refer to the GitHub Docs article, Checking for existing SSH keys . If you don’t have an SSH key: Create one by following t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3eb4e48d07f3
unity_docs
physics
What are the parameters of `Unity.Profiling.Memory.MemoryProfiler.TakeTempSnapshot` in Unity?
Description Triggers a memory snapshot capture to the Application.temporaryCachePath folder. Internally MemoryProfiler.TakeSnapshot is called with the destination path set to the "< Application.temporaryCachePath >/<projectName>.snap". ```csharp using System.Collections; using System.IO; using Unity.Profiling.Memory; u...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_209c72dd9928
unity_docs
scripting
Show me a Unity C# example demonstrating `SerializedObject.FindProperty`.
SerializedObject.FindProperty Declaration public SerializedProperty FindProperty (string propertyPath ); Description Find serialized property by name. You can use this to find a specific property in the target object. Additional resources: GetIterator , SerializedProperty . ```csharp using UnityEngine; us...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ba2815332926
unity_docs
physics
What are the parameters of `MonoBehaviour.OnCollisionStay2D` in Unity?
Description Sent each frame where a collider on another object is touching this object's collider (2D physics only). Further information about the objects involved is reported in the Collision2D parameter passed during the call. If you don't need this information then you can declare OnCollisionStay2D without the param...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e4d8e34b72ce
unity_docs
editor
What is `Unity.Profiling.Editor.ProfilerModule.CreateDetailsViewController` in Unity? Explain its purpose and usage.
ProfilerModule.CreateDetailsViewController Declaration public Unity.Profiling.Editor.ProfilerModuleViewController CreateDetailsViewController (); Returns ProfilerModuleViewController Returns a ProfilerModuleViewController derived object that draws the module’s Details View in the Profiler window. The defau...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_52ccd3526b2d
unity_docs
audio
In Unity's 'Develop an ambisonic audio decoder', what is 'Set up an ambisonic audio decoder plug-in' and how does it work?
You can set up an ambisonic audio decoder in the same way as you’d set up an Audio Spatializer . However, the following parameters in the AudioPluginInterface.h file are specific to ambisonic audio decoder plug-ins: The UnityAudioEffectDefinitionFlags_IsAmbisonicDecoder effect definition flag The UnityAudioAmbisonicDat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5233cfb8c7f4
unity_docs
rendering
What is `CubemapArray.GetPixelData` in Unity? Explain its purpose and usage.
CubemapArray.GetPixelData Declaration public NativeArray<T> GetPixelData (int mipLevel , CubemapFace face , int element ); Parameters Parameter Description mipLevel The mipmap level to read from. The range is 0 through the texture's Texture.mipmapCount . The default value is 0 . face The CubemapF...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_09aee1e8c5fc
unity_docs
animation
What is `Animations.AnimatorStateTransition.orderedInterruption` in Unity? Explain its purpose and usage.
AnimatorStateTransition.orderedInterruption public bool orderedInterruption ; Description The Transition can be interrupted by a transition that has a higher priority. Transition priority is based on the order that transitions are listed in the source AnimatorState.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3aea0a4445b6
unity_docs
rendering
What is `Rendering.CommandBuffer.CopyTexture` in Unity? Explain its purpose and usage.
CommandBuffer.CopyTexture Declaration public void CopyTexture ( Rendering.RenderTargetIdentifier src , Rendering.RenderTargetIdentifier dst ); Declaration public void CopyTexture ( Rendering.RenderTargetIdentifier src , int srcElement , Rendering.RenderTargetIdentifier dst , int dstElement ); Decl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_46c25d9b64f0
unity_docs
rendering
What is `Rendering.GraphicsSettings.GetSettingsForRenderPipeline` in Unity? Explain its purpose and usage.
GraphicsSettings.GetSettingsForRenderPipeline Declaration public static Rendering.RenderPipelineGlobalSettings GetSettingsForRenderPipeline (Type renderPipelineType ); Declaration public static Rendering.RenderPipelineGlobalSettings GetSettingsForRenderPipeline (); Parameters Parameter Description ren...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_611fd53617e0
unity_docs
scripting
What is `SettingsProvider.settingsPath` in Unity? Explain its purpose and usage.
SettingsProvider.settingsPath public string settingsPath ; Description Gets Path used to place the SettingsProvider in the tree view of the Settings window. The path should be unique among all other settings paths and should use "/" as its separator.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_363b33f25181
unity_docs
rendering
What is `FogMode` in Unity? Explain its purpose and usage.
FogMode enumeration Description Fog mode to use. Additional resources: RenderSettings.fogMode , Lighting Window . Properties Property Description Linear Linear fog. Exponential Exponential fog. ExponentialSquared Exponential squared fog (default).
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d6c7ac497324
unity_docs
rendering
What is `ParticleSystem.RotationBySpeedModule.xMultiplier` in Unity? Explain its purpose and usage.
ParticleSystem.RotationBySpeedModule.xMultiplier public float xMultiplier ; Description Speed multiplier along the x-axis. Changing this property is more efficient than accessing the entire curve, if you only want to change the overall speed multiplier. ```csharp using UnityEngine; using System.Collections;[R...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5ee0d37e7a5a
unity_docs
audio
Show me a Unity code example for 'Search the Unity Asset Store'.
search window for the Asset Store provider, from the main menu, select Window > Search > Asset Store . ## Query syntax Provider token: store: Note: You can’t implicitly use this search provider as part of a default search . You must explicitly use its search token or its visual query filter. Query example: Search for...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5eac60e12779
unity_docs
rendering
What is `Rendering.VertexAttribute.TexCoord2` in Unity? Explain its purpose and usage.
VertexAttribute.TexCoord2 Description Additional texture coordinate. UVs usually use Vector2 format. Vector2 uses two 32-bit floats; 8 bytes in total. This vertex attribute maps to the TEXCOORD2 semantic in HLSL. This UV channel is also commonly called "UV2". It corresponds to Mesh.uv3 . Additional resources: ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_936b3591c1d9
unity_docs
scripting
What is `Build.Player.ScriptCompilationOptions.Assertions` in Unity? Explain its purpose and usage.
ScriptCompilationOptions.Assertions Description Include assertions in the compiled scripts. By default, the assertions are only included in development builds. Internal use only. See ScriptCompilationOptions .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_1ae44e2f7238
github
scripting
Write a Unity C# MonoBehaviour script called A Update Manager Behaviour
```csharp using System; using UnityEngine; namespace Gilzoide.UpdateManager { /// <summary> /// <see cref="MonoBehaviour"/> abstract class with automatic registration in <see cref="UpdateManager"/>. /// </summary> /// <remarks> /// Instances will register themselves for updates in the <c>OnEnable</...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_484cbcf43460_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
A pool that manages MonoBehaviour-based objects, providing methods to create, retrieve, return, and destroy them.The type of MonoBehaviour that is poolable and implements the interface. Signature: ```csharp public sealed class MonoPool<T> : PoolBase<T> where T : MonoBehaviour, IPoolable ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_ed05a2c1bb05
unity_docs
editor
What is `iOS.Xcode.PBXProject.BuildConfigByName` in Unity? Explain its purpose and usage.
PBXProject.BuildConfigByName Declaration public string BuildConfigByName (string targetGuid , string name ); Parameters Parameter Description targetGuid The GUID of the target, such as the one returned by TargetGuidByName . name The name of the build configuration. Returns string The GUID of the buil...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f1226cd3ee11
unity_docs
scripting
What is `UIElements.PanelChangedEventBase_1` in Unity? Explain its purpose and usage.
PanelChangedEventBase<T0> class in UnityEngine.UIElements / Inherits from: UIElements.EventBase_1 / Implemented in: UnityEngine.UIElementsModule Implements interfaces: IPanelChangedEvent Description Abstract base class for events notifying of a panel change. Properties Property Description destinationP...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_59ddf5dc62ef
unity_docs
physics
Give me an overview of the `ConfigurableJointMotion` class in Unity.
ConfigurableJointMotion enumeration Description Constrains movement for a ConfigurableJoint along the 6 axes. Properties Property Description Locked Motion along the axis will be locked. Limited Motion along the axis will be limited by the respective limit. Free Motion along the axis will be completely free...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7ba1b2d8279f
unity_docs
scripting
What is `Device.Application.productName` in Unity? Explain its purpose and usage.
Application.productName public static string productName ; Description This has the same functionality as Application.productName . At the moment, the Device Simulator doesn't support simulation of this property.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_77b91f55958e
unity_docs
physics
In Unity's 'Profiler markers reference', what is 'Main thread base markers' and how does it work?
The main thread base markers provide a clear separation between the time spent on your application and time spent on Unity Editor and Profiler activities. You can also use these markers with the ProfilerRecorder API to get the timing of a frame on the main thread, or the FrameTimingManager API for high level frame stat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_83059872ee96
unity_docs
rendering
Give me an overview of the `LightingExplorerTableColumn` class in Unity.
LightingExplorerTableColumn class in UnityEditor Description This is used when defining how a column should look and behave in the Lighting Explorer. Constructors Constructor Description LightingExplorerTableColumn Constructor. Delegates Delegate Description ComparePropertiesDelegate A delegate for compari...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_404dfa4944e7
unity_docs
math
What is `Experimental.GraphView.Placemat.UncollapsedSize` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Placemat.UncollapsedSize public Vector2 UncollapsedSize ; Description The size of the placemat when expanded.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8cc45a50f242
unity_docs
physics
Explain 'Rigidbody component reference' in Unity.
Use the Rigidbody component to apply a Rigidbody to your GameObject . A Rigidbody provides a physics-based way to control the movement and position of a GameObject. Instead of the Transform properties, you can use simulated physics forces and torque to move the GameObject, and let the physics engine calculate the resul...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1686f67a989f
unity_docs
scripting
What is `Rendering.RenderTargetBinding.colorLoadActions` in Unity? Explain its purpose and usage.
RenderTargetBinding.colorLoadActions public RenderBufferLoadAction[] colorLoadActions ; Description Load actions for color buffers. Not all platforms support load actions. If the platform you are using does not support load actions, RenderBufferLoadAction.Load will be used instead.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1ede488a5d5e
unity_docs
scripting
What is `Mesh.GetBlendShapeFrameCount` in Unity? Explain its purpose and usage.
Mesh.GetBlendShapeFrameCount Declaration public int GetBlendShapeFrameCount (int shapeIndex ); Parameters Parameter Description shapeIndex The shape index to get frame count from. Description Returns the frame count for a blend shape.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_378c80fac669
unity_docs
performance
What is `Profiling.Profiler.GetMonoHeapSizeLong` in Unity? Explain its purpose and usage.
Profiler.GetMonoHeapSizeLong Declaration public static long GetMonoHeapSizeLong (); Returns long The size of the managed heap. Description Returns the size of the reserved space for managed-memory. This will grow when the total allocated managed-memory exceeds the currently reserved amount. The size of th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6e3b38b51ae3
unity_docs
scripting
What is `Unity.Collections.LowLevel.Unsafe.DisposeSentinel.Create` in Unity? Explain its purpose and usage.
DisposeSentinel.Create(AtomicSafetyHandle,DisposeSentinel,int) Parameters Parameter Description safety The AtomicSafetyHandle to control access to the data related to the newly created DisposeSentinel . sentinel The new DisposeSentinel . callSiteStackDepth The stack depth where to extract the logging info...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_17a62095bbe8
unity_docs
math
What is `Mathf.Approximately` in Unity? Explain its purpose and usage.
Mathf.Approximately Declaration public static bool Approximately (float a , float b ); Description Compares two floating point values and returns true if they are similar. Floating point imprecision makes comparing floats using the equals operator inaccurate. For example, (1.0 == 10.0 / 10.0) might not ret...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a964090a9a0a
unity_docs
scripting
Explain 'Audio Listener' in Unity.
The Audio Listener acts as a microphone-like device. It receives input from any given Audio Source in the scene and plays sounds through the computer speakers. For most applications it makes the most sense to attach the listener to the Main Camera . If an audio listener is within the boundaries of a Reverb Zone reverbe...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d2de1eb2bcb7
unity_docs
scripting
Show me a Unity C# example demonstrating `Object.FindObjectsByType`.
ve set.Use Resources.FindObjectsOfTypeAll to avoid these limitations. You can't use Object.FindObjectsByType with interfaces directly. Instead, find all components of a base type and then filter the results by interface using LINQ's OfType . In the Editor, FindObjectsByType searches the Scene view by default. I...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d8f204cde826
unity_docs
scripting
What is `SceneManagement.LoadSceneParameters.ctor` in Unity? Explain its purpose and usage.
LoadSceneParameters Constructor Declaration public LoadSceneParameters ( SceneManagement.LoadSceneMode mode ); Parameters Parameter Description mode See LoadSceneParameters.loadSceneMode . Description Constructor for LoadSceneParameters. See SceneManager.LoadScene .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5f8893486258
unity_docs
editor
What is `EditorUserBuildSettings.exportAsGoogleAndroidProject` in Unity? Explain its purpose and usage.
EditorUserBuildSettings.exportAsGoogleAndroidProject public static bool exportAsGoogleAndroidProject ; Description Export Android Project for use with Android Studio/Gradle. Best combined with Split Application Binary to ensure Streaming Assets are not compressed when building the final application. You can als...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b5684f36ad4c
unity_docs
scripting
In Unity's 'Position Constraint component', what is 'Constraint Settings' and how does it work?
Property Description Lock Enable to let the Constraint move the GameObject. Disable this property to edit the position of this GameObject. You can also edit the Position At Rest and Position Offset properties. If Is Active is enabled, the Constraint updates the At Rest or Offset properties for you as you move the GameO...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_530d2e4979e7
unity_docs
scripting
What is `Application.GetStackTraceLogType` in Unity? Explain its purpose and usage.
Application.GetStackTraceLogType Declaration public static StackTraceLogType GetStackTraceLogType ( LogType logType ); Description Get stack trace logging options. The default value is StackTraceLogType.ScriptOnly .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_536d6dbd4381
unity_docs
rendering
In Unity's 'Reduce shader duplication in AssetBundles', what is 'Add all your shaders to a single AssetBundle' and how does it work?
Follow these steps: Create a file that contains a list of the shader variants your built application uses. If you target DirectX 12, Vulkan, Metal, or WebGPU, create a.graphicsState file. For more information, refer to Trace and manage PSO data collections . Otherwise, create a.shaderVariants file. Refer to create a sh...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8af5d4ab507a
unity_docs
editor
What is `ModelImporter.GetReferencedClipsForModelPath` in Unity? Explain its purpose and usage.
ModelImporter.GetReferencedClipsForModelPath Declaration public static string[] GetReferencedClipsForModelPath (string modelPath ); Parameters Parameter Description modelPath The model for which to find matching referenced clips. Returns string[] Array of referenced clip GUIDs matching the given model. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c81cdb9a22e4
unity_docs
scripting
Show me a Unity C# example demonstrating `Projector.orthographic`.
Projector.orthographic public bool orthographic ; Description Is the projection orthographic ( true ) or perspective ( false )? When orthographic is true , projection is defined by orthographicSize . When orthographic is false , projection is defined by fieldOfView . Additional resources: projector compo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5ec2544868fb
unity_docs
physics
What is `ShortcutManagement.ClutchShortcutAttribute.ctor` in Unity? Explain its purpose and usage.
ClutchShortcutAttribute Constructor Declaration public ClutchShortcutAttribute (string id , Type context = null); Declaration public ClutchShortcutAttribute (string id , Type context , KeyCode defaultKeyCode , ShortcutManagement.ShortcutModifiers defaultShortcutModifiers = None); Declaration publi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_fc4a58965cf8_doc_18
github
scripting
What does `IndexOf` do in this Unity script? Explain its purpose and signature.
Determines the index of an item with a aspecific key in the .The key of the entry to locate in the .The zero-based index of the entry when found; otherwise, a value of -1. Signature: ```csharp public int IndexOf(TKey key) ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_162cbac643f4
unity_docs
rendering
What is `ShaderKeywordFilter.ApplyRulesIfGraphicsAPIAttribute.ctor` in Unity? Explain its purpose and usage.
ApplyRulesIfGraphicsAPIAttribute Constructor Declaration public ApplyRulesIfGraphicsAPIAttribute (params GraphicsDeviceType[] graphicsDeviceTypes ); Parameters Parameter Description graphicsDeviceTypes The array of graphics APIs to match to. Description Enable or disable shader keyword filter attributes ba...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2cfc73919a94
unity_docs
rendering
What are the parameters of `Matrix4x4.Perspective` in Unity?
Returns Matrix4x4 The projection matrix. Description Create a perspective projection matrix. Projection matrices in Unity follow OpenGL convention, i.e. clip space near plane is at z=-1 , and far plane is at z=1 . The returned matrix embeds a z-flip operation whose purpose is to cancel the z-flip performed by the camer...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_97899d457da9
unity_docs
rendering
Explain 'Get started with 3D game development' in Unity.
Tip: If you have never used the Unity Editor before, start with the First time users documentation. Everything in the Unity documentation, other than the 2D section, is relevant to 3D game development. ## Select platforms and render pipelines The first two choices you must make are your 3D render pipeline and the pla...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_60b97b127411
unity_docs
scripting
What is `Unity.Hierarchy.Hierarchy.Exists` in Unity? Explain its purpose and usage.
Hierarchy.Exists Declaration public bool Exists (ref Unity.Hierarchy.HierarchyNode node ); Parameters Parameter Description node The hierarchy node. Returns bool true if the node exists, false otherwise. Description Determines whether a node exists or not.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_3eb94006031c
unity_docs
ui
In Unity's 'Navigation events', what is 'NavigationMoveEvent' and how does it work?
The NavigationMoveEvent is sent when the user presses the D-pad, moves a joystick, or presses the arrow keys. Some controls will use the arrow keys for their own functionality. For example, the ListView allows the user to select items using the up and down arrow keys. In this case, the control will cancel the Navigatio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_77b148e55784
unity_docs
ui
What is `EditorTools.ToolAttribute` in Unity? Explain its purpose and usage.
ToolAttribute class in UnityEditor.EditorTools Description Base class from which EditorToolAttribute and EditorToolContextAttribute inherit. Static Properties Property Description defaultPriority The default value for ToolAttribute.toolPriority and ToolAttribute.variantPriority. Specify a priority lower th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2cfa5836cdf7
unity_docs
rendering
What is `ParticleSystemRenderer.SetActiveTrailVertexStreams` in Unity? Explain its purpose and usage.
ParticleSystemRenderer.SetActiveTrailVertexStreams Declaration public void SetActiveTrailVertexStreams (List<ParticleSystemVertexStream> streams ); Parameters Parameter Description streams The new array of enabled vertex streams. Description Enables a set of Vertex Shader streams on the ParticleSystemRend...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7da6d4944778
unity_docs
rendering
What is `CustomRenderTexture.ctor` in Unity? Explain its purpose and usage.
CustomRenderTexture.CustomRenderTexture Constructor Declaration public CustomRenderTexture (int width , int height , RenderTextureFormat format , RenderTextureReadWrite readWrite = RenderTextureReadWrite.Default); Description Create a new Custom Render Texture.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_42b066ab2bea
unity_docs
xr
What is `Collider.GetGeometry` in Unity? Explain its purpose and usage.
Collider.GetGeometry Declaration public T GetGeometry (); Returns T Type of geometrical shape. Description Returns the geometric shape of the collider of the requested type. Throws an InvalidOperationException if you request a shape that is not present in the collider. Additional resources: BoxGeometry ,...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_fc4a58965cf8_doc_15
github
scripting
What does `GetEnumerator` do in this Unity script? Explain its purpose and signature.
Gets an object for enumerating over the ordered collection of keys and values.The new . Signature: ```csharp public Enumerator GetEnumerator() ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_b510786c5fe5
unity_docs
scripting
What is `Search.SearchContextAttribute` in Unity? Explain its purpose and usage.
SearchContextAttribute class in UnityEngine.Search / Inherits from: PropertyAttribute / Implemented in: UnityEngine.CoreModule Description This attribute can be attached to a component object field in order to have the ObjectField use the advanced Object Picker. ```csharp [SearchContext("t:mesh is:nested mesh...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_df2c4cd9d0bb
unity_docs
scripting
What is `Color.a` in Unity? Explain its purpose and usage.
Color.a public float a ; Description Alpha component of the color (0 is transparent, 1 is opaque). ```csharp using UnityEngine;public class Example : MonoBehaviour { public Color color = Color.white; void Start() { color.a = 0.42f; } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e47ca06a4df0
unity_docs
math
What are the parameters of `Mesh.SetIndexBufferData` in Unity?
Description Sets the data of the index buffer of the Mesh. Note: This method is designed for advanced users aiming for maximum performance because it operates on the underlying mesh data structures that primarily work on raw index buffers, vertex buffers and mesh subset data. Using this method, Unity performs very litt...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5178344a74ea
unity_docs
rendering
Explain 'Safe Mode' in Unity.
Unity’s Safe Mode is a mode that the Unity Editor can enter when you open a project that has script compilation errors. Safe Mode is designed to provide the best environment for resolving compilation errors, so that you can quickly return your project to a functional state. In Safe Mode, Unity provides a minimal versio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_806026867f7b
unity_docs
rendering
What is `PlayerSettings.colorSpace` in Unity? Explain its purpose and usage.
PlayerSettings.colorSpace public static ColorSpace colorSpace ; Description Set the rendering color space for the current project. See Linear and Gamma rendering documentation for more details. Note that changing the project color space may cause a reimport of some assets. Additional resources: Linear ren...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8feba5fed453
unity_docs
editor
What is `EditorSettings.cacheServerNamespacePrefix` in Unity? Explain its purpose and usage.
EditorSettings.cacheServerNamespacePrefix public static string cacheServerNamespacePrefix ; Description Sets the namespace prefix to use for the cache server. Each entry on the cache server is stored using a namespace/key/value tuple. The namespace can be used for grouping cached results together. This will min...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a1ea50baf0e0
unity_docs
ui
In Unity's 'Bind to a list without ListView', what is 'Create an object that contains a list' and how does it work?
Create a C# class that contains a list. This list is the target of the binding. Create a project in Unity with any template. In your Project window , create a folder named bind-to-list-without-ListView to store all your files. Create a C# script named TexturePackAsset.cs and replace its contents with the following: ```...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b12299dbc86f
unity_docs
editor
Show me a Unity C# example demonstrating `EditorGUI.BeginFoldoutHeaderGroup`.
n Make a label with a foldout arrow to the left of it. This is useful for folder-like structures, where child objects only appear if you've unfolded the parent folder. This control cannot be nested in another BeginFoldoutHeaderGroup. To use multiple of these foldouts, you must end each method with EndFoldoutHeaderGro...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ce66c05f3faa
unity_docs
rendering
What is `Rendering.VertexAttributeDescriptor` in Unity? Explain its purpose and usage.
VertexAttributeDescriptor struct in UnityEngine.Rendering / Implemented in: UnityEngine.CoreModule Description Information about a single VertexAttribute of a Mesh vertex. Mesh vertex data comprised of different Vertex Attributes. For example, a vertex can include a Position, Normal, TexCoord0, and Color. Me...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e100a2b17f37
unity_docs
editor
Explain 'Deterministic builds' in Unity.
Deterministic builds produce identical output when given the same source code, assets, and build settings. This consistency is essential for reliable deployment pipelines, debugging, and collaborative development. In Unity, many factors can introduce non-deterministic behavior, which causes builds to vary. Topic Descri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_47a6d2ec76b0
unity_docs
scripting
What is `ModelImporterNormalSmoothingSource` in Unity? Explain its purpose and usage.
ModelImporterNormalSmoothingSource enumeration Description Source of smoothing information for calculation of normals in ModelImporter . Describes how Unity calculates whether edges have hard or smooth normals (from smoothing groups or the angle between faces). By default, Unity uses smoothing groups if they are ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8b0e59ceb316
unity_docs
input
What is `UIElements.LongField` in Unity? Explain its purpose and usage.
LongField class in UnityEngine.UIElements / Inherits from: UIElements.TextValueField_1 / Implemented in: UnityEngine.UIElementsModule Description Makes a text field for entering long integers. For more information, refer to UXML element LongField . Static Properties Property Description inputUssClassNa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b8012fd19b90
unity_docs
rendering
What is `Material.IsPropertyOverriden` in Unity? Explain its purpose and usage.
Material.IsPropertyOverriden Declaration public bool IsPropertyOverriden (string name ); Declaration public bool IsPropertyOverriden (int nameID ); Parameters Parameter Description nameID Property name ID, use Shader.PropertyToID to get it. name Property name, e.g. "_SrcBlend". Returns bool Ret...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a8056ab37fef
unity_docs
editor
Show me a Unity C# example demonstrating `Selection.activeTransform`.
Selection.activeTransform public static Transform activeTransform ; Description Returns the active transform. (The one shown in the inspector). This never returns Prefabs or non-modifiable objects. ```csharp using UnityEngine; using UnityEditor;class Example : EditorWindow { class SelectionActiveTransform :...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5c274d4b0ac5
unity_docs
scripting
What is `UIElements.Binding.SetPanelLogLevel` in Unity? Explain its purpose and usage.
Binding.SetPanelLogLevel Declaration public static void SetPanelLogLevel ( UIElements.IPanel panel , UIElements.BindingLogLevel logLevel ); Parameters Parameter Description panel The panel to apply to. logLevel The log level. Description Sets the log level for binding failures on a panel.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_a326a9e5b629_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Author: Cameron ReuschelThis class holds a number of generic coroutine building blocks.These are necessary for a more fluent approach to using coroutines.By using these building blocks, one may construct complex coroutineswithout bloating the class with many private IEnumerator foo(...) functions.By using static import...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b2321186c91a
unity_docs
editor
What is `Rendering.RenderPipelineManager.currentPipeline` in Unity? Explain its purpose and usage.
RenderPipelineManager.currentPipeline public static Rendering.RenderPipeline currentPipeline ; Description Returns the active RenderPipeline . The active render pipeline is the render pipeline that Unity is currently using to render your application and parts of the Editor such as the Scene view and Game vie...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_38d5da00865e
unity_docs
scripting
Show me a Unity C# example demonstrating `RenderMode.ScreenSpaceOverlay`.
RenderMode.ScreenSpaceOverlay Description Render at the end of the Scene using a 2D Canvas. ```csharp //Attach this script to your Canvas GameObjectusing UnityEngine;public class Example : MonoBehaviour { enum RenderModeStates { camera, overlay, world }; RenderModeStates m_RenderModeStates; Canvas m_Canvas; // Us...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_40b66b8d9c91
unity_docs
editor
What is `iOS.Xcode.PBXProject.GetUnityTestTargetName` in Unity? Explain its purpose and usage.
PBXProject.GetUnityTestTargetName Declaration public static string GetUnityTestTargetName (); Returns string The default test target name. Description Returns the default test target name. Use the returned target name to retrieve the GUID of the target via TargetGuidByName . Note : This function can onl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_abf5ae03de38
unity_docs
scripting
Explain 'UWP scripting symbols' in Unity.
Unity has a range of built-in scripting symbols which represent options that you can use in your scripts to selectively include or exclude portions of code from compilation. For more information on conditional compilation, refer to Conditional compilation . Note: You can also refer to scripting symbols can as define sy...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_33586a60a6f2
unity_docs
physics
What is `AI.NavMeshBuilder.CollectSources` in Unity? Explain its purpose and usage.
NavMeshBuilder.CollectSources Description For convenience, you can create a list of build sources directly from the current geometry. The collection can be controlled in terms of layers, type of geometry and by collecting either by hierarchy or volume. Declaration public static void CollectSources ( Bounds incl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5d605f0a6498
unity_docs
rendering
Explain 'Troubleshooting camera output' in Unity.
The Camera component Inspector window indicates when a camera is rendering a depth or a depth+normals texture. The way that depth textures are requested from the Camera ( Camera.depthTextureMode ) might mean that after you disable an effect that needed them, the Camera might still continue rendering them. If there are ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3ac7c1a813d4
unity_docs
scripting
What is `UIElements.IntegerField.StringToValue` in Unity? Explain its purpose and usage.
IntegerField.StringToValue Declaration protected int StringToValue (string str ); Parameters Parameter Description str The string to convert. Returns int The integer parsed from the string. Description Converts a string to an integer.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e517a9ab7ef8
unity_docs
scripting
Explain 'Extend the default Unity activity' in Unity.
The UnityPlayerActivity of a Unity Android application is responsible for basic interactions between the Android operating system and the application. You can use plug-ins to create your own Activity that extends and overrides Unity’s default UnityPlayerActivity . Note : If you’re creating a custom activity with GameAc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_09ce2df0a8d8
unity_docs
editor
What is `AssetDatabase.ImportPackageCallback` in Unity? Explain its purpose and usage.
AssetDatabase.ImportPackageCallback Declaration public delegate void ImportPackageCallback (string packageName ); Parameters Parameter Description packageName Name of the package that raised the callback. Description Delegate to be called from AssetDatabase.ImportPackage callbacks. ImportPackageCallback...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c05906bf5192
unity_docs
scripting
What is `ContextMenu.ctor` in Unity? Explain its purpose and usage.
ContextMenu Constructor Declaration public ContextMenu (string itemName ); Declaration public ContextMenu (string itemName , bool isValidateFunction ); Declaration public ContextMenu (string itemName , bool isValidateFunction , int priority ); Parameters Parameter Description itemName The name o...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b6d1f066740f
unity_docs
scripting
What is `Experimental.GraphView.Port.Create` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Port.Create Declaration public static Experimental.GraphView.Port Create ( Experimental.GraphView.Orientation orientation , Experimental.GraphView.Direction direction , Experimental.GraphView.Port.Capacity capacity , Ty...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9383a896be0f
unity_docs
ui
What is `UIElements.BindingExtensions.TrackPropertyValue` in Unity? Explain its purpose and usage.
BindingExtensions.TrackPropertyValue Declaration public static void TrackPropertyValue ( UIElements.VisualElement element , SerializedProperty property , Action<SerializedProperty> callback ); Parameters Parameter Description element VisualElement tracking a property. property The SerializedProperty t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_39d0c41eaf73
unity_docs
scripting
What is `UIElements.BaseListView.foldoutHeaderUssClassName` in Unity? Explain its purpose and usage.
BaseListView.foldoutHeaderUssClassName public static string foldoutHeaderUssClassName ; Description The USS class name for the foldout header of the ListView. Unity adds this USS class to the foldout element in the ListView. Any styling applied to this class affects every foldout located beside, or below t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.