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_9b894f82c706
unity_docs
scripting
What is `AI.NavMeshLinkInstance` in Unity? Explain its purpose and usage.
NavMeshLinkInstance struct in UnityEngine.AI / Implemented in: UnityEngine.AIModule Description Represents a link available for pathfinding. You obtain a valid object when you call NavMesh.AddLink to create one specific link in the navigation system. Conversely, you need to pass it into NavMesh.RemoveLink t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e02f7207f946
unity_docs
editor
Explain 'Unity for first-time users' in Unity.
If you’re new to Unity, this section provides resources you need to get started. It includes step-by-step guidance on creating your first project, choosing between 2D and 3D development, and understanding key concepts in the Unity Editor. You can also find best practice guides that help you build skills: from the basic...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_754f5c1f91e6
unity_docs
rendering
What is `Vector4.operator_Vector2` in Unity? Explain its purpose and usage.
Vector4.Vector4 Description Converts a Vector2 to a Vector4. Vector2s can be implicitly converted to Vector4 (z and w is set to zero in the result). ```csharp using UnityEngine; using System.Collections.Generic; public class ExampleScript : MonoBehaviour { void Start() { Renderer renderer = GetComponent<Rende...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0125a3d2384a
unity_docs
editor
What is `IHasCustomMenu` in Unity? Explain its purpose and usage.
IHasCustomMenu interface in UnityEditor Description Defines a method to add custom menu items to an Editor Window. Public Methods Method Description AddItemsToMenu Adds your custom menu items to an Editor Window.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d138fae0c8e1
unity_docs
scripting
Explain 'Prevent Unity stripping GPU instancing shaders in the Built-In Render Pipeline' in Unity.
Unity generates Surface shaders with instancing variants by default, unless you specify noinstancing in the #pragma directive. Unity ignores uses of #pragma multi_compile_instancing in a surface shader . Unity’s Standard and StandardSpecular shaders have instancing support by default, but with no per-instance propertie...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e36d08e179bb
unity_docs
editor
What are the parameters of `AssetDatabase.LoadAssetByGUID` in Unity?
Returns Object The asset 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 tha...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c545ca629f3a
unity_docs
editor
Show me a Unity C# example demonstrating `VersionControl.Provider.ResolveIsValid`.
Provider.ResolveIsValid Declaration public static bool ResolveIsValid ( VersionControl.AssetList assets ); Parameters Parameter Description assets The list of asset to be resolved. Description Tests if any of the assets in the list have the conflicted state and can be resolved. Returns true if one or mor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_cb62baf9e931
unity_docs
scripting
Explain 'Web Build folder' in Unity.
When you build your Web application, Unity creates a Build folder with all files necessary to run your application in a web browser. ## Build folder structure The Build folder has the name you specify in the Build Profiles window. The folder contains the following files, where [ExampleBuild] represents the name of th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c36a05d4cf8e
unity_docs
editor
What is `MouseCursor.MoveArrow` in Unity? Explain its purpose and usage.
MouseCursor.MoveArrow Description Arrow with the move symbol next to it for the sceneview. ```csharp //Create a folder and name it “Editor” if this doesn’t already exist //Put this script in the folder//This script creates a new menu (“Examples”) and a menu item (“Mouse Cursor”). Click on this option. This displays...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_db0ee9d80245
unity_docs
scripting
Give me an overview of the `ModelImporterTangents` class in Unity.
ModelImporterTangents enumeration Description Vertex tangent generation options for ModelImporter . Tangentss can either be imported from model file, calculated by Unity using several methods (default is MikkTSpace), or not included into imported mesh at all. Vertex tangents are most often used for normal/bump ma...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_f3162ad8077b
github
scripting
Write a Unity C# XR/VR script for Player Input_Interactor
```csharp using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(Rigidbody))] public class PlayerInput_Interactor : MonoBehaviour { public PlayerInput.HandSource hand; public Rigidbody xrRigRigidbody; public PlayerClimb climbScript; public VelocitiesFro...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_b8e1813c6903
unity_docs
editor
What is `PlayerSettings.enableMetalAPIValidation` in Unity? Explain its purpose and usage.
PlayerSettings.enableMetalAPIValidation public static bool enableMetalAPIValidation ; Description Enables Metal API validation in the Editor. When this option is set and the current graphics API is Metal, the usage of the Metal API is validated in the editor and any issues are reported to console.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_77ab46073232
unity_docs
math
What is `Vector2.LerpUnclamped` in Unity? Explain its purpose and usage.
Vector2.LerpUnclamped Declaration public static Vector2 LerpUnclamped ( Vector2 a , Vector2 b , float t ); Description Linearly interpolates between vectors a and b by t . When t = 0 returns a . When t = 1 return b . When t = 0.5 returns the midpoint of a and b . Additional resources...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_eee0c2c3a6a4
unity_docs
math
What is `Unity.Hierarchy.Hierarchy.GetChildren` in Unity? Explain its purpose and usage.
Hierarchy.GetChildren Declaration public HierarchyNode[] GetChildren (ref Unity.Hierarchy.HierarchyNode node ); Parameters Parameter Description node The hierarchy node. Returns HierarchyNode[] An array of hierarchy nodes. Description Gets the child nodes of a hierarchy node. Declaration public...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bd5125728144
unity_docs
physics
What is `Joint` in Unity? Explain its purpose and usage.
Joint class in UnityEngine / Inherits from: Component / Implemented in: UnityEngine.PhysicsModule Description Joint is the base class for all joints. Additional resources: CharacterJoint , HingeJoint , SpringJoint , FixedJoint , ConfigurableJoint . Properties Property Description anchor The Position ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_33bee68e9650
unity_docs
scripting
Explain 'Introducing Android' in Unity.
Android is a popular open-source operating system for smartphones and tablets. Unity includes native support for the Android platform which means you can use Unity and its tools to create and deliver 2D and 3D applications for Android. Before you begin to develop an Android application in Unity, familiarize yourself wi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_da78bb7cc56f
unity_docs
rendering
Show me a Unity C# example demonstrating `Search.TextCursorPlacement`.
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_man_501730903214
unity_docs
input
Show me a Unity code example for 'Enable optional features for Embedded Linux'.
g line: [TIMING::STARTUP] log tag: Real: xxx ms | User: yyy ms It contains the log tag , wall time (xxx) , and cpu time (yyy) in milliseconds since the player’s start time. You can guard the code using #if UNITY_EMBEDDED_LINUX_API ... #endif . Note: Use the same terminology as the Time command to refer to wall vs. CPU ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7c7df6f18a64
unity_docs
scripting
What is `Experimental.GraphView.Scope.containedElements` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Scope.containedElements public IEnumerable<GraphElement> containedElements ; Description The list of GraphElements contained by the Scope.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_44863acade36_doc_8
github
scripting
What does `GetPosition` do in this Unity script? Explain its purpose and signature.
Get the explicitly-set latitude and longitude coordinates of this Positioner.The position as a LatLong. Signature: ```csharp public LatLong GetPosition() ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_d9c14f743c7b
unity_docs
xr
Show me a Unity C# example demonstrating `Caching.ready`.
Caching.ready public static bool ready ; Description Returns true if Caching system is ready for use. ```csharp using System.Collections; using UnityEngine; using UnityEngine.Networking;public class Example : MonoBehaviour { IEnumerator IsCachingReadyExample(string uri) { //Using this conditional says we wan...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_137f26f72fd8
unity_docs
rendering
What is `LightTransport.RadeonRaysWorld.SetIntegrationContext` in Unity? Explain its purpose and usage.
RadeonRaysWorld.SetIntegrationContext Declaration public void SetIntegrationContext ( LightTransport.IntegrationContext context ); Parameters Parameter Description context Integration context to set. Description Set integration context. Set integration context on the world.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_470685c4d15b
unity_docs
scripting
What is `ParticleSystem.forceOverLifetime` in Unity? Explain its purpose and usage.
ParticleSystem.forceOverLifetime public ParticleSystem.ForceOverLifetimeModule forceOverLifetime ; Description Script interface for the ForceOverLifetimeModule of a Particle System. Apply forces to particles using this module. Forces are applied to the particle velocities on each frame. Particle System modul...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4a73e555073c
unity_docs
scripting
What is `Time.realtimeSinceStartup` in Unity? Explain its purpose and usage.
Time.realtimeSinceStartup public static float realtimeSinceStartup ; Description The real time in seconds since the game started (Read Only). In most cases, use Time.realtimeSinceStartupAsDouble , which offers more precision, particularly over extended periods of real-world time. Refer to its documentation f...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_142bd676ecae
github
scripting
Write a Unity C# script called Sorted Object List
```csharp using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Gilzoide.PrefabPool.Internal { /// <summary> /// Object list with sorted addition, for O(log N) removal /// </summary> public class SortedObjectList<T> : IComparer<T>, IReadOnlyCollection<T> where...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_man_44e563e90207
unity_docs
rendering
Explain 'Writing Surface Shaders' in Unity.
Resources and techniques for writing Surface Shaders in the Built-In Render Pipeline , which are streamlined shaders that interact with lighting. Page Description Introduction to Surface Shaders Learn about how Surface Shaders let you write shaders in a streamlined way. Surface Shader output structures Understand the s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ee8ed8b2682e
unity_docs
scripting
Give me an overview of the `GradientColorKey` class in Unity.
GradientColorKey struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Color key used by Gradient. Additional resources: GradientAlphaKey , Gradient . Properties Property Description color Color of key. time Time of the key (0 - 1). Constructors Constructor Description GradientCo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9772a03b5fd6
unity_docs
physics
What is `CharacterJoint.enableProjection` in Unity? Explain its purpose and usage.
CharacterJoint.enableProjection public bool enableProjection ; Description Brings violated constraints back into alignment even when the solver fails. Projection is not a physical process and does not preserve momentum or respect collision geometry. It is best avoided if practical, but can be useful in improvi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_89e23787855b
unity_docs
scripting
What is `Playables.PlayableBehaviour.OnGraphStop` in Unity? Explain its purpose and usage.
PlayableBehaviour.OnGraphStop Declaration public void OnGraphStop ( Playables.Playable playable ); Parameters Parameter Description playable The Playable that owns the current PlayableBehaviour. Description This function is called when the PlayableGraph that owns this PlayableBehaviour stops. OnGrap...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b62f924c270c
unity_docs
editor
What is `Unity.CodeEditor.CodeEditor.GetInstallationForPath` in Unity? Explain its purpose and usage.
CodeEditor.GetInstallationForPath Declaration public Unity.CodeEditor.CodeEditor.Installation GetInstallationForPath (string editorPath ); Parameters Parameter Description editorPath The absolute path to an executable. Returns Installation An Installation representation of the path. Description E...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_349c9d91ee6d
unity_docs
scripting
What is `Rendering.SplashScreen` in Unity? Explain its purpose and usage.
SplashScreen class in UnityEngine.Rendering / Implemented in: UnityEngine.CoreModule Description Provides an interface to the Unity splash screen. Static Properties Property Description isFinished Returns true once the splash screen has finished. This is once all logos have been shown for their specified dur...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ca893856762a
unity_docs
scripting
What is `Caching.GetAllCachePaths` in Unity? Explain its purpose and usage.
Caching.GetAllCachePaths Declaration public static void GetAllCachePaths (List<string> cachePaths ); Parameters Parameter Description cachePaths List of all the cache paths. Description Returns all paths of the cache in the cache list. ```csharp using System.IO; using System.Collections.Generic; using Uni...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f55f1970c1e7
unity_docs
rendering
In Unity's 'SketchUp Import Settings window reference', what is 'Selecting SketchUp Nodes' and how does it work?
Unity supports the visibility setting in the SketchUp file for each node. If a node is hidden in the SketchUp file, Unity does not import the node by default. However, you can override this behavior by clicking the Select Nodes button to display the SketchUp node hierarchy in the SketchUp Node Selection Dialog window. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2f972167acfb
unity_docs
scripting
What is `AwaitableCompletionSource.SetException` in Unity? Explain its purpose and usage.
AwaitableCompletionSource.SetException Declaration public void SetException (Exception exception ); Parameters Parameter Description exception Exception to raise in the continuation. Description Raise completion with an exception.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_485dc2b6933b
unity_docs
scripting
What is `AudioSource.SetScheduledEndTime` in Unity? Explain its purpose and usage.
AudioSource.SetScheduledEndTime Declaration public void SetScheduledEndTime (double time ); Parameters Parameter Description time Time in seconds. Description Changes the time at which a sound that has already been scheduled to play will end. Notice that depending on the timing not all rescheduling reques...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_717b3b90be27
unity_docs
editor
What is `ProfilerWindow.GetFrameTimeViewSampleSelectionController` in Unity? Explain its purpose and usage.
ProfilerWindow.GetFrameTimeViewSampleSelectionController Declaration public Profiling.IProfilerFrameTimeViewSampleSelectionController GetFrameTimeViewSampleSelectionController (string moduleIdentifier ); Parameters Parameter Description moduleIdentifier The identifier of the Profiler module whose selection...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3d948b294dee
unity_docs
scripting
Give me an overview of the `DrivenRectTransformTracker` class in Unity.
DrivenRectTransformTracker struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description A component can be designed to drive a RectTransform. The DrivenRectTransformTracker struct is used to specify which RectTransforms it is driving. Driving a RectTransform means that the values of the driven Rec...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6d235a653518
unity_docs
editor
Show me a Unity C# example demonstrating `RuntimePlatform.LinuxEditor`.
RuntimePlatform.LinuxEditor Description In the Unity editor on Linux. Additional resources: RuntimePlatform , Platform dependent compilation . ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { if (Application.platform == RuntimePlatform.LinuxEditor) { Debug.Log("Do something ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_67216288f5a5
unity_docs
rendering
What is `Material.GetTexturePropertyNameIDs` in Unity? Explain its purpose and usage.
Material.GetTexturePropertyNameIDs Declaration public int[] GetTexturePropertyNameIDs (); Declaration public void GetTexturePropertyNameIDs (List<int> outNames ); Parameters Parameter Description outNames IDs of all texture properties exposed on this material. Returns int[] IDs of all texture proper...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_22bc069e1a0f
unity_docs
scripting
What is `Animator.SetIKPositionWeight` in Unity? Explain its purpose and usage.
Animator.SetIKPositionWeight Declaration public void SetIKPositionWeight ( AvatarIKGoal goal , float value ); Parameters Parameter Description goal The AvatarIKGoal that is set. value The translative weight. Description Sets the translative weight of an IK goal (0 = at the original animation before IK...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1fb2caf30fd2
unity_docs
scripting
What is `UIElements.CollectionViewController.GetItemForId` in Unity? Explain its purpose and usage.
CollectionViewController.GetItemForId Declaration public object GetItemForId (int id ); Parameters Parameter Description id The item ID. Returns object The object in the source with this ID. Description Returns the item with the specified ID.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b93b07bf7361
unity_docs
editor
What is `AssetImporters.AssetImportContext.DependsOnCustomDependency` in Unity? Explain its purpose and usage.
AssetImportContext.DependsOnCustomDependency Declaration public void DependsOnCustomDependency (string dependency ); Parameters Parameter Description dependency Name of dependency. You can use any name you like, but because these names are global across all your Assets, it can be useful to use a naming conve...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cde33d537146
unity_docs
rendering
What is `Terrain.reflectionProbeUsage` in Unity? Explain its purpose and usage.
Terrain.reflectionProbeUsage public Rendering.ReflectionProbeUsage reflectionProbeUsage ; Description How reflection probes are used for terrain. See ReflectionProbeUsage . If enabled and reflection probes are present in the Scene, a reflection texture will be picked for the terrain object and set as a unifo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_adc8067b5214
unity_docs
editor
What is `EditorTools.IDrawSelectedHandles` in Unity? Explain its purpose and usage.
IDrawSelectedHandles interface in UnityEditor.EditorTools Description Implement this interface to draw handles when the selection contains a type targeted by an EditorTool . Public Methods Method Description OnDrawHandles Implement this method to draw non-interactive handles when a custom editor tool is avail...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_038f2ccefdb6
unity_docs
editor
What is `ArticulationBody.anchorRotation` in Unity? Explain its purpose and usage.
ArticulationBody.anchorRotation public Quaternion anchorRotation ; Description Rotation of the anchor relative to this body. Defined in this body's space. Units of measurement - quaternions in Scripting and degrees in the Editor.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_6f438c594cd9
unity_docs
rendering
In Unity's 'iOS authorizations in Unity', what is 'Send a request for authorization' and how does it work?
After you add the feature usage description, send a request for camera or microphone access using Application.RequestUserAuthorization method. The system displays a dialog describing the request for authorization. For a code example that shows how to use this API, refer to Application.RequestUserAuthorization . For inf...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_835eab3f53b3
unity_docs
math
Show me a Unity code example for 'Create a property visitor with low-level APIs'.
class example but with a visitor that implements these interfaces rather than one that derives from PropertyVisitor . ## Create data and utility classes Create the same Data and DebugUtilities classes as in the Create a property visitor with the PropertyVisitor class example. Modify the DebugUtilities class to use th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_60656547a4d7
unity_docs
rendering
Explain 'Introduction to the BatchRendererGroup API in URP' in Unity.
BRG is the perfect tool to: Render DOTS Entities . For more information how Entities uses BRG, refer to Entities Graphics Performance . Render a large number of environment objects where using individual GameObjects would be too resource-intensive. For example, procedurally-placed plants or rocks. Render custom terrain...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_3ace70cb6e91
unity_docs
physics
In Unity's 'Profiler window reference', what is 'Default Profiler modules' and how does it work?
Use the dropdown to add or remove modules to the Profiler. Profiler modules display performance data over time on a frame-by-frame basis in the charts in the top half of the window. When you select a profiler module its chart displays in the top half of the profiler window. The bottom half of the window contains a modu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_4b312d8f5740
github
scripting
Write a Unity C# MonoBehaviour script called Test Cases
```csharp using System.Collections.Generic; using UnityEngine; namespace CoreLibrary.Benchmarks.ComponentQueries { public sealed class TestComponent : MonoBehaviour { } public static class TestCases { // inclusive bounds private static Mapper AddComponentAtLevels<T>(int...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_c83b3920029f
unity_docs
scripting
What is `IMGUI.Controls.MultiColumnHeader.GetColumnRect` in Unity? Explain its purpose and usage.
MultiColumnHeader.GetColumnRect Declaration public Rect GetColumnRect (int visibleColumnIndex ); Parameters Parameter Description visibleColumnIndex Index of a visible column. Description Returns the header column Rect for a given visible column index.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7f53563401cf
unity_docs
rendering
What is `LightingSettings.lightmapMaxSize` in Unity? Explain its purpose and usage.
LightingSettings.lightmapMaxSize public int lightmapMaxSize ; Description The maximum size in pixels of an individual lightmap texture. (Editor only). The default value is 1024. Values are squared, so a value of 1024 results in a maximum resolution of 1024 x 1024. Smaller lightmaps might also be generated inst...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ddaf7e1d7d30
unity_docs
scripting
What is `Rendering.VirtualTexturing.Resolver.Dispose` in Unity? Explain its purpose and usage.
Virtual Texturing is experimental and not ready for production use. The feature and documentation might be changed or removed in the future. Resolver.Dispose Declaration public void Dispose (); Description Disposes this object.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_626f014fcefc
unity_docs
math
What is `Rendering.RayTracingAccelerationStructure.GetSize` in Unity? Explain its purpose and usage.
RayTracingAccelerationStructure.GetSize Declaration public ulong GetSize (); Returns ulong The total size of the acceleration structure in GPU memory in bytes. Description Returns the total size of this RayTracingAccelerationStructure in GPU memory in bytes. Building the acceleration structure prior to th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_339eb2d93a7b
github
scripting
Write a Unity C# MonoBehaviour script called A Job Behaviour
```csharp using System; using Gilzoide.UpdateManager.Jobs.Internal; using UnityEngine; namespace Gilzoide.UpdateManager.Jobs { /// <summary> /// <see cref="MonoBehaviour"/> abstract class with automatic registration in <see cref="UpdateTransformJobManager{}"/>. /// </summary> /// <remarks> /// Inst...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_3c8dff6bcb7c
unity_docs
scripting
What is `ModifiableContactPair.GetMaxImpulse` in Unity? Explain its purpose and usage.
ModifiableContactPair.GetMaxImpulse Declaration public float GetMaxImpulse (int i ); Parameters Parameter Description i Index of the contact point. Returns float The maximum impulse that can be applied. Description Get the maximum impulse that the solver can apply at a particular contact point in thi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_45d712f3d441
unity_docs
editor
What is `Search.SearchIndexer.Read` in Unity? Explain its purpose and usage.
SearchIndexer.Read Declaration public bool Read (Stream stream , bool checkVersionOnly ); Parameters Parameter Description stream The stream to read the index from. checkVersionOnly If true, verifies the version of the index. Returns bool Returns false if the version of the index is not supported. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c001c96f093a
unity_docs
rendering
In Unity's 'Rendering paths in Unity', what is 'Deferred' and how does it work?
The Deferred rendering path works in the following way: Unity first creates a geometry buffer (G-buffer), which is a set of textures that stores data about the geometry and materials the camera sees. Unity uses the data from the G-buffer to light all the GameObjects at once. There are fewer limits on lighting, so GameO...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_70f41beb1448
unity_docs
rendering
What is `Cloth.sleepThreshold` in Unity? Explain its purpose and usage.
Cloth.sleepThreshold public float sleepThreshold ; Description Cloth's sleep threshold. Sleep threshold is a linear speed of cloth particles, below which the whole cloth piece is going to fall asleep.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2d6b35587e75
unity_docs
rendering
What is `RenderTexture.useMipMap` in Unity? Explain its purpose and usage.
RenderTexture.useMipMap public bool useMipMap ; Description Render texture has mipmaps when this flag is set. When set to true , rendering into this render texture will create and generate mipmap levels. By default render textures don't have mipmaps. This flag can be used only on render textures that have pow...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6f7f0b88777b
unity_docs
scripting
What is `iOS.Xcode.XcScheme.WriteToFile` in Unity? Explain its purpose and usage.
XcScheme.WriteToFile Declaration public void WriteToFile (string path ); Parameters Parameter Description path Path to write the project contents to. Description Writes the scheme contents to the specified file. Set the path to the Unity project build folder containing your Xcode project using a post-proc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ec9329c60c6f
unity_docs
math
What is `ModifiableContactPair.GetNormal` in Unity? Explain its purpose and usage.
ModifiableContactPair.GetNormal Declaration public Vector3 GetNormal (int i ); Parameters Parameter Description i Index of the contact point. Returns Vector3 Normal at the contact point. Description Get the normal at a particular contact point in this contact pair.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a439f8f21237
unity_docs
scripting
What is `AndroidJNI.GetStaticIntField` in Unity? Explain its purpose and usage.
AndroidJNI.GetStaticIntField Declaration public static int GetStaticIntField (IntPtr clazz , IntPtr fieldID ); Description Returns the value of a static field of an 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.
gh_24aa17b9d3d2
github
scripting
Write a Unity C# script called Controller Button
```csharp using System.Collections; using System.Collections.Generic; using UnityEngine; namespace VrBlocks { public class ControllerButton { public delegate void Event(); public Event OnPress; public Event OnRelease; public bool Down { get; private set; } public bool...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_1014ad97dd34
unity_docs
scripting
Show me a Unity C# example demonstrating `Quaternion.Angle`.
oat Angle ( Quaternion a , Quaternion b ); Description Returns the angle in degrees between two rotations a and b . The resulting angle ranges from 0 to 180. Example: Think of two GameObjects (A and B) moving around a third GameObject (C). Lines from C to A and C to B create a triangle which can change ov...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_f522b91ce703_doc_30
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Represents an object which can receive seven or more arguments as part of its initialization process,with the twelfth one being an object of type . Type of the twelfth argument. Signature: ```csharp public interface ISeventhArgument<TSeventhArgument> ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_512bfb10a543
unity_docs
editor
Show me a Unity C# example demonstrating `Search.SearchIndexer.GetMetaInfo`.
SearchIndexer.GetMetaInfo Declaration public string GetMetaInfo (string documentId ); Parameters Parameter Description documentId Document id of the document. Returns string Metadata of the document. Description Get metadata of a specific document. ```csharp using System.IO; using UnityEditor; using...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_575d965d6d4d
unity_docs
animation
What is `ModelImporter.generateAnimations` in Unity? Explain its purpose and usage.
ModelImporter.generateAnimations public ModelImporterGenerateAnimations generateAnimations ; Description Animation generation options. Additional resources: ModelImporterGenerateAnimations .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4a0ebd3b3fb5
unity_docs
animation
What is `Animations.AnimatorState.AddTransition` in Unity? Explain its purpose and usage.
AnimatorState.AddTransition Declaration public Animations.AnimatorStateTransition AddTransition ( Animations.AnimatorState destinationState ); Declaration public Animations.AnimatorStateTransition AddTransition ( Animations.AnimatorState destinationState , bool defaultExitTime ); Parameters Paramete...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e906ba207168
unity_docs
scripting
Explain 'TagField' in Unity.
The TagField is an Editor-only control that lets users select a tag from a list of tags. It is commonly used in the Inspector window to allow users to select a tag for a GameObject . 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...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_7cb5cbdb678c
unity_docs
physics
In Unity's 'Optimize raycasts and other physics queries', what is 'Use non-allocating query versions' and how does it work?
Standard physics queries, such as Physics.Raycast , Physics.SphereCast , or Physics.OverlapSphere , allocate memory on the heap for their results. This allocation can contribute to garbage collection pauses, especially if they are called frequently. Instead, use the non-allocating counterparts of these queries that wri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8c0aee3f848e
unity_docs
rendering
Explain 'Customize the Light Explorer' in Unity.
The Light Explorer extension allows you to create your own version of the Light Explorer window . You can use this to adapt the functionality of the Light Explorer window so that it works with a custom Scriptable Render Pipeline (SRP), or with the High Definition Render Pipeline ’s custom Lights . The Light Explorer Wi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_daba8f1984be
unity_docs
xr
What is `Playables.PlayableTraversalMode.Passthrough` in Unity? Explain its purpose and usage.
PlayableTraversalMode.Passthrough Description Causes the Playable to act as a passthrough for PrepareFrame and ProcessFrame. If the PlayableOutput being processed is connected to the n-th input port of the Playable , the Playable only propagates the n-th output port. Use this enum value in conjunction with P...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0207b87778ec
unity_docs
rendering
What is `ParticleSystem.ShapeModule.length` in Unity? Explain its purpose and usage.
ParticleSystem.ShapeModule.length public float length ; Description Length of the cone to emit particles from. Note: length is only valid when ParticleSystem.ShapeModule.shapeType is set to ConeVolume or ConeVolumeShell . Additional resources: ParticleSystem.ShapeModule.shapeType .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bcb0e873e964
unity_docs
rendering
Show me a Unity C# example demonstrating `Rendering.ScriptableCullingParameters`.
lues has no effect. The following Scriptable Render Pipeline code demonstrates how to obtain a ScriptableCullingParameters struct from a Camera using Camera.TryGetCullingParameters , configure the struct, and then pass the struct to ScriptableRenderContext.Cull to obtain a CullingResults struct. You can then use t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_97b6130c6b84
unity_docs
scripting
What is `UIElements.StyleLength` in Unity? Explain its purpose and usage.
StyleLength struct in UnityEngine.UIElements / Implemented in: UnityEngine.UIElementsModule Implements interfaces: IStyleValue<T0> Description Style value that can be either a Length or a StyleKeyword . Properties Property Description keyword The style keyword. value The Length value. Constr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_33e2da2f9680
unity_docs
rendering
In Unity's 'Color by Speed 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 Color The color gradient of a particle defined over a speed range. Speed Range The low and high ends of the speed range to...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9cac9a39dea2
unity_docs
ui
What is `UIElements.UIDocument.runtimePanel` in Unity? Explain its purpose and usage.
UIDocument.runtimePanel public UIElements.IRuntimePanel runtimePanel ; Description The runtime panel that this UIDocument is attached to. Null will be returned if the UIDocument is not enabled or if the panel has not been created yet.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d7a1ae0f994e
unity_docs
scripting
What is `UIElements.Focusable.tabIndex` in Unity? Explain its purpose and usage.
Focusable.tabIndex public int tabIndex ; Description An integer used to sort focusables in the focus ring. Must be greater than or equal to zero. Setting the tabIndex value to less than 0 (for example, −1 ) removes the element from the focus ring and tab navigation.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ec0af3272c84
unity_docs
rendering
What are the parameters of `CubemapArray.GetPixels` in Unity?
Returns Color[] An array that contains the pixel colors. Description Gets the pixel color data for a mipmap level of a face of a slice as Color structs. This method gets pixel data from the texture in CPU memory. Texture.isReadable must be true . The array contains the pixels row by row, starting at the bottom left of ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_45a39fed1720
unity_docs
scripting
What is `Experimental.GraphView.GraphView.Layer` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Layer class in UnityEditor.Experimental.GraphView / Inherits from: UIElements.VisualElement Description The layer class for placing and interacting with graph elements in a GraphView. Constructors Constructor Description ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_58b22008b01c
unity_docs
scripting
Explain 'Focus searches with search providers' in Unity.
Search providers divide the search into categories like project assets, settings, and packages. They focus your search by excluding results that aren’t relevant to your current task. This section describes how to use search providers to filter your search results. For information on individual search providers, refer t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_faff7017dd9d_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
This will be attached to a GameObject to make it an Entity for Joy framework. Signature: ```csharp public class Entity : MonoBehaviour, IEquatable<Entity> ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_36d3dba95e1d
unity_docs
math
Show me a Unity C# example demonstrating `Pool.CollectionPool_2.Get`.
CollectionPool<T0,T1>.Get Declaration public static TCollection Get (); Returns TCollection A pooled object or a new instance if the pool is empty. Description Get an instance from the pool. If the pool is empty then a new instance will be created. ```csharp using System.Collections.Generic; using UnityEn...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_63f8b2dd96e7
unity_docs
xr
Explain 'Audio files' in Unity.
You can import and use audio files in your Unity projects to create a more immersive and interactive application. Topic Description Introduction to audio files An overview of audio files in Unity. Audio file format compatibility Information about the audio file formats Unity supports. Audio file compression in Unity An...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1a0ebc922c4d
unity_docs
input
Explain 'Input for iOS devices' in Unity.
iOS applications target Apple mobile devices. For more information on mobile device input in Unity, see Mobile device input . Topic Description iOS input overview Understand how to detect and handle user input on iOS devices. Game Controller support Learn how to use the Game Controller API in your application.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5ff79514ae5a
unity_docs
rendering
In Unity's 'Avoiding asset duplication', what is 'Duplication of assets in AssetBundles' and how does it work?
Unity uses the Asset Database to discover all dependencies of an object when it’s built into an AssetBundle. Unity uses this dependency information to determine the set of objects to include in an AssetBundle. AssetBundle assignment happens at the asset level. Objects in an asset explicitly assigned to an AssetBundle a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9a1901763188
unity_docs
scripting
What is `UIElements.IStyleValue_1` in Unity? Explain its purpose and usage.
IStyleValue<T0> interface in UnityEngine.UIElements Description Base interface for the style properties. Properties Property Description keyword The style keyword. value The style value.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2e6dd90bd530
unity_docs
scripting
Show me a Unity C# example demonstrating `Vector3.x`.
Vector3.x public float x ; Description X component of the vector. Use this to modify or return the X component of a vector. ```csharp // This script moves a GameObject to a new x position using Vector3.x. // Attach this script to a GameObject // Set your x position in the Inspectorusing UnityEngine;public clas...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8ee3f144290d
unity_docs
audio
In Unity's 'Specifics on the Audio Mixer window', what is 'Route Audio Mixers into other Audio Mixers' and how does it work?
Unity supports the use of multiple Audio Mixers within a scene at once. By default, each Audio Mixer outputs the audio signal directly to the AudioListener. You can choose to route the audio output of an Audio Mixer into an AudioGroup of another Audio Mixer. This allows for flexible and dynamic routing hierarchies at g...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6b5600200abe
unity_docs
physics
What is `ArticulationBody.Sleep` in Unity? Explain its purpose and usage.
ArticulationBody.Sleep Declaration public void Sleep (); Description Forces an articulation body to sleep. A common use is to call this from Awake in order to make an articulation body sleep at startup. See the Rigidbodies Overview in the manual for more information about Rigidbody/ArticulationBody sleeping...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fab99cc233e9
unity_docs
scripting
What is `Networking.DownloadHandlerBuffer` in Unity? Explain its purpose and usage.
DownloadHandlerBuffer class in UnityEngine.Networking / Inherits from: Networking.DownloadHandler / Implemented in: UnityEngine.UnityWebRequestModule Description A general-purpose DownloadHandler implementation which stores received data in a native byte buffer. This is a general-purpose DownloadHandler s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8af6f1bdf4fe
unity_docs
physics
Explain 'Terrain collider component reference' in Unity.
The Terrain collider builds a collider that matches the geometry of the Terrain it is attached to. It is the best and most accurate collider type for Terrains. Property Description Provides Contacts Enable Provides Contacts to generate contact information for this collider at all times. Usually, a collider only generat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d5175034c072
unity_docs
editor
Show me a Unity C# example demonstrating `EditorWindow.ShowModal`.
EditorWindow.ShowModal Declaration public void ShowModal (); Description Show modal editor window. Other windows will not be accessible and any script recompilation will not happen until this window is closed. ```csharp using UnityEditor; using UnityEngine; using UnityEngine.UIElements; public class ShowModal...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_97e53f9fcc07_doc_1
github
scripting
What does `InstantiatedSingletonsScenes` do in this Unity script? Explain its purpose and signature.
Enumerable of all scenes that contain singleton instance. Signature: ```csharp public static IEnumerable<Scene> InstantiatedSingletonsScenes => SceneScopedSingletons.Keys; ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_man_1cbe55910961
unity_docs
scripting
In Unity's 'Best practices for calling Java/Kotlin code', what is 'Minimize JNI calls' and how does it work?
Using the Java Native Interface (JNI), through either the high-level or low-level C# API is resource intensive and can be slow. To improve performance, and also code clarity, it’s best practice to keep the number of JNI calls low. To avoid unnecessary JNI calls, the high-level C# API caches the ID of each Java method t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_93168a42090d
unity_docs
ui
Explain 'ToolbarPopupSearchField' in Unity.
A ToolbarPopupSearchField is an Editor-only control that serves as a search field with a popup menu. It’s a combination of a ToolbarMenu and ToolbarSearchField . You can add logic to the dropdown menu to filter the search results. To pop up the menu, the user hovers over the magnifying glass icon. ## Create a ToolbarP...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_396fcc92d721
unity_docs
editor
What is `Time.realtimeSinceStartupAsDouble` in Unity? Explain its purpose and usage.
Time.realtimeSinceStartupAsDouble public static double realtimeSinceStartupAsDouble ; Description The real time in seconds since the game started (Read Only). Double precision version of Time.realtimeSinceStartup . This property is the time in seconds since the start of the application and isn't constant if ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8e047fff2bd1
unity_docs
scripting
What is `ObjectChangeEventStream.Builder.PushDestroyAssetObjectEvent` in Unity? Explain its purpose and usage.
ObjectChangeEventStream.Builder.PushDestroyAssetObjectEvent Declaration public void PushDestroyAssetObjectEvent (ref DestroyAssetObjectEventArgs data ); Parameters Parameter Description data The event data to add to the stream. Description Adds an DestroyAssetObjectEventArgs to the end of the stream.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d9f671b8d28c
unity_docs
xr
What is `U2D.SpriteAtlasManager.atlasRequested` in Unity? Explain its purpose and usage.
SpriteAtlasManager.atlasRequested Description Trigger when any Sprite was bound to SpriteAtlas but couldn't locate the atlas asset during runtime. This usually means the sprite was packed to an atlas which is not included in build This callback does not expect an immediate response from the user. Instead, it pa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.