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_62b83065deed
unity_docs
rendering
What is `Rendering.SupportedRenderingFeatures.overridesLODBias` in Unity? Explain its purpose and usage.
SupportedRenderingFeatures.overridesLODBias public bool overridesLODBias ; Description Specifies whether the renderer overrides the LOD bias settings in the Quality Settings Panel. If It does, the renderer does not need the built-in UI for LOD bias settings.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3a9fc48d8f7d
unity_docs
rendering
What is `LightingSettings.realtimeGI` in Unity? Explain its purpose and usage.
LightingSettings.realtimeGI public bool realtimeGI ; Description Whether to enable the Enlighten Realtime Global Illumination system for this Scene. When this is set to true , this Scene uses the Enlighten Realtime Global Illumination system. When this is set to false , this Scene does not use the Enlighten ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4d4d246ec5a9
unity_docs
scripting
What is `Experimental.GraphView.Scope.AddElement` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Scope.AddElement Declaration public void AddElement ( Experimental.GraphView.GraphElement element ); Parameters Parameter Description element The element to add. Description Adds a GraphElement to the Scope.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9206637269b2
unity_docs
rendering
What is `LightingExplorerTableColumn.DataType` in Unity? Explain its purpose and usage.
DataType enumeration Description A data type that defines the default behaviors for how to draw and compare items in the columns. Properties Property Description Name Draws a name field, and handles comparison for sorting. Also implements a search field for filtering the rows. Checkbox Draws a checkbox, and ha...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1a73a8ddc502
unity_docs
rendering
Give me an overview of the `Unwrapping` class in Unity.
Unwrapping class in UnityEditor Description Utility class for computing mesh UVs. This class allows you to compute UVs for procedurally generated meshes. Computing UVs is also called "unwrapping". Additional resources: Mesh class, Generating Lightmap UVs . Static Methods Method Description GeneratePerTrian...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f27e53466679
unity_docs
audio
What is `Microphone` in Unity? Explain its purpose and usage.
Microphone class in UnityEngine / Implemented in: UnityEngine.AudioModule Description Use this class to record to an AudioClip using a connected microphone. You can get a list of connected microphones from the devices property and then use the Start and End functions to start or end a recording session...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_7d7b8b0bea72
unity_docs
rendering
Explain 'Transparent Cutout Bumped Specular' in Unity.
Note. Unity 5 introduced the Standard Shader which replaces this shader . One consideration for this shader is that the Base texture’s alpha channel defines both the Transparent areas as well as the Specular Map. ## Transparent Cutout Properties Note. Unity 5 introduced the Standard Shader which replaces this shader....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e1603e411dfd
unity_docs
animation
What is `AnimatorStateInfo.speed` in Unity? Explain its purpose and usage.
AnimatorStateInfo.speed public float speed ; Description The playback speed of the animation. 1 is the normal playback speed. A negative playback speed will play the animation from the end. see AnimatorState.speed .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_80d35fe91455
unity_docs
scripting
Show me a Unity C# example demonstrating `GridLayout.CellToLocal`.
GridLayout.CellToLocal Declaration public Vector3 CellToLocal ( Vector3Int cellPosition ); Parameters Parameter Description cellPosition Cell position to convert. Returns Vector3 Local position of the cell position. Description Converts a cell position to local position space. ```csharp // Snap t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3d7e2ec625be
unity_docs
scripting
What is `TerrainData.GetInterpolatedHeight` in Unity? Explain its purpose and usage.
TerrainData.GetInterpolatedHeight Declaration public float GetInterpolatedHeight (float x , float y ); Parameters Parameter Description x X coordinate of the point in the range of [0, 1]. y Y coordinate of the point in the range of [0, 1]. Description Gets an interpolated height at a point x,y. The x an...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ffdb6c447ee0
unity_docs
scripting
What is `UIElements.TreeViewExpansionChangedArgs` in Unity? Explain its purpose and usage.
TreeViewExpansionChangedArgs class in UnityEngine.UIElements / Implemented in: UnityEngine.UIElementsModule Description A data structure for the tree view item expansion event. Properties Property Description id The id of the item being expanded or collapsed. Returns -1 when expandAll() or collapseAll()...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_baedb097fba4
unity_docs
animation
What is `ModelImporter.animationWrapMode` in Unity? Explain its purpose and usage.
ModelImporter.animationWrapMode public WrapMode animationWrapMode ; Description The default wrap mode for the generated animation clips. Additional resources: WrapMode , AnimationClip.wrapMode .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4dd94c6c604c
unity_docs
input
What is `EventType` in Unity? Explain its purpose and usage.
EventType enumeration Description Types of UnityGUI input and processing events. Use this to tell which type of event has taken place in the GUI. Types of Events include mouse clicking, mouse dragging, button pressing, the mouse entering or exiting the window, and the scroll wheel as well as others mentioned below...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7cdfaf325dce
unity_docs
scripting
What is `Vector3.Project` in Unity? Explain its purpose and usage.
Vector3.Project Declaration public static Vector3 Project ( Vector3 vector , Vector3 onNormal ); Parameters Parameter Description vector The vector to project. onNormal The vector to project onto. This vector doesn't need to be normalized. Returns Vector3 The vector that results from the projecti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_167fefd5c1a3
unity_docs
scripting
What is `Progress.Item.UnregisterCancelCallback` in Unity? Explain its purpose and usage.
Progress.Item.UnregisterCancelCallback Declaration public void UnregisterCancelCallback (); Description Unregisters a previously registered progress cancellation callback. Additional resources: Progress.UnregisterCancelCallback , Progress.Item.RegisterCancelCallback , Progress.Item.Cancel .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_eae4f90dc5ed
unity_docs
audio
In Unity's 'Audio in Web', what is 'AudioSource' and how does it work?
The AudioSource API supports basic positional audio playback, including: Pausing and resuming Rolloff Pitch setting Doppler effect support Unity WebGL supports the following AudioSource APIs: Settings Description Clip Determines the audio clip that plays next. dopplerLevel Sets the Doppler scale for the AudioSource. ig...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a0e45cae91db
unity_docs
editor
What is `Device.SystemInfo.deviceModel` in Unity? Explain its purpose and usage.
SystemInfo.deviceModel public static string deviceModel ; Description This has the same functionality as SystemInfo.deviceModel and also mimics platform-specific behavior in the Unity Editor.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_6a8b4e047aa2_doc_1
github
scripting
What does `TryRead2DAxis` do in this Unity script? Explain its purpose and signature.
Copied from the XRRayInteractor because it is not accessible in this scope. Reads the value from the given InputAction as Vector2.InputAction to be read.Vector2 read from the InputAction.If the value could be read successfully. Signature: ```csharp protected bool TryRead2DAxis(InputAction action, out Vector2 output) `...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_0dcc266cd981
unity_docs
scripting
What is `Build.Content.BuildUsageTagSet.UnionWith` in Unity? Explain its purpose and usage.
BuildUsageTagSet.UnionWith Declaration public void UnionWith ( Build.Content.BuildUsageTagSet other ); Parameters Parameter Description other Object usage information to be added to this BuildUsageTagSet. Description Adds the Object usage information from another BuildUsageTagSet to this BuildUsageTagSet....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2a3c8349835d
unity_docs
animation
What is `AnimatedValues.BaseAnimValueNonAlloc_1` in Unity? Explain its purpose and usage.
BaseAnimValueNonAlloc<T0> class in UnityEditor.AnimatedValues / Inherits from: AnimatedValues.BaseAnimValue_1 Description Abstract base class that provides an allocation free version of BaseAnimValue. Abstract base class that provides an allocation free version of BaseAnimValue. See BaseAnimValue. Inherited Me...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_16fcef0da5eb
unity_docs
scripting
What is `Experimental.GraphView.ShortcutHandler.RegisterCallbacksOnTarget` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. ShortcutHandler.RegisterCallbacksOnTarget Declaration protected void RegisterCallbacksOnTarget (); Description Called to register click event callbacks on the target element.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ebba9c31ef76
unity_docs
scripting
Show me a Unity C# example demonstrating `Caching.RemoveCache`.
Caching.RemoveCache Declaration public static bool RemoveCache ( Cache cache ); Parameters Parameter Description cache The Cache to be removed. Returns bool Returns true if the Cache is removed. Description Removes the Cache from cache list. ```csharp using System.IO; using UnityEngine;public class...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3b03480db42b
unity_docs
animation
What is `AssetImporters.MaterialDescription.TryGetAnimationCurve` in Unity? Explain its purpose and usage.
MaterialDescription.TryGetAnimationCurve Declaration public bool TryGetAnimationCurve (string clipName , string propertyName , out AnimationCurve value ); Parameters Parameter Description clipName The name of the AnimationClip. propertyName The name of the material property. value The retrieved Anima...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1f2580e87d37
unity_docs
scripting
What is `AudioType.ACC` in Unity? Explain its purpose and usage.
AudioType.ACC Description The audio file you want to stream has the Advanced Audio Coding (AAC) digital audio file format. Unity doesn’t natively support this format. Use this enumeration value to ensure the format type of the audio file has the ACC audio file format. If it has a different format, Unity might not p...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f800a22ea534
unity_docs
xr
What is `Rendering.RenderPipeline` in Unity? Explain its purpose and usage.
RenderPipeline class in UnityEngine.Rendering / Implemented in: UnityEngine.CoreModule Description Defines a series of commands and settings that describes how Unity renders a frame. Properties Property Description disposed Returns true when the RenderPipeline is invalid or destroyed. Public Methods Method...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_16d1e10bb62f
unity_docs
animation
What is `UIElements.Experimental.ValueAnimation_1.initialValue` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. ValueAnimation<T0>.initialValue public Func<VisualElement,T> initialValue ; Description Callback invoked when the from field has not been set, in order to retrieve the starting state of this animation.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fb213635eab5
unity_docs
scripting
What is `SceneVisibilityManager.IsHidden` in Unity? Explain its purpose and usage.
SceneVisibilityManager.IsHidden Declaration public bool IsHidden ( GameObject gameObject , bool includeDescendants ); Parameters Parameter Description gameObject GameObject to check. includeDescendants Specify true to check the GameObject and all its descendants. Set to false to check the GameObject. Re...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_942419b267ce
unity_docs
rendering
In Unity's 'ShaderLab: legacy lighting', what is 'Color' and how does it work?
``` Color color ``` Sets the object to a solid color. A color is either four RGBA values in parenthesis, or a color property name in square brackets.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d2fa54476bb5
unity_docs
ui
What is `UIElements.ContextType` in Unity? Explain its purpose and usage.
ContextType enumeration Description Describes in which context a VisualElement hierarchy is being ran. Properties Property Description Player Currently running in an Unity Player. Editor Currently running in the Unity Editor.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a0334c7761b3
unity_docs
scripting
Show me a Unity C# example demonstrating `Caching.ClearOtherCachedVersions`.
erCachedVersions (string assetBundleName , Hash128 hash ); Parameters Parameter Description assetBundleName The AssetBundle name. hash Version needs to be kept. Returns bool Returns true when cache clearing succeeded. Description Removes all the cached versions of the AssetBundle from the cache, ex...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1552363ff024
unity_docs
physics
What is `PhysicsVisualizationSettings.SetShowCapsuleColliders` in Unity? Explain its purpose and usage.
PhysicsVisualizationSettings.SetShowCapsuleColliders Declaration public static void SetShowCapsuleColliders (bool show ); Description Should CapsuleColliders be shown. Additional resources: CapsuleCollider .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5c262f8d1c91
unity_docs
physics
What is `Collision` in Unity? Explain its purpose and usage.
Collision class in UnityEngine / Implemented in: UnityEngine.PhysicsModule Description Describes a collision. Collision information is passed to Collider.OnCollisionEnter , Collider.OnCollisionStay and Collider.OnCollisionExit events. Note : The contact points are in world-space. Additional resources: Con...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_48b8c8ebfe4e
unity_docs
editor
What is `Editor.DrawHeader` in Unity? Explain its purpose and usage.
Editor.DrawHeader Declaration public void DrawHeader (); Description Call this function to draw the header of the editor. This function is relevant if you are creating and managing your own Editor objects. Additional resources: Editor.CreateEditor .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c3add74c8191
unity_docs
animation
Give me an overview of the `AvatarBuilder` class in Unity.
AvatarBuilder class in UnityEngine / Implemented in: UnityEngine.AnimationModule Description Class to build avatars from user scripts. This class allows you to create custom avatars for your animated characters entirely via script, in a similar way to what goes on behind the Scenes in the Unity Editor when you ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3b30f29ec11b
unity_docs
scripting
What is `Unity.IntegerTime.DiscreteTime.operator_lt` in Unity? Explain its purpose and usage.
DiscreteTime.operator < public static bool operator < ( Unity.IntegerTime.DiscreteTime lhs , Unity.IntegerTime.DiscreteTime rhs ); Description Returns whether the left-hand time value is less than the right-hand one.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5f25b32ecdca
unity_docs
rendering
Explain 'Introduction to panoramic videos' in Unity.
A panoramic video is a video that shows up to 360° views of a captured scene . Unity’s panoramic video feature enables you to: Include real-world 360° videos. Reduce scene complexity in VR by including a pre-rendered backdrop video instead of real geometry. To use the panoramic video features in the Unity Editor, you m...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_a431e5038f5d_doc_5
github
scripting
What does `OpenXRManagementWindow` do in this Unity script? Explain its purpose and signature.
Opens the Project Settings window to the XR Management Tab Signature: ```csharp public static void OpenXRManagementWindow() ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
gh_fed823099f13
github
scripting
Write a Unity Editor script for Addressable Skybox Editor
```csharp using System.Linq; using UnityEditor; using UnityEditor.SceneManagement; using UnityEngine; using UnityEngine.SceneManagement; using static UnityEditor.EditorGUI; using UnityObject = UnityEngine.Object; namespace PassivePicasso.SimplyAddress { [InitializeOnLoad] [CustomEditor(typeof(AddressableSkybo...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_man_2807f88f9a54
unity_docs
xr
In Unity's 'Store credentials for automatic proxy configuration (Windows)', what is 'Alternatives for other platforms and environments' and how does it work?
Unity’s automatic proxy configuration feature doesn’t fully support some platforms and environments. Some examples are: Linux, which isn’t supported by Unity’s automatic proxy configuration feature. A continuous integration (CI) or continuous delivery (CD) environment, where a pipeline (rather than a user) interacts wi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f44adede3ebe
unity_docs
physics
What is `Rigidbody2D.Slide` in Unity? Explain its purpose and usage.
Rigidbody2D.Slide Declaration public Rigidbody2D.SlideResults Slide ( Vector2 velocity , float deltaTime , Rigidbody2D.SlideMovement slideMovement ); Parameters Parameter Description velocity The velocity to use when the Rigidbody2D is sliding. deltaTime The time to integrate the velocity over. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_19264eefbe7f
unity_docs
editor
In Unity's 'Player Accounts Building Block', what is 'Deploy the Cloud Code module' and how does it work?
The test scene uses the BlocksGameModule.ccmr Cloud Code module to update the global score which is the result of the values of all authenticated players added together. To use this Cloud Code module, deploy it: Follow the instructions in LiveOps Building Blocks prerequisites to set up deployment in your project. Go to...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_824c8a3c5354
unity_docs
scripting
Show me a Unity C# example demonstrating `Mesh.GetVertexAttributeOffset`.
ssible to set up a vertex layout where attributes use different vertex buffers (see SetVertexBufferParams ). When you use such a layout, use this function to query where a given attribute is located in a stream. Note that this function returns the byte offset within a stream, without specifying which stream. To identi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fb9ce036607a
unity_docs
scripting
Show me a Unity C# example demonstrating `WaitForSecondsRealtime`.
WaitForSecondsRealtime class in UnityEngine / Inherits from: CustomYieldInstruction / Implemented in: UnityEngine.CoreModule Description Suspends the coroutine execution for the specified real (unscaled) time in seconds. WaitForSecondsRealtime can only be used with a yield statement in coroutines. To wai...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_50c73b5a230a
unity_docs
rendering
Show me a Unity C# example demonstrating `ParticleSystem.RotationBySpeedModule.range`.
ParticleSystem.RotationBySpeedModule.range public Vector2 range ; Description Set the minimum and maximum speeds that this module applies the rotation curve between. Additional resources: ParticleSystem.RotationBySpeedModule.angularVelocity. ```csharp using UnityEngine; using System.Collections;[RequireComp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6423ff21c950
unity_docs
editor
What is `AssetModificationProcessor.OnWillCreateAsset` in Unity? Explain its purpose and usage.
AssetModificationProcessor.OnWillCreateAsset(string) Description Unity calls this method when it is about to create an Asset you haven't imported (for example, .meta files). ```csharp using UnityEngine;public class CustomAssetModificationProcessor : UnityEditor.AssetModificationProcessor { static void OnWillCreat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1ae0cd545935
unity_docs
editor
What is `EditorSkin` in Unity? Explain its purpose and usage.
EditorSkin enumeration Description Enum that selects which skin to return from EditorGUIUtility.GetBuiltinSkin. Properties Property Description Game The skin used for game views. Inspector The skin used for inspectors. Scene The skin used for Scene views.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_99dd3ca3a01b
unity_docs
scripting
What is `UIElements.ConverterGroup.AddConverter` in Unity? Explain its purpose and usage.
ConverterGroup.AddConverter Declaration public void AddConverter (TypeConverter<TSource,TDestination> converter ); Parameters Parameter Description converter The converter to add. Description Adds a converter to the group.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_c2852abd5b91_doc_3
github
scripting
What does `DeactivatePassthrough` do in this Unity script? Explain its purpose and signature.
Deactivates the passthrough mode if available. Signature: ```csharp public abstract void DeactivatePassthrough(); ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
gh_bd5969e828d3_doc_1
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Raised when a camera transition begins. Signature: ```csharp public event TransitionStartHandler OnTransitionStart; ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_9e20658bc68c
unity_docs
rendering
What is `LightingSettings.directionalityMode` in Unity? Explain its purpose and usage.
LightingSettings.directionalityMode public LightmapsMode directionalityMode ; Description Determines whether the lightmapper should generate directional or non-directional lightmaps. (Editor only). When this is set to Directional , Unity generates an additional lightmap that encodes a vector for the dominan...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2b5749b4eb00
unity_docs
math
What is `UIElements.PointerEventBase_1.radius` in Unity? Explain its purpose and usage.
PointerEventBase<T0>.radius public Vector2 radius ; Description Gets an estimate of the radius of a touch. Add radiusVariance to get the maximum touch radius, subtract it to get the minimum touch radius.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a0fa9546e665
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.RG_BC5_SNorm` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.RG_BC5_SNorm Description A two-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of signed normalized RG texel data with the first 64 bits encoding red values foll...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d4f7af0e9cd4
unity_docs
scripting
What is `GridLayout.LocalToCell` in Unity? Explain its purpose and usage.
GridLayout.LocalToCell Declaration public Vector3Int LocalToCell ( Vector3 localPosition ); Parameters Parameter Description localPosition Local Position to convert. Returns Vector3Int Cell position of the local position. Description Converts a local position to cell position. ```csharp // Snap t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1b94c471b720
unity_docs
rendering
Explain 'Reducing the size or number of shaders' in Unity.
Approaches for optimizing build times or the performance of your application, by reducing the number of compiled shaders or controlling how much memory shaders use. Page Description Shader compilation Understand how and when Unity compiles and loads shaders. Reducing shader variants Reduce the number of compiled shader...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dce98b3e3e98
unity_docs
scripting
What is `AI.NavMeshAgent.ResetPath` in Unity? Explain its purpose and usage.
NavMeshAgent.ResetPath Declaration public void ResetPath (); Description Clears the current path. When the path is cleared, the agent will not start looking for a new path until SetDestination is called. Note that if the agent is on an OffMeshLink when this function is called, it will complete the link immediat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_332bccc3f9e1
unity_docs
math
Show me a Unity C# example demonstrating `Mesh.MeshDataArray.Dispose`.
to dispose of the MeshDataArray struct. It is important to dispose of a MeshDataArray struct once you have finished working with it. Modifying a Mesh while a MeshDataArray struct for that Mesh exists results in memory allocations and data copies. Use Dispose to dispose of the MeshDataArray struct when you ha...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d58e1be68945
unity_docs
physics
In Unity's 'Introduction to Terrain colliders', what is 'Colliders for Terrain Trees and Details' and how does it work?
A Terrain has two brush types that add Prefabs to the Terrain: Trees and Details . These brushes allow you to quickly add trees, bushes, rocks, and other terrain details. For more detailed information, see Terrain documentation on Brushes , Trees , and Grass and other details . When you create a Prefab, you add any col...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0f162a695918
unity_docs
scripting
What is `ParticleSystem.CollisionModule.bounceMultiplier` in Unity? Explain its purpose and usage.
ParticleSystem.CollisionModule.bounceMultiplier public float bounceMultiplier ; Description A multiplier for ParticleSystem.CollisionModule.bounce . Changing this property is more efficient than accessing the entire curve, if you only want to change the overall bounce multiplier. ```csharp using UnityEngine;...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a6fa3d23aab7
unity_docs
networking
Explain 'Caching assets' in Unity.
If you’re working on a large project with lots of assets, you can use Unity Accelerator to reduce iteration time. Unity Accelerator uses the Asset Import Pipeline to coordinate asset sharing when your team is working on the same local network so that you don’t need to reimport portions of your project. Topic Descriptio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ba481ef98d01
unity_docs
scripting
What are the parameters of `VersionControl.Provider.PreSubmitCallback` in Unity?
Description Delegate for a user-supplied callback to be called before Version Control Submit. A PreSubmitCallback may be set to enable the following: Permit the submission by returning true from the callback. Prevent the submission by returning false from the callback. Modify the list of Assets to be submitted (you may...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_7febae5d6c5c
unity_docs
scripting
Explain 'Box' in Unity.
The Box element is a VisualElement with the following styling properties: ```.unity-box { background-color: env(--theme-box-background-color); border-color: env(--theme-box-border-color); border-width: 1px; } ``` ## Create a Box You can create a Box with UXML or C#. The following C# example creates a Box with a label...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8c57b9c70651
unity_docs
editor
What is `TypeCache.TypeCollection` in Unity? Explain its purpose and usage.
TypeCollection struct in UnityEditor Description Represents a read-only collection of Type and implements an IList interface. Note: All IList methods which might alter the collection always throw NotSupportedException . Properties Property Description Count The number of elements in TypeCollection. IsFix...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_79d4c30ba85a
unity_docs
scripting
What is `UIElements.StartDragArgs.SetGenericData` in Unity? Explain its purpose and usage.
StartDragArgs.SetGenericData Declaration public void SetGenericData (string key , object data ); Parameters Parameter Description key The key for this entry. data The data to store. Description Sets data associated with the current drag-and-drop operation.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_07e0e77f661a
unity_docs
rendering
In Unity's 'Activate and deactivate search providers', what is 'Toggle providers' and how does it work?
To toggle a search provider in the Search window: In the Search window > Results tab, select More ( ⋮ ). Select a search provider to toggle it on or off. Note: If you load a saved search query that uses an inactive provider, the search provider becomes active.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_50e8c2251365
unity_docs
ui
What is `UIElements.BaseVerticalCollectionView.contentContainer` in Unity? Explain its purpose and usage.
BaseVerticalCollectionView.contentContainer public UIElements.VisualElement contentContainer ; Description Returns the content container for the BaseVerticalCollectionView . Because the BaseVerticalCollectionView control automatically manages its content, this always returns null.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1ca794756c80
unity_docs
scripting
What is `Time.timeAsRational` in Unity? Explain its purpose and usage.
Time.timeAsRational public static Unity.IntegerTime.RationalTime timeAsRational ; Description The time this frame has started (Read Only). This is the time in seconds since the start of the game represented as a RationalTime.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f500a4d6d4ff
unity_docs
rendering
Explain 'Example of Particle System Surface Shader custom vertex streams in the Built-In Render Pipeline' in Unity.
It’s possible to use Surface Shaders with custom vertex streams, although there are some extra things to be aware of: The input structure to your surface function is not the same as the input structure to the vertex Shader . You need to provide your own vertex Shader input structure. See below for an example, where it ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9d84c65a3f0c
unity_docs
physics
What is `Rigidbody.maxAngularVelocity` in Unity? Explain its purpose and usage.
Rigidbody.maxAngularVelocity public float maxAngularVelocity ; Description The maximum angular velocity of the rigidbody measured in radians per second. (Default 7) range { 0, infinity }. The angular velocity of rigidbodies is clamped to maxAngularVelocity to avoid numerical instability with fast rotating bodi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0c630790bcf6
unity_docs
rendering
Explain 'Transparent Cutout Bumped Diffuse' in Unity.
Note. Unity 5 introduced the Standard Shader which replaces this shader . ## Transparent Cutout Properties Note. Unity 5 introduced the Standard Shader which replaces this shader. Cutout shader is an alternative way of displaying transparent objects. Differences between Cutout and regular Transparent shaders are: Thi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f59f66c37ca9
unity_docs
scripting
In Unity's 'Build a Linux application', what is 'Linux Player build binaries' and how does it work?
When you build a Unity application on the Linux platform, Unity produces the following files, where ProjectName is the name of your application: ProjectName.x86_64 : This is the project executable file for your application. It contains the program entry point that initiates the Unity engine when launched. UnityPlayer.s...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bee45cc92966
unity_docs
scripting
What is `Experimental.GraphView.SelectionDropper.ctor` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. SelectionDropper.ctor(DropEvent) Parameters Parameter Description handler The drop event. Description SelectionDropper's constructor.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2bbd98273a99
unity_docs
ui
In Unity's 'Foldout', what is 'Respond to user actions' and how does it work?
A Foldout and its Toggle sub-element respond to Change events . The Toggle hides or shows the Foldout container. You can bind a Foldout to a Boolean variable or access its value through the INotifyValueChanged<bool> interface.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_850719bea5b2
unity_docs
physics
In Unity's 'Particle physics forces', what is 'External forces' and how does it work?
The External Forces module modifies the effect of wind zones and Particle System Force Fields on particles emitted by the system. To get the best results out of this feature, create separate GameObjects with ParticleSystemForceFields components. A Terrain can incorporate wind zones which affect the movement of trees on...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ebe34128e9e2
unity_docs
rendering
What is `LightingSettings.denoiserTypeAO` in Unity? Explain its purpose and usage.
LightingSettings.denoiserTypeAO public LightingSettings.DenoiserType denoiserTypeAO ; Description Determines the type of denoising that the Progressive Lightmapper applies to ambient occlusion in lightmaps. (Editor only). Use denoising to remove visual noise from your lightmaps. Denoising can reduce the numb...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_771263987751
unity_docs
rendering
What is `TextureImporterSettings` in Unity? Explain its purpose and usage.
TextureImporterSettings class in UnityEditor Description Stores settings of a TextureImporter . Additional resources: TextureImporter . Properties Property Description alphaIsTransparency If the alpha channel of your texture represents transparency, enable this property to dilate the color channels of visib...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_24cb034698b6
unity_docs
scripting
What is `GraphicsBuffer.IndirectDrawIndexedArgs` in Unity? Explain its purpose and usage.
IndirectDrawIndexedArgs struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Defines the data layout for indexed indirect render calls. To setup GraphicsBuffer for indexed indirect rendering, use this struct to define the data layout. The layout can change between platforms, so to improv...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_af90ad18cab9
unity_docs
editor
What is `Build.IOrderedCallback` in Unity? Explain its purpose and usage.
IOrderedCallback interface in UnityEditor.Build Description Interface that provides control over callback order. Properties Property Description callbackOrder Returns the relative callback order for callbacks. Callbacks with lower values are called before ones with higher values.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f5d4fe7c41b7
unity_docs
editor
What is `PackageManager.UI.Sample` in Unity? Explain its purpose and usage.
Sample struct in UnityEditor.PackageManager.UI Description Struct for Package Sample. Properties Property Description description The description of the package sample. displayName The display name of the package sample. importPath The full path to where the sample will be imported, under the project assets...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_55abac8828f8
unity_docs
editor
Show me a Unity C# example demonstrating `AssetDatabase.importPackageCancelled`.
AssetDatabase.importPackageCancelled Parameters Parameter Description value Name of package. Description Callback raised whenever a package import is cancelled by the user. ```csharp using UnityEditor; using UnityEngine;[InitializeOnLoad] public class AssetDatabaseExamples { static AssetDatabaseExamples() { ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d62f56658059
unity_docs
xr
What is `Networking.DownloadHandlerAssetBundle.GetContent` in Unity? Explain its purpose and usage.
DownloadHandlerAssetBundle.GetContent Declaration public static AssetBundle GetContent ( Networking.UnityWebRequest www ); Parameters Parameter Description www A finished UnityWebRequest object with DownloadHandlerAssetBundle attached. Returns AssetBundle The same as DownloadHandlerAssetBundle.asse...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1997bf356d45
unity_docs
performance
What is `Hash128.Append` in Unity? Explain its purpose and usage.
Hash128.Append Declaration public void Append (int val ); Declaration public void Append (float val ); Declaration public void Append (ref T val ); Parameters Parameter Description val Input value. Description Hash new input data and combine with the current hash value. The value must be an "unm...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_934a1b27ece9
unity_docs
rendering
Explain 'Tri-planar texturing shader example in the Built-In Render Pipeline' in Unity.
For complex or procedural meshes, instead of texturing them using the regular UV coordinates, it is sometimes useful to just “project” texture onto the object from three primary directions. This is called “tri-planar” texturing. The idea is to use surface normal to weight the three texture directions. Here’s the shader...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_abf4bdf18dd8
unity_docs
xr
What is `Caching.ClearAllCachedVersions` in Unity? Explain its purpose and usage.
Caching.ClearAllCachedVersions Declaration public static bool ClearAllCachedVersions (string assetBundleName ); Parameters Parameter Description assetBundleName The AssetBundle name. Returns bool Returns true when cache clearing succeeded. Description Removes all the cached versions of the given Asse...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c71462857ea7
unity_docs
scripting
What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.As` in Unity? Explain its purpose and usage.
UnsafeUtility.As Declaration public static ref T As (ref U from ); Parameters Parameter Description from The reference to an object of one type that you want to reinterpret as a reference of another type. Ensure the conversion is between compatible types to prevent runtime errors. Returns T A reference t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_26c816527846
unity_docs
scripting
What is `UIElements.TempMeshAllocator.AllocateTempMesh` in Unity? Explain its purpose and usage.
TempMeshAllocator.AllocateTempMesh Declaration public void AllocateTempMesh (int vertexCount , int indexCount , out NativeSlice<Vertex> vertices , out NativeSlice<ushort> indices ); Parameters Parameter Description vertexCount The number of vertices to allocate, with a maximum limit of 65535 (or UInt16.Ma...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f244dbdd3327
unity_docs
scripting
What is `tvOS.DeviceGeneration` in Unity? Explain its purpose and usage.
DeviceGeneration enumeration Description tvOS device generation. Properties Property Description AppleTVHD Apple TV HD. AppleTV4K First generation Apple TV 4K. AppleTV4K2Gen Second generation Apple TV 4K. AppleTV4K3Gen Third generation Apple TV 4K.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e4b45f1cb33f
unity_docs
physics
What is `AnchoredJoint2D.autoConfigureConnectedAnchor` in Unity? Explain its purpose and usage.
AnchoredJoint2D.autoConfigureConnectedAnchor public bool autoConfigureConnectedAnchor ; Description Should the connectedAnchor be calculated automatically? When true, the connectedAnchor property will be calculated automatically to match the world position of the anchor property. When false, the position ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_28774090fc4c
unity_docs
scripting
What is `ParticleSystem.LimitVelocityOverLifetimeModule.multiplyDragByParticleSize` in Unity? Explain its purpose and usage.
ParticleSystem.LimitVelocityOverLifetimeModule.multiplyDragByParticleSize public bool multiplyDragByParticleSize ; Description Adjust the amount of drag this module applies to particles, based on their sizes. Additional resources: ParticleSystem.LimitVelocityOverLifetimeModule.drag , ParticleSystem.LimitVelo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a637b1028b3e
unity_docs
scripting
What is `Mesh.uv7` in Unity? Explain its purpose and usage.
Mesh.uv7 public Vector2[] uv7 ; Description The texture coordinates (UVs) in the seventh channel. This channel is also commonly called "UV6". It maps to the shader semantic `TEXCOORD6`. When you call Mesh.HasVertexAttribute , this channel corresponds to VertexAttribute.TexCoord6 . Unity stores UVs in 0-1 spa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9cc371a059d2
unity_docs
scripting
What is `Serialization.FormerlySerializedAsAttribute` in Unity? Explain its purpose and usage.
FormerlySerializedAsAttribute class in UnityEngine.Serialization / Implemented in: UnityEngine.CoreModule Description Use this attribute to rename a field without losing its serialized value. Suppose you have a class like this: ```csharp using UnityEngine;public class MyMonster : MonoBehaviour { public int hi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_eb55a94491ae
unity_docs
rendering
What is `Rendering.ShaderKeywordSet` in Unity? Explain its purpose and usage.
ShaderKeywordSet struct in UnityEngine.Rendering / Implemented in: UnityEngine.CoreModule Description A collection of ShaderKeyword that represents a specific shader variant. Additional resources: ShaderKeyword , Rendering.ShaderKeywordSetUtility, Shader.EnableKeyword , Shader.EnableKeyword , Shader varia...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_eb5880b82a51
unity_docs
scripting
What is `Rendering.ReflectionCubemapCompression` in Unity? Explain its purpose and usage.
ReflectionCubemapCompression enumeration Description Determines how Unity will compress baked reflection cubemap. Properties Property Description Uncompressed Baked Reflection cubemap will be left uncompressed. Compressed Baked Reflection cubemap will be compressed. Auto Baked Reflection cubemap will be compr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_90f9a266bae5
unity_docs
editor
What are the parameters of `AssetDatabase.GetAssetOrScenePath` in Unity?
Description Returns the path name relative to the project folder where the asset or scene is stored. All paths are relative to the project folder, for example: "Assets/MyTextures/hello.png" When a GameObject is part of a scene, the scene path is returned. ```csharp using UnityEditor; using UnityEditor....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a49999afa0be
unity_docs
editor
What is `Search.QueryEngine_1.GetAllFilters` in Unity? Explain its purpose and usage.
QueryEngine<T0>.GetAllFilters Declaration public IEnumerable<IQueryEngineFilter> GetAllFilters (); Returns IEnumerable<IQueryEngineFilter> An enumerable of IQueryEngineFilter . Description Get all filters added on this QueryEngine . This method returns all the filters that were added on the QueryEngine...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cf3fb2978611
unity_docs
scripting
What is `U2D.SpriteDataAccessExtensions.SetVertexCount` in Unity? Explain its purpose and usage.
SpriteDataAccessExtensions.SetVertexCount Declaration public static void SetVertexCount ( Sprite sprite , int count ); Description Sets the vertex count. This resizes the internal buffer. It also preserves any configurations of VertexAttributes.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8d0c65212c2a
unity_docs
scripting
What is `Search.IQueryEngineFilter.overridesStringComparison` in Unity? Explain its purpose and usage.
IQueryEngineFilter.overridesStringComparison public bool overridesStringComparison ; Description Indicates if the filter overrides the global string comparison options. This flag is set to true when there is a string comparison option for the filter which overrides the global string comparison options. See Add...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_601674db067e
unity_docs
math
What is `Vector2.operator_Vector2` in Unity? Explain its purpose and usage.
Vector2.Vector3 Description Converts a Vector2 to a Vector3 . A Vector2 can be implicitly converted into a Vector3 . (The z is set to zero in the result). ```csharp using UnityEngine;public class ExampleScript : MonoBehaviour { void Start() { Vector2 v2 = new Vector2(1, 2); Debug.Log("Vector2 is: " + v2)...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_49c98a6c597e
unity_docs
math
What is `Android.AndroidAssetPacks.GetCoreUnityAssetPackNames` in Unity? Explain its purpose and usage.
AndroidAssetPacks.GetCoreUnityAssetPackNames Declaration public static string[] GetCoreUnityAssetPackNames (); Returns string[] Returns an array of asset pack names for core Unity asset packs with the fast-follow or on-demand delivery type. If Unity did not create any core asset packs for this application with...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_95d8d595614a
unity_docs
rendering
What is `Rendering.RenderTargetIdentifier.AllDepthSlices` in Unity? Explain its purpose and usage.
RenderTargetIdentifier.AllDepthSlices public static int AllDepthSlices ; Description All depth-slices of the render resource are bound for rendering. For textures which are neither array nor 3D, the default slice is bound.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_784a8fdadf8b_doc_15
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Will cause collision geometry to be generated for building meshes if true. Signature: ```csharp public bool BuildingCollision ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.