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_a8a70e9fcc55
unity_docs
input
What is `UIElements.TextInputBaseField_1.SetValueWithoutNotify` in Unity? Explain its purpose and usage.
TextInputBaseField<T0>.SetValueWithoutNotify Declaration public void SetValueWithoutNotify (TValueType newValue ); Parameters Parameter Description newValue The new value to set. Description Allow to set the value without being notified.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1233e2deef20
unity_docs
math
What is `AndroidJNI.NewSByteArray` in Unity? Explain its purpose and usage.
AndroidJNI.NewSByteArray Declaration public static IntPtr NewSByteArray (int size ); Description Constructs a new primitive array object. 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_bd911b843612
unity_docs
rendering
What is `Search.TextCursorPlacement` in Unity? Explain its purpose and usage.
TextCursorPlacement enumeration Description Where to place the cursor in the text. (see ISearchView.SetSearchText ). ```csharp [MenuItem("Examples/ISearchView/SetSearchText_WithCursorPosition")] public static void SetSearchText_WithCursorPosition() { var view = SearchService.ShowContextual("asset"); view.SetSea...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_765d2c865f35
unity_docs
scripting
What is `PlayerSettings.logObjCUncaughtExceptions` in Unity? Explain its purpose and usage.
PlayerSettings.logObjCUncaughtExceptions public static bool logObjCUncaughtExceptions ; Description Are ObjC uncaught exceptions logged? Enables a custom Objective-C Uncaught Exception handler, which will print exception information to console.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_60b456c27324
unity_docs
editor
Explain 'Use numeric field expressions' in Unity.
Numeric field inputs accept: Positive and negative numbers. Some properties might limit the range. For example, RGB values can’t be negative. Mathematical expressions. Special functions for multiple selections. ## Use mathematical expressions You can use a mathematical expression to calculate the value of a numeric f...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_28cb560515f1
unity_docs
editor
What is `EditorWindow.GetWindow` in Unity? Explain its purpose and usage.
EditorWindow.GetWindow Declaration public static EditorWindow GetWindow (Type windowType , bool utility = false, string title = null, bool focus = true); Parameters Parameter Description windowType The type of the window. Must derive from EditorWindow. utility Set this to true, to create a floating...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a0bde0fc9e74
unity_docs
animation
What is `Animations.AimConstraint.RemoveSource` in Unity? Explain its purpose and usage.
AimConstraint.RemoveSource Declaration public void RemoveSource (int index ); Parameters Parameter Description index The index of the source to remove. Description Removes a source from the component. Throws InvalidOperationException, if the list of sources is empty. Throws ArgumentOutOfRangeException, if...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a7a7fd1bb948
unity_docs
scripting
What is `Event.pressure` in Unity? Explain its purpose and usage.
Event.pressure public float pressure ; Description How hard pen pressure is applied, normalized between 0 (no pressure) and 1 (maximum pressure). Pressure is always 1 on devices where pressure is not supported.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9b245ff13cea
unity_docs
editor
What is `AI.NavMeshBuildDebugSettings.flags` in Unity? Explain its purpose and usage.
NavMeshBuildDebugSettings.flags public AI.NavMeshBuildDebugFlags flags ; Description Specify which types of debug data to collect when building the NavMesh. Default value is NavMeshBuildDebugFlags.None . Additional resources: NavMeshBuildDebugFlags , NavMeshBuildSettings.debug , NavMeshEditorHelpers.DrawB...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_d5f16cfdffaf_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Component used to store and manage the unique process identifier for an XR experience. Signature: ```csharp public class ProcessIdComponent : MonoBehaviour ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_man_53e25e4d85e1
unity_docs
rendering
Explain 'Particle System Force Field component reference' in Unity.
The Particle System Force Field component applies forces to particles in Particle Systems . ## Shape Property Function Shape Select the shape of the area of influence. Start Range Set the value for the inner point within the shape where the area of influence begins. End Range Set the value for the outer point of the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_af92a729ab4e
unity_docs
math
What is `GL.MultMatrix` in Unity? Explain its purpose and usage.
GL.MultMatrix Declaration public static void MultMatrix ( Matrix4x4 m ); Description Sets the current model matrix to the one specified. The model matrix is typically the local-to-world matrix of the object being drawn. Changing the model, view or projection matrices overrides the current rendering matrices. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_3119aebffdd3_doc_1
github
scripting
What does `isTriggered` do in this Unity script? Explain its purpose and signature.
/ -------------------------------------------------------------------------------------------/ Properties and Fields/ ------------------------------------------------------------------------------------------- Signature: ```csharp public bool isTriggered => _isTriggered; ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_904ccfe82238
unity_docs
scripting
Explain 'Assign GameObjects to layers' in Unity.
Layers are a tool that allows you to separate GameObjects in your scenes. You can use layers through the UI and with scripts to edit how GameObjects within your scene interact with each other. You can select which layers display in the Scene view from the View Options overlay . Topic Description Uses of layers in Unity...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_97608a760f90
unity_docs
scripting
Show me a Unity C# example demonstrating `SystemLanguage.Italian`.
SystemLanguage.Italian Description Italian. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the Italian language if (Application.systemLanguage == SystemLanguage.Italian) { //Outputs into console that the system is Itali...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1c447c1829e5
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.RGBA_PVRTC_2Bpp_UNorm` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.RGBA_PVRTC_2Bpp_UNorm Description A four-component, PVRTC compressed format where each 64-bit compressed texel block encodes a 8×4 rectangle of unsigned normalized RGBA texel data with the first 32 bits encoding al...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_60699c3d75a8
unity_docs
ui
What is `UIElements.ScrollView.horizontalPageSize` in Unity? Explain its purpose and usage.
ScrollView.horizontalPageSize public float horizontalPageSize ; Description This property controls the speed of the horizontal scrolling when using a keyboard or the on-screen scrollbar buttons (arrows and handle), based on the size of the page. When scrolling the page size will be applied to the offset for...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cd81561bead0
unity_docs
scripting
Show me a Unity C# example demonstrating `Handles.DrawDottedLines`.
d DrawDottedLines (Vector3[] lineSegments , float screenSpaceSize ); Parameters Parameter Description lineSegments A list of pairs of points that represent the start and end of line segments. screenSpaceSize The size in pixels for the lengths of the line segments and the gaps between them. Description Dra...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_65ebde4b2d35
unity_docs
scripting
What is `HashUtilities.ComputeHash128` in Unity? Explain its purpose and usage.
HashUtilities.ComputeHash128 Declaration public static void ComputeHash128 (byte[] value , ref Hash128 hash ); Declaration public static void ComputeHash128 (ref T value , ref Hash128 hash ); Parameters Parameter Description value A reference to the value to hash. hash A reference to the Hash128...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8718a0a86179
unity_docs
scripting
What is `LightTransport.IDeviceContext.IsCompleted` in Unity? Explain its purpose and usage.
IDeviceContext.IsCompleted Declaration public bool IsCompleted ( LightTransport.EventID id ); Parameters Parameter Description id ID of the event to query. Returns bool True if the asynchronous operation has completed. Description Returns true if the asynchronous operation completed. This method re...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f1e4cdfd1b9b
unity_docs
input
What is `AssetBundle.RecompressAssetBundleAsync` in Unity? Explain its purpose and usage.
AssetBundle.RecompressAssetBundleAsync Declaration public static AssetBundleRecompressOperation RecompressAssetBundleAsync (string inputPath , string outputPath , BuildCompression method , uint expectedCRC , ThreadPriority priority ); Parameters Parameter Description inputPath Path to the AssetBun...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2ee855e23206
unity_docs
input
What are the parameters of `TouchScreenKeyboard.Open` in Unity?
Description Opens the native keyboard provided by OS on the screen. The autocorrection determines whether the input tracks unknown words and suggests a more suitable replacement candidate to the user, replacing the typed text automatically unless the user explicitly overrides the action. The multiline determines if use...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b80beb10122c
unity_docs
scripting
What is `Unity.Hierarchy.Hierarchy.EnumerateChildren` in Unity? Explain its purpose and usage.
Hierarchy.EnumerateChildren Declaration public Unity.Hierarchy.HierarchyNodeChildren EnumerateChildren (ref Unity.Hierarchy.HierarchyNode node ); Parameters Parameter Description node The hierarchy node. Returns HierarchyNodeChildren An enumerable of hierarchy node children. Description Gets the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c1dd45537110
unity_docs
scripting
What is `GridBrushBase` in Unity? Explain its purpose and usage.
GridBrushBase class in UnityEngine / Inherits from: ScriptableObject / Implemented in: UnityEngine.TilemapModule Description Base class for authoring data on a grid with grid painting tools like paint, erase, pick, select and fill. Inheriting this class and/or creating brush asset instances from your inherite...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_71eaea6a0702
unity_docs
rendering
What is `TextureImporterSwizzle.Zero` in Unity? Explain its purpose and usage.
TextureImporterSwizzle.Zero Description Use black (a value of zero) for the color channel. Additional resources: TextureImporter.swizzleR , TextureImporter.swizzleG , TextureImporter.swizzleB , TextureImporter.swizzleA .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3eb0ed648e4b
unity_docs
scripting
What are the parameters of `MonoBehaviour.OnTriggerExit` in Unity?
Description OnTriggerExit is called when a collider stops touching a trigger. OnTriggerExit is called during whichever iteration of the physics FixedUpdate loop Unity detects that a collider is no longer touching a trigger it was previously touching. Both GameObjects must contain a Collider component. At least one of t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f8e371f5d0d5
unity_docs
ui
What is `UIElements.PointerEventBase_1.button` in Unity? Explain its purpose and usage.
PointerEventBase<T0>.button public int button ; Description Gets a value that indicates which mouse button was pressed or released (if any) to cause this event: 0 is the left button, 1 is the right button, 2 is the middle button. A negative value indicates that no mouse button changed state during this event.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4f1adee18120
unity_docs
scripting
What is `Cloth.useGravity` in Unity? Explain its purpose and usage.
Cloth.useGravity public bool useGravity ; Description Should gravity affect the cloth simulation? ```csharp using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Example() { // Dont use gravity on this cloth regardless if is Interactive or Skinned. transform.GetCompon...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b01dfdb16ac5
unity_docs
scripting
What is `Cloth.clothSolverFrequency` in Unity? Explain its purpose and usage.
Cloth.clothSolverFrequency public float clothSolverFrequency ; Description Number of cloth solver iterations per second. The solver frequency is specified as iterations per second. A solver frequency value of 240 corresponds to 4 iterations per frame at 60 frames per second. In general, simulation will become ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_02c8305b646a
unity_docs
scripting
What is `AndroidDeviceFilterData.vulkanApiVersionString` in Unity? Explain its purpose and usage.
AndroidDeviceFilterData.vulkanApiVersionString public string vulkanApiVersionString ; Description Vulkan API version. Enter the version number in either of the following formats: MajorVersion.MinorVersion.PatchVersion where MinorVersion and PatchVersion are optional. For example, 1.2.0 . Hexadecimal for...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_29d1a7972091
unity_docs
editor
What are the parameters of `VersionControl.Provider.AddIsValid` in Unity?
Description Given a list of assets this function returns true if Provider.Add is a valid task to perform on at least one of the assets in the list. An Asset is considered to be valid for adding if it has not already been added to the version control provider. If it has already been added, it is invalid for adding. ```c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_27d01a7fab1a
unity_docs
scripting
What is `ArticulationBody.SetDriveDamping` in Unity? Explain its purpose and usage.
ArticulationBody.SetDriveDamping Declaration public void SetDriveDamping ( ArticulationDriveAxis axis , float value ); Parameters Parameter Description axis The drive axis. value The value to set the damping to. Description Sets the damping value of the specified drive. Additional resources: Articul...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_51a0eb7cae9f
unity_docs
rendering
What is `Rendering.CameraProperties.SetCameraCullingPlane` in Unity? Explain its purpose and usage.
CameraProperties.SetCameraCullingPlane Declaration public void SetCameraCullingPlane (int index , Plane plane ); Parameters Parameter Description index Plane index (up to 5). plane Camera culling plane. Description Set a camera culling plane. Additional resources: GetCameraCullingPlane .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e44295953b7e
unity_docs
xr
What is `XR.MeshGenerationResult.Status` in Unity? Explain its purpose and usage.
MeshGenerationResult.Status public XR.MeshGenerationStatus Status ; Description The MeshGenerationStatus of the mesh generation task. Use this to determine whether the requested mesh generation was successful.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b8edf9b8f7e0
unity_docs
scripting
What is `MonoBehaviour.OnRenderObject` in Unity? Explain its purpose and usage.
MonoBehaviour.OnRenderObject() Description OnRenderObject is called after camera has rendered the Scene. This can be used to render your own objects using Graphics.RenderMesh or other functions. This function is similar to OnPostRender , except OnRenderObject is called on any object that has a script with the f...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4aeb668e7243
unity_docs
scripting
Explain 'Native memory allocator examples' in Unity.
Each native memory allocator type has its own different usages and behavior. This section contains examples and usage logs of each native memory allocator type . Topic Description Dual thread allocator example Inspect the usage reports of the dual thread allocator. Dynamic heap allocator example Inspect the usage repor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_48240143b4c3
unity_docs
scripting
What is `Undo.RegisterCompleteObjectUndo` in Unity? Explain its purpose and usage.
Undo.RegisterCompleteObjectUndo Declaration public static void RegisterCompleteObjectUndo ( Object objectToUndo , string name ); Parameters Parameter Description objectToUndo The object whose state changes need to be undone. name The name of the undo operation. Description Stores a copy of the object s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c314fc326ea4
unity_docs
physics
Give me an overview of the `ColliderHit` class in Unity.
ColliderHit struct in UnityEngine / Implemented in: UnityEngine.PhysicsModule Description Struct used to retrieve information from an Overlap batch query. Additional resources: OverlapBoxCommand , OverlapCapsuleCommand , OverlapSphereCommand . Properties Property Description collider The Collider that wa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9e6a8fb3a854
unity_docs
editor
What is `EditorGUI.IntField` in Unity? Explain its purpose and usage.
EditorGUI.IntField Declaration public static int IntField ( Rect position , int value , GUIStyle style = EditorStyles.numberField); Declaration public static int IntField ( Rect position , string label , int value , GUIStyle style = EditorStyles.numberField); Declaration public static int IntF...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_e4cce36f7fcf_doc_0
github
scripting
What does `AskCameraPermissions` do in this Unity script? Explain its purpose and signature.
Request camera permission if the permission is not authorized by the user. Signature: ```csharp public void AskCameraPermissions() ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_d2849ef803ad
unity_docs
rendering
What is `Rendering.RayTracingInstanceCullingConfig.instanceTests` in Unity? Explain its purpose and usage.
RayTracingInstanceCullingConfig.instanceTests public RayTracingInstanceCullingTest[] instanceTests ; Description An array of RayTracingInstanceCullingTest objects used add Renderers to the acceleration structure based on their layer, ShadowCastingMode and Material type. Typically, each ray tracing effect ca...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_07e843b27042
unity_docs
scripting
What is `ModifiableContactPair.SetDynamicFriction` in Unity? Explain its purpose and usage.
ModifiableContactPair.SetDynamicFriction Declaration public void SetDynamicFriction (int i , float dynamicFriction ); Parameters Parameter Description i Index of the contact point. dynamicFriction Dynamic friction coefficient. Description Set the value of the dynamic friction for a specified contact poi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7660ed5c675e
unity_docs
editor
What is `Experimental.GraphView.SearchTreeEntry` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. SearchTreeEntry class in UnityEditor.Experimental.GraphView Description This class describes a search tree entry. The search window displays search tree entries in the GraphView. Properties Property Description content The ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e45dd951df4c
unity_docs
rendering
Explain 'Web browser compatibility' in Unity.
This page gives an overview of Unity’s Web platform support for desktop and mobile browsers. ## Web browser compatibility for desktop Unity’s Web platform support for desktop browsers differs depending on the browser. It supports browsers providing the following conditions are true: The browser is WebGL 2 capable. Th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f770c1e09145
unity_docs
editor
What is `EditorWindow.GetExtraPaneTypes` in Unity? Explain its purpose and usage.
EditorWindow.GetExtraPaneTypes Declaration public IEnumerable<Type> GetExtraPaneTypes (); Returns IEnumerable<Type> The extra panes that are specific to the window. Description Gets the extra panes associated with the window.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_007859b8eb6f
unity_docs
rendering
In Unity's 'Self-Illuminated Parallax Specular', what is 'Parallax Normal mapped Properties' and how does it work?
Parallax Normal mapped is the same as regular Normal mapped , but with a better simulation of “depth”. The extra depth effect is achieved through the use of a Height Map . The Height Map is contained in the alpha channel of the Normal map . In the alpha, black is zero depth and white is full depth. This is most often u...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_6910d9d9a9ea_doc_10
github
scripting
What does `OnDisableAsObservable` do in this Unity script? Explain its purpose and signature.
This function is called when the behaviour becomes disabled () or inactive. Signature: ```csharp public static IObservable<Unit> OnDisableAsObservable(this Component component) ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_man_50625e1eb872
unity_docs
scripting
Explain 'Debug UWP applications with IL2CPP' in Unity.
Debugging is the process of removing errors from your code. You can debug both C# code and the generated C++ code with IL2CPP , using the Visual Studio debugger. Topic Description Debug C# code Understand how to use Visual Studio to debug your C# code. Debug generated C++ code Understand how to use Visual Studio to deb...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_abd5c3717dd7
unity_docs
scripting
What is `UIElements.BaseListView.reorderableItemUssClassName` in Unity? Explain its purpose and usage.
BaseListView.reorderableItemUssClassName public static string reorderableItemUssClassName ; Description The USS class name for item elements in reorderable animated ListView. Unity adds this USS class to every element in the ListView when reorderMode is set to Animated . Any styling applied to this class ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6ee11531aa74
unity_docs
scripting
What is `ParticleSystem.CollisionModule.collidesWith` in Unity? Explain its purpose and usage.
ParticleSystem.CollisionModule.collidesWith public LayerMask collidesWith ; Description Control which Layers this Particle System collides with. Additional resources: LayerMask . ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : Mon...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c27736f5fab5
unity_docs
rendering
What is `Experimental.Rendering.GraphicsFormatUtility.GetSwizzleB` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormatUtility.GetSwizzleB Declaration public static Rendering.FormatSwizzle GetSwizzleB ( Experimental.Rendering.GraphicsFormat format ); Declaration public static Rendering.FormatSwizzle GetSwizzleB ( TextureFo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_4c624abf1e60_doc_1
github
scripting
What does `SetTargetRotation` do in this Unity script? Explain its purpose and signature.
Sets a joint's targetRotation to match a given world rotation.The joint transform's world rotation must be cached on Start and passed into this method. Signature: ```csharp public static void SetTargetRotation(this ConfigurableJoint joint, Quaternion targetWorldRotation, Quaternion startWorldRotation) ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_841de4008e82
unity_docs
input
What is `UIElements.ScrollView.elasticity` in Unity? Explain its purpose and usage.
ScrollView.elasticity public float elasticity ; Description The amount of elasticity to use when a user tries to scroll past the boundaries of the scroll view. Elasticity is only used when touchScrollBehavior is set to Elastic.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_784a8fdadf8b_doc_4
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Starting distance of the camera from the interest point, in meters. Signature: ```csharp public double DistanceToInterest ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_a8ba3f43541a
unity_docs
input
Give me an overview of the `Subsystem` class in Unity.
Method group is Obsolete Subsystem class in UnityEngine / Implemented in: UnityEngine.SubsystemsModule Implements interfaces: ISubsystem Obsolete Use SubsystemWithProvider instead. Description A Subsystem is initialized from a SubsystemDescriptorWithProvider for a given Subsystem (Example, Input, Display,...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2de8410401f2
unity_docs
scripting
What is `UIElements.Binding.ResetPanelLogLevel` in Unity? Explain its purpose and usage.
Binding.ResetPanelLogLevel Declaration public static void ResetPanelLogLevel ( UIElements.IPanel panel ); Parameters Parameter Description panel The panel to reset the global log level. Description Resets the log level for binding failures on a panel to use the global setting. You can use SetGlobalLog...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f3519fef7aaf
unity_docs
math
What is `UIElements.MeshGenerationContext.DrawVectorImage` in Unity? Explain its purpose and usage.
MeshGenerationContext.DrawVectorImage Declaration public void DrawVectorImage ( UIElements.VectorImage vectorImage , Vector2 offset , UIElements.Angle rotationAngle , Vector2 scale ); Parameters Parameter Description vectorImage The vector image to draw. offset The position offset where to draw t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f7349c9caac5
unity_docs
rendering
Show me a Unity C# example demonstrating `Resources.Load`.
at path in a Resources folder using a generic parameter type filter of type T . This method returns the asset at path if it can be found and if its type matches the requested generic parameter type, otherwise it returns null. You can use this overload to reduce type conversion in your code by providing a generi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2fc049a0adae
unity_docs
scripting
What is `AssetBundle.LoadFromMemory` in Unity? Explain its purpose and usage.
AssetBundle.LoadFromMemory Declaration public static AssetBundle LoadFromMemory (byte[] binary ); Declaration public static AssetBundle LoadFromMemory (byte[] binary , uint crc ); Parameters Parameter Description binary Array of bytes with the AssetBundle data. crc An optional CRC-32 checksum of ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_33dd141af601
unity_docs
editor
What is `Handles.BeginGUI` in Unity? Explain its purpose and usage.
Handles.BeginGUI Declaration public static void BeginGUI (); Description Begin a 2D GUI block inside the 3D handle GUI. The start of a GUILayout sequence of function calls. As expected the EndGUI is used to close these. Additional resources: Handles.EndGUI . GUI in the Scene View. ```csharp // Change th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2546dca59cd4
unity_docs
scripting
What is `Toolbars.EditorToolbarToggle` in Unity? Explain its purpose and usage.
EditorToolbarToggle class in UnityEditor.Toolbars / Inherits from: UIElements.ToolbarToggle Description A toggle used with EditorToolbarElementAttribute . Static Properties Property Description ussClassName USS Class Name used to style the EditorToolbarToggle. Properties Property Description icon The ic...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_01af898d189a
unity_docs
scripting
Show me a Unity C# example demonstrating `Debug.DrawRay`.
determines how long the line will be visible after the frame it is drawn. If duration is 0 (the default) then the line is rendered 1 frame. If depthTest is set to true then the line will be obscured by other objects in the Scene that are nearer to the camera. The line will be drawn in the Scene view of the editor. If...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e6143b3d7c92
unity_docs
editor
What is `ConvertToPrefabInstanceSettings.changeRootNameToAssetName` in Unity? Explain its purpose and usage.
ConvertToPrefabInstanceSettings.changeRootNameToAssetName public bool changeRootNameToAssetName ; Description Change the name of the root GameObject to match the name of the Prefab Asset used when converting.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_36640033d9ca
unity_docs
editor
Give me an overview of the `AssemblyReloadEvents` class in Unity.
AssemblyReloadEvents class in UnityEditor Description This class has event dispatchers for assembly reload events. ```csharp using UnityEditor; using UnityEngine;public class MyWindow : EditorWindow { [MenuItem("Test/Show My Window")] static void Init() { GetWindow<MyWindow>(); } void OnEnable() { Assembly...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a7acf690c9e9
unity_docs
rendering
Show me a Unity C# example demonstrating `Rendering.RenderPipelineManager.beginCameraRendering`.
r Pipeline (URP) and the High Definition Render Pipeline (HDRP), Unity calls RenderPipeline.BeginCameraRendering automatically. If you are writing a custom Scriptable Render Pipeline and you want to use this delegate, you must add a call to RenderPipeline.BeginCameraRendering . The following code example demonstrate...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d1e8e41245c7
unity_docs
rendering
Explain 'Create a surface shader in the Built-In Render Pipeline' in Unity.
Follow these steps: Add a CGPROGRAM block to the SubShader block in your shader code, not the Pass block. Unity automatically creates multiple passes when it compiles the surface shader . Add a #pragma surface [surfaceFunction] [lightModel] directive. Surface shaders aren’t compatible with HLSLPROGRAM blocks, but you c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a5007011d32d
unity_docs
physics
In Unity's 'Wheel collider suspension', what is 'Damper' and how does it work?
In a real-world suspension system, the damper opposes the suspension spring’s movement and dissipates its stored energy. The strength of the damper’s impact defines how quickly the spring slows down and stops bouncing after being compressed or extended. The damper is often called the shock absorber. In the Unity PhysX ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8e3aebdf558f
unity_docs
scripting
Explain 'Accessibility for mobile applications' in Unity.
Use the Accessibility module APIs to create mobile applications that are accessible to a wider audience, including people with disabilities. ## Requirements and compatibility The Accessibility module APIs are available only for iOS and Android devices, with the following minimum requirements: Platform Operating syste...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_21a54316a845
unity_docs
editor
In Unity's 'Install the platform package for QNX', what is 'Requirements and compatibility' and how does it work?
Your system must meet the System requirements for the Unity Editor . You must have the QNX Software Center installed. Before starting the Unity Editor, make sure the QNX SDP Environment is set up correctly for the Editor to register it.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_25e9b2c4983d
unity_docs
rendering
Show me a Unity code example for 'Create a compute shader'.
L language, with a minimal number of #pragma compilation directives to indicate which functions to compile as compute shader kernels. ## Check if a platform supports compute shaders Compute shader support can be queried at runtime using SystemInfo.supportsComputeShaders . ## Create a compute shader asset Here’s a b...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d7bc0b9097a7
unity_docs
rendering
In Unity's 'ShaderLab: legacy texture combining', what is 'Render pipeline compatibility' and how does it work?
Feature name Built-in Render Pipeline Universal Render Pipeline (URP) High Definition Render Pipeline (HDRP) Custom SRP Legacy texture combining Yes No No No After the basic vertex lighting has been calculated, textures are applied. In ShaderLab this is done using SetTexture command. Fixed function texturing is the pla...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dc2b6775f47b
unity_docs
math
What is `UIElements.IPointerEvent.deltaPosition` in Unity? Explain its purpose and usage.
IPointerEvent.deltaPosition public Vector3 deltaPosition ; Description Gets the difference between the pointer's position during the previous mouse event and its position during the current mouse event.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f772c8c72391
unity_docs
physics
What is `PhysicsScene.RunSimulationStages` in Unity? Explain its purpose and usage.
PhysicsScene.RunSimulationStages Declaration public void RunSimulationStages (float step , SimulationStage stages , SimulationOption options = SimulationOption.All); Parameters Parameter Description step The time to advance physics by. stages An enum to specify which stages to run. options A flag ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_36aa491b0e48
unity_docs
scripting
What is `BuildOptions.AllowDebugging` in Unity? Explain its purpose and usage.
BuildOptions.AllowDebugging Description Allow script debuggers to attach to the Player remotely. You can debug your scripts only if you use BuildOptions.Development . Additional resources: BuildPipeline.BuildPlayer .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_07751e946ca1
unity_docs
scripting
What is `Android.AndroidGameState` in Unity? Explain its purpose and usage.
AndroidGameState enumeration Description Options for the available game states that you can pass to AndroidGame.SetGameState or you can set as a current game state mode to be used for Automated game state hinting in Unity using AndroidGame.Automatic.SetGameState method. Properties Property Description U...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a7d4daa44191
unity_docs
editor
What is `Search.SearchProvider.active` in Unity? Explain its purpose and usage.
SearchProvider.active public bool active ; Description Indicates if the search provider is active or not. Inactive search providers are ignored by the search service. The active state can be toggled in the search settings. ```csharp using System.Collections.Generic; using System.Linq; using System.Text; using U...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_81137c62e41c
unity_docs
scripting
What are the parameters of `Object.FindObjectsOfType` in Unity?
Returns Object[] The array of objects found matching the type specified. Description Gets a list of all loaded objects of Type type . This does not return assets (such as meshes, textures or prefabs), or objects with HideFlags.DontSave set. Objects attached to inactive GameObjects are only included if includeInactive i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1b88a4e5143f
unity_docs
scripting
In Unity's 'Vector2IntField', what is 'Example' and how does it work?
The following UXML example creates a Vector2IntField with a placeholder: ``` <UXML xmlns="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements"> <Vector2IntField label="UXML Field" name="the-uxml-field" /> </UXML> ``` The following C# example illustrates some of the customizable functionalities of the Vector2IntF...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_083ca8859b35
unity_docs
audio
What is `Video.VideoPlayer.audioTrackCount` in Unity? Explain its purpose and usage.
VideoPlayer.audioTrackCount public ushort audioTrackCount ; Description Number of audio tracks found in the data source currently configured. (Read Only) For URL sources, this will only be set once the source preparation is completed. See VideoPlayer.Prepare .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e71abdf3251e
unity_docs
scripting
What is `JsonUtility.FromJson` in Unity? Explain its purpose and usage.
JsonUtility.FromJson Declaration public static T FromJson (string json ); Parameters Parameter Description json The JSON representation of the object. Returns T An instance of the object. Description Create an object from its JSON representation. Internally, this method uses the Unity serializer. Th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ceacbe0a0db3
unity_docs
math
What is `BillboardAsset.SetImageTexCoords` in Unity? Explain its purpose and usage.
BillboardAsset.SetImageTexCoords Declaration public void SetImageTexCoords (Vector4[] imageTexCoords ); Declaration public void SetImageTexCoords (List<Vector4> imageTexCoords ); Parameters Parameter Description imageTexCoords The array of data to set. Description Set the array of billboard image tex...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7380b8aa12bb
unity_docs
math
What is `AndroidJNI.CallFloatMethodUnsafe` in Unity? Explain its purpose and usage.
AndroidJNI.CallFloatMethodUnsafe Declaration public static float CallFloatMethodUnsafe (IntPtr obj , IntPtr methodID , jvalue* args ); Description Calls a Java instance method defined by methodID , optionally passing an array of arguments ( args ) to the method. Additional resources: Java Native Interface ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1d16256d8ffc
unity_docs
input
Show me a Unity code example for 'Hash128Field'.
The Hash128Field lets users enter a Hash128 value in a UI. Note : To align an element with other fields in an Inspector window, simply apply the.unity-base-field__aligned USS class to it. For more information, refer to BaseField . ## Create a Hash128Field You can create a Hash128Field with UI Builder, UXML, or C#. Th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e2b3d7b063b7
unity_docs
scripting
What is `UIElements.DragUpdatedEvent` in Unity? Explain its purpose and usage.
DragUpdatedEvent class in UnityEngine.UIElements / Inherits from: UIElements.DragAndDropEventBase_1 / Implemented in: UnityEngine.UIElementsModule Description The event sent when the element being dragged enters a possible drop target. Static Methods Method Description GetPooled Gets an event from the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ce9c49b7a64b
unity_docs
rendering
What is `AssetDatabase.SaveAssets` in Unity? Explain its purpose and usage.
AssetDatabase.SaveAssets Declaration public static void SaveAssets (); Description Writes all unsaved asset changes to disk. Identical to EditorApplication.SaveAssets except not permitted to be called during serialization. When calling this function, AssetModificationProcessor.OnWillSaveAssets will be invok...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4f92c6b17489
unity_docs
scripting
Explain 'Use the Resources system to load assets at runtime' in Unity.
You can add assets to the Resources folder in your project, and then use the Resources API to load those assets at runtime. Topic Description Introduction to the Resources system Use the Resources system to manage the assets in your project on a small scale. Load and unload assets with the Resources system Add assets t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_bdf0275b7dbc
unity_docs
rendering
Show me a Unity code example for 'Web browser access to device features'.
. To allow a Web application to access the webcam on a device, the browser must request its user to provide access to the camera . Without the permission to access the camera, the browser returns incomplete or inaccurate information. Note: Currently, the Web platform supports WebCam devices only. To request browser per...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8842c9ac83fd
unity_docs
scripting
What is `AvatarMask.RemoveTransformPath` in Unity? Explain its purpose and usage.
AvatarMask.RemoveTransformPath Declaration public void RemoveTransformPath ( Transform transform , bool recursive = true); Parameters Parameter Description transform The Transform that should be removed from the AvatarMask. recursive Whether to also remove all children of the specified transform. Desc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2f1ff001e350
unity_docs
physics
Give me an overview of the `PhysicsScene` class in Unity.
PhysicsScene struct in UnityEngine / Implemented in: UnityEngine.PhysicsModule Description Represents a single instance of a 3D physics Scene. Public Methods Method Description BoxCast Casts the box along a ray and returns detailed information on what was hit. CapsuleCast Casts a capsule against all collide...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d58dc98cc7d7
unity_docs
ui
In Unity's 'USS built-in variable references', what is 'metrics' and how does it work?
Group Role/Control Name Description Professional Personal Runtime metrics --unity-metrics-default-border_radius The default border radius for controls 3px 3px 0px --unity-metrics-default-font_big_size The big font size 14px 14px 15px --unity-metrics-default-font_normal_size The normal font size 12px 12px 14px --unity-m...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_329f0aa451c6
unity_docs
networking
What is `Android.AndroidUIModeNight.Yes` in Unity? Explain its purpose and usage.
AndroidUIModeNight.Yes Description Mirrors the Android property value UI_MODE_NIGHT_YES . For information about the property value, refer to the Android developer documentation on UI_MODE_NIGHT_YES .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_38c1b28b6180
unity_docs
physics
What is `RaycastHit.colliderInstanceID` in Unity? Explain its purpose and usage.
RaycastHit.colliderInstanceID public int colliderInstanceID ; Description Instance ID of the Collider that was hit. Provides a reference to the collider that was hit in a way that is accessible from jobs. For more information on creating jobs see Create Jobs . ```csharp using Unity.Collections; using Unity....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d6e49a4f75e8
unity_docs
scripting
What is `Playables.FrameData` in Unity? Explain its purpose and usage.
FrameData struct in UnityEngine.Playables / Implemented in: UnityEngine.CoreModule Description This structure contains the frame information a Playable receives in Playable.PrepareFrame. Properties Property Description deltaTime The interval between this frame and the preceding frame. The interval is unsca...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4ad72c6a14ca
unity_docs
xr
What is `SubsystemManager.afterReloadSubsystems` in Unity? Explain its purpose and usage.
SubsystemManager.afterReloadSubsystems Description Called from SubsystemManager when it has completed reloading all XR SDK Provider packaged subsystems. When the Editor starts or when packages are installed or removed, the SubsystemManager searches the packages and loads all XR SDK packages that it finds. Handl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_149011fce24c
unity_docs
math
What is `AndroidJNI.GetFloatArrayElement` in Unity? Explain its purpose and usage.
AndroidJNI.GetFloatArrayElement Declaration public static float GetFloatArrayElement (IntPtr array , int index ); Description Returns the value of one element of a primitive array. This function is a special case of GetFloatArrayRegion(), called with region size set to 1. Additional resources: Java Native In...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b115f21a03eb
unity_docs
audio
What is `AudioSettings.GetSpatializerPluginNames` in Unity? Explain its purpose and usage.
AudioSettings.GetSpatializerPluginNames Declaration public static string[] GetSpatializerPluginNames (); Returns string[] An array of spatializer names. Description Returns an array with the names of all the available spatializer plugins. This is an Editor-only function.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_519a856ed9b9
github
scripting
Write a Unity C# script called Pawn
```csharp using System.Collections; using System.Collections.Generic; using UnityEngine; public class Pawn : Piece { public override bool[,] PossibleMoves() { Piece p; bool [,] ret = new bool[8,8]; int [] enPassant = _BoardManager.EnPassant; if (isWhite) { ...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_man_b54250e988be
unity_docs
scripting
Show me a Unity code example for 'TreeView'.
lay hierarchical data in a tree-like structure. It’s a powerful and flexible control that’s commonly used to present data with parent-child relationships or nested structures. If you need a simple list of items (not a hierarchical tree), consider using the ListView control. ## Create a TreeView You can create a TreeV...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ae794c0be4c9
unity_docs
editor
What is `EditorGUILayout.BeginScrollView` in Unity? Explain its purpose and usage.
EditorGUILayout.BeginScrollView Declaration public static Vector2 BeginScrollView ( Vector2 scrollPosition , params GUILayoutOption[] options ); Declaration public static Vector2 BeginScrollView ( Vector2 scrollPosition , bool alwaysShowHorizontal , bool alwaysShowVertical , params GUILayoutOption[] ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_ef10608562d4_doc_3
github
scripting
What does `IncrementText` do in this Unity script? Explain its purpose and signature.
Increment the string message of the Text component. Signature: ```csharp public void IncrementText() ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.