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_3fa0704b9f0e
unity_docs
scripting
What is `Progress.Item.SetPriority` in Unity? Explain its purpose and usage.
Progress.Item.SetPriority Declaration public void SetPriority (int priority ); Declaration public void SetPriority ( Progress.Priority priority ); Parameters Parameter Description priority The priority. Description Sets the progress indicator's priority. Progress indicators are sorted by priority, f...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_602a859c25f8
unity_docs
physics
What is `PhysicsShapeType2D.Polygon` in Unity? Explain its purpose and usage.
PhysicsShapeType2D.Polygon Description Use a convex polygon shape to interpret the PhysicsShape2D geometry. A polygon geometry type is comprised of a minimum of three (triangle) vertices and maximum defined by Physics2D.MaxPolygonShapeVertices in the PhysicsShape2D . The vertices represent a set of consecutive...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_230ab0b0d843
unity_docs
rendering
In Unity's 'Set up multiple scenes', what is 'View scenes' and how does it work?
The Hierarchy window displays all the scenes that are part of your project: A: Scenes with unsaved changes have an asterisk by the scene name. B: The scene More menu allows you to perform actions on the scene. C: The scene divider (an inverted triangle) lets you collapse a scene and hide its contents from the Hierarchy...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c34fb627c766
unity_docs
scripting
What is `AssetBundleCreateRequest` in Unity? Explain its purpose and usage.
AssetBundleCreateRequest class in UnityEngine / Inherits from: AsyncOperation / Implemented in: UnityEngine.AssetBundleModule Description Asynchronous load request for an AssetBundle . Additional resources: AssetBundle.LoadFromFileAsync , AssetBundle.LoadFromMemoryAsync , AssetBundle.LoadFromStreamAsync ,...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_04223653526b
unity_docs
scripting
Give me an overview of the `AwaitableCompletionSource_1` class in Unity.
AwaitableCompletionSource<T0> class in UnityEngine / Implemented in: UnityEngine.CoreModule Description Objects allowing to control completion of an Awaitable object from user code. Properties Property Description Awaitable Get the awaitable controlled by the completion source. Public Methods Method Descr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_956d91ff0669
unity_docs
physics
In Unity's 'UnityYAML', what is 'Unsupported features' and how does it work?
Feature Support Chomping indicators UnityYAML does not support using + and | characters to indicate how it should treat new lines within a multi-line string. If you use these characters, UnityYAML adds them to the scalar value. Comments UnityYAML does not support comments. Complex mapping keys UnityYAML does not suppor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7fc4401fd14c
unity_docs
scripting
Show me a Unity C# example demonstrating `Pool.LinkedPool_1`.
that is placed on the CPU when having to rapidly create and destroy new objects. It is a good practice and design pattern to keep in mind to help relieve the processing power of the CPU to handle more important tasks and not become inundated by repetitive create and destroy calls. The LinkedPool uses a linked list to h...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b0ec448ba360
unity_docs
editor
What is `AssetDatabase.GetTextMetaFilePathFromAssetPath` in Unity? Explain its purpose and usage.
AssetDatabase.GetTextMetaFilePathFromAssetPath Declaration public static string GetTextMetaFilePathFromAssetPath (string path ); Parameters Parameter Description path Project relative path to the asset. Returns string The path to the .meta text file or an empty string if the file does not exist. Descr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5e5a0798aeb5
unity_docs
scripting
Show me a Unity C# example demonstrating `Networking.PlayerConnection.EditorConnection`.
utoconnect Profiler" in the Build Settings or build the Player through code with the BuildPipeline using build options: BuildOptions.ConnectToHost and BuildOptions.Development to initialize the connection. The Player ID is used to tell multiple connected Players apart. By default, data is sent to all Players. A con...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7da830e663bc
unity_docs
scripting
What are the parameters of `Vector2.SignedAngle` in Unity?
Returns float The signed angle in degrees between the two vectors. Description Gets the signed angle in degrees between from and to . The angle returned is the signed counterclockwise angle between the two vectors. Note: The angle returned will always be between -180 and 180 degrees, because the method returns the smal...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7f024b4c9f09
unity_docs
math
Show me a Unity C# example demonstrating `PhysicsShapeGroup2D.GetShapeData`.
opulated with a copy of all the shapes in the PhysicsShapeGroup2D . vertices A list that will be populated with a copy of all the vertices in the PhysicsShapeGroup2D . Description Gets a copy of both the shapes and vertices in the PhysicsShapeGroup2D . NOTE : Because this is a copy, changing the specified shap...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_94051035cc2e
unity_docs
physics
What is `Collider2D.CompositeOperation.Flip` in Unity? Explain its purpose and usage.
Collider2D.CompositeOperation.Flip Description Indicates a composite operation that composes geometry using a Boolean XOR operation. This composite operation will result in a region where both regions of geometry do not overlap. Additional resources: Collider2D.compositeOperation and Collider2D.compositeOrder .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_334d1451f302
unity_docs
editor
In Unity's 'Debug C# code in Unity', what is 'Debug in the Unity Editor' and how does it work?
You can debug C# code as it runs in the Unity Editor while the Unity Editor is in Play Mode. To debug in the Editor, you need to set the Editor’s Code Optimization mode to Debug Mode , then you can attach a code editor with a debugging feature . To change the Code Optimization mode, select the Debug Button in the botto...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ed8738d6fe4e
unity_docs
editor
What is `TerrainTools.TerrainPaintTool_1.OnRenderBrushPreview` in Unity? Explain its purpose and usage.
TerrainPaintTool<T0>.OnRenderBrushPreview Declaration public void OnRenderBrushPreview ( Terrain terrain , TerrainTools.IOnSceneGUI editContext ); Parameters Parameter Description terrain Active Terrain object. editContext Interface for communication between Editor and Paint tools. Description Use th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a5d1713302a9
unity_docs
math
What is `TerrainData.GetDetailLayer` in Unity? Explain its purpose and usage.
TerrainData.GetDetailLayer Declaration public int[,] GetDetailLayer (int xBase , int yBase , int width , int height , int layer ); Parameters Parameter Description xBase First x index of detail object density data to retrieve. yBase First y index of detail object density data to retrieve. width The a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e899516d0c99
unity_docs
scripting
In Unity's 'Encapsulate UXML documents with logic', what is 'Create reusable UI components' and how does it work?
As an example, let’s say you want to create a card game. You want to display cards with different statistics, such as life and attack. You can create a custom control called CardElement that displays the image, the life, and attack statistics for the character, and then reuse this custom control for each card in your g...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_79110b2d148e
unity_docs
xr
What is `XR.XRStats` in Unity? Explain its purpose and usage.
XRStats class in UnityEngine.XR / Implemented in: UnityEngine.VRModule Description Timing and other statistics from the XR subsystem. Some XR SDKs provide access to additional timing and other statistics. These can be used by games and applications for profiling and dynamic performance adjustments. For example,...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c8e7bc9518c1
unity_docs
editor
Show me a Unity C# example demonstrating `EditorWindow.HasOpenInstances`.
EditorWindow.HasOpenInstances Declaration public static bool HasOpenInstances (); Parameters Parameter Description windowType The type of the window. Must derive from EditorWindow . Returns bool Returns true if an EditorWindow , matching the specified type, is open. Returns false otherwise. Descripti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3c6e1f88f30a
unity_docs
scripting
What is `Experimental.GraphView.EdgeControl.outputOrientation` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. EdgeControl.outputOrientation public Experimental.GraphView.Orientation outputOrientation ; Description Edge output port orientation (vertical/horizontal).
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_9506bc2fb3db_doc_0
github
scripting
What does `ReadStick` do in this Unity script? Explain its purpose and signature.
Reads the primary 2D axis (thumbstick) from an XR controller node. Signature: ```csharp static Vector2 ReadStick(XRNode node) ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_22dd1ab7fddb
unity_docs
rendering
What is `Rendering.RendererUtils.RendererListDesc.stateBlock` in Unity? Explain its purpose and usage.
RendererListDesc.stateBlock public Nullable<RenderStateBlock> stateBlock ; Description An optional set of values to override the RendererLists render state. For more information, see RenderStateBlock .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0bd9f11e22de
unity_docs
scripting
What is `Assertions.Assert.AreApproximatelyEqual` in Unity? Explain its purpose and usage.
Assert.AreApproximatelyEqual Declaration public static void AreApproximatelyEqual (float expected , float actual ); Declaration public static void AreApproximatelyEqual (float expected , float actual , string message ); Declaration public static void AreApproximatelyEqual (float expected , float actua...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a25e8b5cf691
unity_docs
scripting
What is `EditorTools.EditorTool` in Unity? Explain its purpose and usage.
EditorTool class in UnityEditor.EditorTools / Inherits from: ScriptableObject Description Use this class to implement editor tools. This is the base class from which all editor tools are inherited. Use this class with EditorToolAttribute to register custom editor tools with the Editor. There are two basic typ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_965fa5dc80c2
github
scripting
Write a Unity C# physics script for Launch Projectile
```csharp using System.Runtime.CompilerServices; using UnityEngine; /// <summary> /// Apply forward force to instantiated prefab /// </summary> public class LaunchProjectile : MonoBehaviour { [Tooltip("The projectile that's created")] public GameObject projectilePrefab = null; [Tooltip("The point that th...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_3ddce1ba019f
unity_docs
scripting
What is `PlayerLoop.Update` in Unity? Explain its purpose and usage.
Update struct in UnityEngine.PlayerLoop / Implemented in: UnityEngine.CoreModule Description Update phase in the native player loop. This is the C# representation of an update phase in the native player loop. It can only be used to identify the update phase in native.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_73a75503c5af
unity_docs
rendering
What are the parameters of `Rendering.GraphicsSettings.GetSettingsForRenderPipeline` in Unity?
Returns RenderPipelineGlobalSettings RenderPipelineGlobalSettings asset that is registered for the given pipeline. Description Get the registered RenderPipelineGlobalSettings for the given RenderPipeline . This method iterates over all RenderPipelineGlobalSettings registered in the GraphicsSettings. If there is an inst...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6b639a636cc6
unity_docs
scripting
What is `UIElements.BaseVerticalCollectionView.ussClassName` in Unity? Explain its purpose and usage.
BaseVerticalCollectionView.ussClassName public static string ussClassName ; Description The USS class name for BaseVerticalCollectionView elements. Unity adds this USS class to every instance of the BaseVerticalCollectionView element. Any styling applied to this class affects every BaseVerticalCollectionVi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f3e57a13b8f3
unity_docs
scripting
Show me a Unity C# example demonstrating `MonoBehaviour.OnDestroy`.
urces. In this case, depending on the operating system, Unity might be unable to call this method. On mobile platforms, it is best practice to not rely on this method to save the state of your application. Instead, consider every loss of application focus as the exit of the application and use MonoBehaviour.OnApplicat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_711f3b0b7256
unity_docs
editor
Explain 'Navigating and managing the Unity Editor' in Unity.
Navigate the Unity Editor with keyboard shortcuts, search, and the Undo History window. You can also use the toolbar and status bar to manage and monitor your project. Topic Description Keyboard shortcuts Manage keyboard shortcuts to speed up your workflow in the Unity Editor. Undo History window Navigate through your ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_65097a4b1cfe
unity_docs
editor
What are the parameters of `Search.QueryEngine_1.SetSearchDataCallback` in Unity?
Description Sets the callback used to fetch the data that is matched against the search words. This function lets you register a callback that will be called on each element of the data set you are trying to filter, in order to retrieve the search data that will be compared against search words (for example, words that...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fd4117d6cf63
unity_docs
editor
What is `Undo.isProcessing` in Unity? Explain its purpose and usage.
Undo.isProcessing public static bool isProcessing ; Description Returns true if the editor is currently processing undo or redo operations, false otherwise. Note: it is forbidden to call RegisterCreatedObjectUndo while this value is true .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fed9f1177d3f
unity_docs
scripting
What is `Windows.WebCam.PhotoCapture.OnCaptureResourceCreatedCallback` in Unity? Explain its purpose and usage.
PhotoCapture.OnCaptureResourceCreatedCallback Declaration public delegate void OnCaptureResourceCreatedCallback ( Windows.WebCam.PhotoCapture captureObject ); Parameters Parameter Description captureObject The PhotoCapture instance. Description Called when a PhotoCapture resource has been created.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c40ef0cc63e4
unity_docs
animation
What is `AnimationUtility.GetKeyLeftTangentMode` in Unity? Explain its purpose and usage.
AnimationUtility.GetKeyLeftTangentMode Declaration public static AnimationUtility.TangentMode GetKeyLeftTangentMode ( AnimationCurve curve , int index ); Parameters Parameter Description curve Curve to query. index Keyframe index. Returns TangentMode Returns the tangent mode. Description Retrie...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8c9e4bd4a9a1
unity_docs
scripting
Show me a Unity C# example demonstrating `Color.gamma`.
Color.gamma public Color gamma ; Description A version of the color that has had the gamma curve applied. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { Color newColor = new Color(0.3f, 0.4f, 0.6f); print(newColor.gamma); } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2cdbf419bf54
unity_docs
editor
What is `MPE.ProcessService.roleName` in Unity? Explain its purpose and usage.
ProcessService.roleName public static string roleName ; Description The role name of the running UnityEditor process. For more information about how to register handlers for a specific process role, see RoleProviderAttribute . For a UnityEditor process of ProcessLevel Master, the roleName is always empty.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8ede2a621d8e
unity_docs
scripting
Show me a Unity code example for 'Get started with runtime UI'.
message in the text field, the Console window shows the message. ## Create a UI Document with controls Create a UI Document with a label, a button, and a Toggle. For information on how to add UI controls with UI Builder or UXML, refer to Get started with UI Toolkit . Create a project in Unity Editor with any template...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fb4457cb9038
unity_docs
scripting
Show me a Unity C# example demonstrating `Application.RequestAdvertisingIdentifierAsync`.
ool RequestAdvertisingIdentifierAsync ( Application.AdvertisingIdentifierCallback delegateMethod ); Parameters Parameter Description delegateMethod Delegate method. Returns bool Returns true if successful, and false for platforms which do not support Advertising Identifiers. In this case, the delegate met...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_712aeaf1721a
unity_docs
performance
What is `Profiling.HierarchyFrameDataView` in Unity? Explain its purpose and usage.
HierarchyFrameDataView class in UnityEditor.Profiling / Inherits from: Profiling.FrameDataView Description Provides access to the Profiler data for a specific frame and thread. Use HierarchyFrameDataView to retrieve Profiler samples structured as a hierarchy. This is used in the Hierachy mode of the CPU U...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e35256f83b3d
unity_docs
editor
Show me a Unity C# example demonstrating `Debug.DrawLine`.
ration is the time (in seconds) for which the line will be visible after it is first displayed. A duration of zero shows the line for just one 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. Note: This is for debugging playmode only. Edi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f1c4981a2c8c
unity_docs
scripting
What is `Rendering.CommandBuffer.SetWireframe` in Unity? Explain its purpose and usage.
CommandBuffer.SetWireframe Declaration public void SetWireframe (bool enable ); Parameters Parameter Description enable A boolean indicating whether to enable wireframe mode. Description Add a "set wireframe" command to the buffer. When enabled the scene will be rendered in wireframe mode (see GL.wirefra...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5af1157004a4
unity_docs
editor
Give me an overview of the `PlayerPrefs` class in Unity.
PlayerPrefs class in UnityEngine / Implemented in: UnityEngine.CoreModule Description PlayerPrefs is a class that stores Player preferences between game sessions. It can store string, float and integer values into the user's platform registry. Unity stores PlayerPrefs in a local registry, without encryption. D...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2fb09ea5b3e8
unity_docs
scripting
Show me a Unity C# example demonstrating `DrawGizmo`.
, and take two parameters: the object for which the gizmo is being drawn, and a GizmoType parameter which indicates the context in which the gizmo is being drawn. The renderer function can be defined in any class, including editor scripts. This allows you to keep your gizmo-drawing code out of your component scrip...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8c4a5fa063ce
unity_docs
scripting
What is `SystemLanguage.Korean` in Unity? Explain its purpose and usage.
SystemLanguage.Korean Description Korean. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the Korean language if (Application.systemLanguage == SystemLanguage.Korean) { //Outputs into console that the system is Korean D...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3b10378907de
unity_docs
performance
What are the parameters of `Profiling.FrameDataView.GetSessionMetaData` in Unity?
Returns NativeArray<T> Returns the session metadata as a NativeArray. Description Retrieves the metadata of the session this frame occurred in as a NativeArray. Use GetSessionMetaData to retrieve the data that the Profiler.EmitSessionMetaData method wrote to the Profiler stream. Profiler data can contain frames from di...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_53c898873c8e
unity_docs
input
What is `UIElements.MouseManipulator.CanStartManipulation` in Unity? Explain its purpose and usage.
MouseManipulator.CanStartManipulation Declaration protected bool CanStartManipulation ( UIElements.IMouseEvent e ); Parameters Parameter Description e The MouseEvent to validate. Returns bool True if the event satisfies the requirements. False otherwise. Description Checks whether MouseEvent satisf...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_348ef2459352
unity_docs
rendering
What is `BuildAssetBundleOptions.StrictMode` in Unity? Explain its purpose and usage.
BuildAssetBundleOptions.StrictMode Description Do not allow the build to succeed if any errors are reporting during it. Without this flag, non-fatal errors - such as a failure to compile a shader for a particular platform - will not cause the build to fail, but may result in incorrect behaviour at runtime. ```csha...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_d587224d29c8_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Loads orders from API or mock JSON file Signature: ```csharp public class OrderLoader : MonoBehaviour ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_50ae52f2c5f2
unity_docs
scripting
What is `PrefabUtility.EditPrefabContentsScope` in Unity? Explain its purpose and usage.
EditPrefabContentsScope struct in UnityEditor Description Disposable helper struct for automatically loading the contents of a Prefab file, saving the contents and unloading the contents again. This struct allows you to temporarily load the GameObject contents of a Prefab file, modify the contents to your liking ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b4a08e597da7
unity_docs
scripting
What is `ReflectionProbe.blendDistance` in Unity? Explain its purpose and usage.
ReflectionProbe.blendDistance public float blendDistance ; Description Distance around probe used for blending (used in deferred probes). When using deferred shading, reflection probes are rendered per-pixel (instead of one or two probes affecting whole object). Blend distance controls how probes blend with ea...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_543e832fff77
unity_docs
editor
Show me a Unity C# example demonstrating `AssetDatabase.LoadAssetByGUID`.
et matching the parameters. Description Loads an asset object of type type by given GUID assetGUID . A GUID (Globally Unique Identifier) is a 128-bit value used to uniquely identify assets, such as scenes, prefabs, and other files, within a Unity project Note: This returns only an asset object that is visible ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_fb052fdaeec5_doc_5
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Convert single column data by header index. Signature: ```csharp public static List<T> ConvertColumn<T>(string csvContent, int headerIndex = 0, char cellSeparator = CSVDataHelper.CommaCharacter, bool supportCellMultiline = true) ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_0be81e98a225
unity_docs
physics
Give me an overview of the `BuildOptions` class in Unity.
BuildOptions enumeration Description Options to configure a build. You can combine multiple build options together. Additional resources: BuildPipeline.BuildPlayer . Properties Property Description None Perform the specified build without any special settings or extra tasks. Development Build a development v...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_673ce0795878
unity_docs
rendering
What is `AudioRenderer.Start` in Unity? Explain its purpose and usage.
AudioRenderer.Start Declaration public static bool Start (); Returns bool True if the engine was switched into output recording mode. False if it is already recording. Description Enters audio recording mode. After this Unity will output silence until AudioRenderer.Stop is called.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f2621989964c
unity_docs
ui
What are the parameters of `UIElements.InspectorElement.FillDefaultInspector` in Unity?
Description Adds default inspector property fields under a container VisualElement. The following example shows how to fill a container with default inspector fields. For a complete example, refer to Create a default Inspector . ``` var container = new VisualElement(); InspectorElement.FillDefaultInspector(container...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_7528f79a6bed_doc_3
github
scripting
What does `InitInternal` do in this Unity script? Explain its purpose and signature.
Identical to , but non-virtual, so slightly faster. Signature: ```csharp internal void InitInternal(TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument, TSeventhArgument seventhArgument, T...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1cba42858e75
unity_docs
networking
What is `Networking.DownloadHandler.ReceiveContentLengthHeader` in Unity? Explain its purpose and usage.
DownloadHandler.ReceiveContentLengthHeader Declaration protected void ReceiveContentLengthHeader (ulong contentLength ); Parameters Parameter Description contentLength The value of the received Content-Length header. Description Callback, invoked with a Content-Length header is received. This callback...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_42a6e1a80485
unity_docs
editor
What is `UnwrapParam` in Unity? Explain its purpose and usage.
UnwrapParam struct in UnityEditor Description Unwrapping settings. Allows you control over the parameters of the automatic UV Unwrapping feature. Use this if you want to override the default unwrap settings. Properties Property Description angleError Maximum allowed angle distortion (0..1). areaError Maxim...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_321acd02cb1c
unity_docs
physics
What is `HideInInspector` in Unity? Explain its purpose and usage.
HideInInspector class in UnityEngine / Implemented in: UnityEngine.CoreModule Description Flags a variable to not appear in the Inspector. By default, a serialized variable automatically appears in the Inspector, even if the variable is private. A variable with this attribute can be serialized and not display ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_091c613da688
unity_docs
editor
What is `PackageManager.RepositoryInfo` in Unity? Explain its purpose and usage.
RepositoryInfo class in UnityEditor.PackageManager Description Includes information about the repository that hosts the package. Properties Property Description path The relative path to the package root in the repository, if it is different from the repository root. revision The revision id corresponding to...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_280580bfe6bf
unity_docs
rendering
Show me a Unity C# example demonstrating `Gizmos.DrawGUITexture`.
an inset from each edge within the rectangle in Scene units; the texture is drawn inside the inset rectangle and the edge pixels are repeated outwards. This is a useful quick way to create a large background region around the main texture when its edges are of a single colour. This function can be useful for creating G...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_09f62a5b54a5
unity_docs
rendering
In Unity's 'Write HLSL for different graphics APIs', what is 'Use consistent semantics' and how does it work?
Use the following semantics to ensure shaders work on all platforms: SV_POSITION instead of POSITION for the position the vertex shader outputs. SV_Target instead of COLOR or COLOR0 for the output of the fragment shader. PSIZE if you render meshes as points. For example, set PSIZE to 1. This avoids some platforms like ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a24f838a16fe
unity_docs
math
What is `MaterialPropertyBlock.Clear` in Unity? Explain its purpose and usage.
MaterialPropertyBlock.Clear Declaration public void Clear (); Description Clear material property values. Graphics.RenderMesh copies the passed property block, so the most efficient way of using it is to create one block and reuse it for all DrawMesh calls. Use Clear to clear block's values, and SetFloat , ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_53f437fbadf5
unity_docs
rendering
What is `LightProbes.cellCountSelf` in Unity? Explain its purpose and usage.
LightProbes.cellCountSelf public int cellCountSelf ; Description The number of cells space is divided into for this LightProbes object (Read Only). This includes both interior cells (tetrahedra) and outer space cells.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9799940cb7c4
unity_docs
scripting
What is `ChangeGameObjectParentEventArgs.newScene` in Unity? Explain its purpose and usage.
ChangeGameObjectParentEventArgs.newScene public SceneManagement.Scene newScene ; Description The Scene containing the new parent. This is useful to detect whether a GameObject was moved to another scene or moved to the root of a scene.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_53cb1a1026f5
unity_docs
editor
What are the parameters of `VersionControl.VersionControlManager.SetVersionControl` in Unity?
Returns bool Returns true if VCS has been activated. false otherwise. Description Sets the active version control system. If a different VCS was previously active, it will be deactivated. You can use the versionControlDescriptors property to retrieve all the available version control systems. You can check the newly ac...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_39aa70b76dc6
unity_docs
editor
Show me a Unity C# example demonstrating `EditorGUILayout.Toggle`.
es passed in here will override settings defined by the style . Additional resources: GUILayout.Width , GUILayout.Height , GUILayout.MinWidth , GUILayout.MaxWidth , GUILayout.MinHeight , GUILayout.MaxHeight , GUILayout.ExpandWidth , GUILayout.ExpandHeight . Returns bool The selected state of the toggle. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_3e3222cdb53f_doc_5
github
scripting
What does `GetWebPDimensions` do in this Unity script? Explain its purpose and signature.
Gets dimensions from a webp format block of data.L data.L width.L height. Signature: ```csharp public static unsafe void GetWebPDimensions(byte[] lData, out int lWidth, out int lHeight) ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_df5302a91826
unity_docs
rendering
Give me an overview of the `ShadowProjection` class in Unity.
ShadowProjection enumeration Description Shadow projection type for Quality Settings . Properties Property Description CloseFit Close fit shadow maps with linear fadeout. StableFit Stable shadow maps with spherical fadeout.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_573512552835
unity_docs
rendering
Explain 'Surface Shader language reference for the Built-In Render Pipeline' in Unity.
Find the directives and input structures you need to write a Surface Shader in the Built-In Render Pipeline . Page Description Surface Shader required directives reference Reference for the surface shader code and lighting model directives in a Surface Shader. Surface Shader optional directives reference Reference for ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c740383ada6c
unity_docs
editor
In Unity's 'Implement a custom native container', what is 'Implement usage tracking' and how does it work?
To access usage tracking in your code, use the AtomicSafetyHandle class. AtomicSafetyHandle holds a reference to the central information that the safety system stores for a given native container, and is the main way that the methods of a NativeContainer interact with the safety system. Because of this, every NativeCon...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f10957f4f5a8
unity_docs
scripting
What is `WebGLExceptionSupport.ExplicitlyThrownExceptionsOnly` in Unity? Explain its purpose and usage.
WebGLExceptionSupport.ExplicitlyThrownExceptionsOnly Description Enable throw support. With this option, exceptions can be thrown and caught in WebGL. But only exceptions explictly thrown will work. NullReferenceExceptions can still cause your content to fail. This has a significant cost in performance and build si...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b0540ade6f83
unity_docs
physics
What is `PhysicsShapeGroup2D.AddEdges` in Unity? Explain its purpose and usage.
PhysicsShapeGroup2D.AddEdges Declaration public int AddEdges (List<Vector2> vertices , float edgeRadius = 0f); Parameters Parameter Description vertices A list of vertices that represent a continuous set of edges with each vertex connecting to the following vertex to form each edge. edgeRadius The radius...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b05522cee43a
unity_docs
scripting
What is `WSA.SecondaryTileData.ctor` in Unity? Explain its purpose and usage.
SecondaryTileData Constructor Declaration public SecondaryTileData (string id , string displayName ); Parameters Parameter Description id Unique identifier for secondary tile. displayName A display name for a tile. Description Constructor for SecondaryTileData, sets default values for all members.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_20151ae12c59
unity_docs
animation
In Unity's 'Animation', what is 'Additional resources and examples' and how does it work?
👥 Community : Join the conversation on Unity Discussions for Animation 📖 E-Book : The definitive guide to animation in Unity 📖 E-Book : 2D game art, animation, and lighting for artists 📝 How-to guide : How to troubleshoot imported animations in Unity 📝 How-to guide : Tips for building animator controllers in Unity...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c1ecd856cf5e
unity_docs
rendering
What is `Terrain.holesFormat` in Unity? Explain its purpose and usage.
Terrain.holesFormat public static Experimental.Rendering.GraphicsFormat holesFormat ; Description Graphics format of the Terrain holes Texture when it is not compressed. Additional resources: TerrainData.holesTexture .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2ef1fd58578f
unity_docs
editor
Show me a Unity C# example demonstrating `Search.SearchSelection.GetEnumerator`.
SearchSelection.GetEnumerator Declaration public IEnumerator<SearchItem> GetEnumerator (); Returns IEnumerator<SearchItem> Enumerator on the currently selected SearchItems. Description Gets an enumerator on the currently selected SearchItems. ```csharp using UnityEngine; using UnityEditor; using UnityEdit...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_92e10814f139
unity_docs
physics
Show me a Unity C# example demonstrating `HideInInspector`.
ule Description Flags a variable to not appear in the Inspector. By default, a serialized variable automatically appears in the Inspector, even if the variable is private. A variable with this attribute can be serialized and not display in the Inspector. Additional resources: SerializedObject.forceChildVisibilit...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_097bf350f270
unity_docs
rendering
Explain 'Introduction to compute shaders' in Unity.
Compute shaders are shader programs that run on the GPU, outside of the normal rendering pipeline. They can be used for massively parallel GPGPU algorithms, or to accelerate parts of game rendering. In order to efficiently use them, an in-depth knowledge of GPU architectures and parallel algorithms is often needed; as ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ed0ff8036f70
unity_docs
scripting
What is `MonoScript.FromScriptableObject` in Unity? Explain its purpose and usage.
MonoScript.FromScriptableObject Declaration public static MonoScript FromScriptableObject ( ScriptableObject scriptableObject ); Parameters Parameter Description scriptableObject The ScriptableObject whose MonoScript should be returned. Description Returns the MonoScript object containing specified Scri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3f64c59a5b27
unity_docs
math
What is `DragAndDrop.paths` in Unity? Explain its purpose and usage.
DragAndDrop.paths public static string[] paths ; Description The file names being dragged. Never returns null. If no paths are available returns an empty array. Additional resources: objectReferences , PrepareStartDrag , StartDrag .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_2fe1e7d655ac_doc_3
github
scripting
What does `InitInternal` do in this Unity script? Explain its purpose and signature.
Identical to , but non-virtual, so slightly faster. Signature: ```csharp internal void InitInternal(TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument) ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_e18705d185d7
unity_docs
rendering
Give me an overview of the `MaterialEditor` class in Unity.
MaterialEditor class in UnityEditor / Inherits from: Editor Description The Unity Material Editor. Extend this class to write your own custom material editor. For more detailed information see the Custom Material Editor section of the ShaderLab reference . Static Properties Property Description kMiniText...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b73621f3b2d7
unity_docs
scripting
What is `PlayerSettings.SplashScreen.showUnityLogo` in Unity? Explain its purpose and usage.
PlayerSettings.SplashScreen.showUnityLogo public static bool showUnityLogo ; Description Set this to true to show the Unity logo during the Splash Screen. Set it to false to disable the Unity logo.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ac950a5bd7b3
unity_docs
scripting
What is `Search.QueryEngine_1.AddNestedQueryAggregator` in Unity? Explain its purpose and usage.
QueryEngine<T0>.AddNestedQueryAggregator Declaration public void AddNestedQueryAggregator (string token , Func<IEnumerable<TNestedQueryData>,IEnumerable<TNestedQueryData>> aggregator ); Parameters Parameter Description token Name of the aggregator used when typing the query. This name is converted to lowerc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_de53f40e3e5e
unity_docs
physics
What is `Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle` in Unity? Explain its purpose and usage.
AtomicSafetyHandle struct in Unity.Collections.LowLevel.Unsafe / Implemented in: UnityEngine.CoreModule Description Coordinate safe access to native container memory inside the job system. AtomicSafetyHandle holds a reference to the central information that the safety system stores for a given native container...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e72da5924116
unity_docs
scripting
What is `PrefabUtility.RevertPrefabInstance` in Unity? Explain its purpose and usage.
PrefabUtility.RevertPrefabInstance Obsolete Use the overload that takes an InteractionMode parameter. Declaration public static bool RevertPrefabInstance ( GameObject go ); Declaration public static void RevertPrefabInstance ( GameObject instanceRoot , InteractionMode action ); Parameters Parameter...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fa02d3d70009
unity_docs
physics
What is `Collider2D.CompositeOperation.None` in Unity? Explain its purpose and usage.
Collider2D.CompositeOperation.None Description Indicates that a CompositeCollider2D will not be used i.e. no composite operation will take place. Additional resources: Collider2D.compositeOperation and Collider2D.compositeOrder .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_952959438ac5
unity_docs
input
In Unity's 'Create a custom activity', what is 'Create a new activity' and how does it work?
To create a new activity: In the Assets folder, create a new Java (.java ) or Kotlin (.kt ) file. In the new file, create a class that extends UnityPlayerActivity . Note : If you’re using GameActivity application entry point, you need to create a class that extends UnityPlayerGameActivity class. In the new class, overr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5fccd09d1d39
unity_docs
rendering
Explain 'Single Channel texture Import Settings window reference' in Unity.
The Single Channel texture type formats the texture asset so it only has one channel. With this texture type, you can also set the Texture Shape . Property Description Channel Specifies which color channel from the texture source file to use for the single-channel texture asset. Alpha : The single-channel texture asset...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4e3caa2cbb36
unity_docs
rendering
In Unity's 'Renderer module reference', what is 'Properties' and how does it work?
For some properties in this section, you can use different modes to set their value. For information on the modes you can use, refer to Vary Particle System properties over time . Property: Function: Render Mode How Unity produces the rendered image from the graphic image (or Mesh). For more information, refer to Parti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_539789f0c71f
unity_docs
animation
What is `Animations.IAnimationJobPlayable.GetJobData` in Unity? Explain its purpose and usage.
IAnimationJobPlayable.GetJobData Declaration public T GetJobData (); Returns T Returns the IAnimationJob data contained in the playable. Description Gets the job data contained in the playable. The generic type must be the same as the one used for the creation of the playable.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_acfef2e2d3f3
unity_docs
rendering
What is `Experimental.GlobalIllumination.SpotLightPyramidShape.aspectRatio` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. SpotLightPyramidShape.aspectRatio public float aspectRatio ; Description The aspect ratio for the pyramid shape. Values larger than 1 extend the width and values between 0 and 1 extend the height.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a41ec291b700
unity_docs
scripting
In Unity's 'VR frame timing', what is 'What happens when Unity drops a frame?' and how does it work?
If Unity doesn’t submit the fully rendered frame in time for it to be ready for the next display refresh, a few things might happen, depending on which VR SDK is active. The VR SDK might: Display the previously submitted frame. This looks like judder, and greatly reduces the quality of the experience. Rotationally repr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4b89c6370965
unity_docs
rendering
Explain 'Configuring Mixed lights with Lighting Modes' in Unity.
Resources for setting the Lighting Mode of a scene , which determines the behaviour of Light components with Light Mode set to Mixed . Page Description Lighting Modes Compare Lighting Mode options. Set the Lighting Mode of a scene Use a Lighting Settings Asset to set the Lighting Mode for a scene. Adjust Mixed Mode lig...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_62255d8fa5da
unity_docs
rendering
Explain 'Terrain Tools' in Unity.
com.unity.terrain-tools ## Description The Terrain Tools package adds additional Terrain sculpting brushes and tools to Unity. This add-on toolset is suitable if you require more control over the appearance of your Terrain, and want to streamline Terrain workflows. Its also useful when you want to make more complex-l...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a8e3b136bab9
unity_docs
rendering
What is `EditorGUI.DrawTextureAlpha` in Unity? Explain its purpose and usage.
EditorGUI.DrawTextureAlpha Declaration public static void DrawTextureAlpha ( Rect position , Texture image , ScaleMode scaleMode = ScaleMode.StretchToFill, float imageAspect = 0, float mipLevel = -1); Parameters Parameter Description position Rectangle on the screen to draw the texture within. i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_52df9969adfc
unity_docs
scripting
What is `ModelImporterMeshCompression.Low` in Unity? Explain its purpose and usage.
ModelImporterMeshCompression.Low Description Low amount of mesh compression. Vertex positions, normals/tangents and UVs will be quantized to respectively 20, 8, 16 bits per component. Skinning information will be compressed. Additional resources: ModelImporter.meshCompression .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_15ce0fa19e5f
unity_docs
scripting
Explain 'Text meshes' in Unity.
Resources for using the Text Mesh component. Note: The Text Mesh component has limited functionality. For information on more recent, full-featured ways of displaying text, see Creating user interfaces (UI) . Topic Description Create meshes for text strings Create a text mesh for a custom TrueType font. Text Mesh compo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_80c8ab9a99b7
unity_docs
animation
What is `Tilemaps.Tilemap.RemoveTileAnimationFlags` in Unity? Explain its purpose and usage.
Tilemap.RemoveTileAnimationFlags Declaration public void RemoveTileAnimationFlags ( Vector3Int position , Tilemaps.TileAnimationFlags flags ); Parameters Parameter Description position The position of the Tile on the Tilemap . flags The TileAnimationFlags to remove from the Tile . Description Rem...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_99ff5427600b
unity_docs
scripting
What is `UIElements.SortColumnDescriptions.Insert` in Unity? Explain its purpose and usage.
SortColumnDescriptions.Insert Declaration public void Insert (int index , UIElements.SortColumnDescription desc ); Parameters Parameter Description index Index to insert to. desc The sort description to insert. Description Inserts a sort description into the current instance at the specified index.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.