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_62b4b892108c
unity_docs
rendering
What is `RenderTextureFormat.Shadowmap` in Unity? Explain its purpose and usage.
RenderTextureFormat.Shadowmap Description A native shadowmap render texture format. This represents a format for which the GPU can automatically do shadowmap comparisons for. Unity uses this format internally for shadows, when supported. Note that some platforms or GPUs do not support Shadowmap format, in which cas...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_cf54387f022b
unity_docs
rendering
Explain 'Linux Player settings' in Unity.
Use the Linux Unity Player settings (menu: Edit > Project Settings > Player ) to determine how Unity builds and displays your Linux application. For a description of the general Player settings, refer to Player Settings . You can find documentation for the properties in the following sections: Icon Resolution and Prese...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a1c46be50af6
unity_docs
editor
What are the parameters of `iOS.Xcode.PBXProject.RemoveAssetTag` in Unity?
Description Removes an asset tag. Removes the given asset tag from the list of configured asset tags for all files on all targets, the list of asset tags configured for initial installation and the list of known asset tags in the Xcode project. ```csharp using UnityEditor; using System.IO; using UnityEditor.Callbacks; ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8389fbdd5a1a
unity_docs
rendering
What are the parameters of `GUI.Box` in Unity?
Description Create a Box on the GUI Layer. A Box can contain text, an image, or a combination of these along with an optional tooltip, through using a GUIContent parameter. You may also use a GUIStyle to adjust the layout of items in a box, text colour and other properties. Here is an example of a Box c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cd43888c6217
unity_docs
rendering
What is `Terrain.holesRenderTextureFormat` in Unity? Explain its purpose and usage.
Terrain.holesRenderTextureFormat public static RenderTextureFormat holesRenderTextureFormat ; Description Render texture format of the Terrain holes Texture. Additional resources: holesFormat .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6bdafd1f9f82
unity_docs
editor
Give me an overview of the `CustomEditor` class in Unity.
CustomEditor class in UnityEditor Description Tells an Editor class which run-time type it's an editor for. When you make a custom editor for a component, put this attribute on the editor class. To set which Editor classes are active for the current Render Pipeline Asset, add a SupportedOnRenderPipelineAttri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6fdcf853dba4
unity_docs
audio
What is `Audio.AudioMixer.TransitionToSnapshots` in Unity? Explain its purpose and usage.
AudioMixer.TransitionToSnapshots Declaration public void TransitionToSnapshots (AudioMixerSnapshot[] snapshots , float[] weights , float timeToReach ); Parameters Parameter Description snapshots The set of snapshots to be mixed. weights The mix weights for the snapshots specified. timeToReach Relative ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0d0ad72350cc
unity_docs
rendering
Explain 'Configure lightmapping with a Lighting Settings Asset' in Unity.
A Lighting Settings Asset represents a saved instance of the LightingSettings class, which stores data for the Baked Global Illumination and the Enlighten Realtime Global Illumination systems. The Unity Editor uses this data when it precomputes lighting data for a Scene that uses one or both of these systems. You can a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_be19d68f0bd1
github
scripting
Write a Unity C# XR/VR script for Screen Space Joint Visualizer
```csharp using System; using System.Collections.Generic; using Unity.Collections; using UnityEngine; using UnityEngine.XR.ARSubsystems; namespace UnityEngine.XR.ARFoundation.Samples { public class ScreenSpaceJointVisualizer : MonoBehaviour { // 2D joint skeleton enum JointIndices { ...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_0b20f9359abc
unity_docs
rendering
What is `ParticleSystem.Particle.angularVelocity3D` in Unity? Explain its purpose and usage.
ParticleSystem.Particle.angularVelocity3D public Vector3 angularVelocity3D ; Description The 3D angular velocity of the particle. This is the particle's angular velocity in degrees per second, around each axis.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_83d82b6a64dc
unity_docs
ui
What is `UIElements.RadioButton.ussClassName` in Unity? Explain its purpose and usage.
RadioButton.ussClassName public static string ussClassName ; Description USS class name for RadioButton elements. Unity adds this USS class to every instance of the RadioButton element. Any styling applied to this class affects every RadioButton located beside, or below the stylesheet in the visual tree.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1f694bd2d960
unity_docs
physics
What is `FixedJoint2D` in Unity? Explain its purpose and usage.
FixedJoint2D class in UnityEngine / Inherits from: AnchoredJoint2D / Implemented in: UnityEngine.Physics2DModule Description Connects two Rigidbody2D together at their anchor points using a configurable spring. Properties Property Description dampingRatio The amount by which the spring force is reduced i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ab4f58ee2513
unity_docs
scripting
What is `Quaternion.Inverse` in Unity? Explain its purpose and usage.
Quaternion.Inverse Declaration public static Quaternion Inverse ( Quaternion rotation ); Description Returns the Inverse of rotation . ```csharp using UnityEngine;public class Example : MonoBehaviour { // Sets this transform to have the opposite rotation of the target Transform target; void Update() { ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_92446ba6709e
unity_docs
rendering
What is `LightProbeProxyVolume.gridResolutionY` in Unity? Explain its purpose and usage.
LightProbeProxyVolume.gridResolutionY public int gridResolutionY ; Description The 3D grid resolution on the y-axis. This property is used only when the resolutionMode is set to Custom . The final resolution is the closest power of 2.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f4a7f82f2b26
unity_docs
editor
Give me an overview of the `DataModeChangeEventArgs` class in Unity.
DataModeChangeEventArgs struct in UnityEditor Description Container for the different parameters of the IDataModeController.dataModeChanged event. Properties Property Description changedThroughUI Whether the change was initiated by the DataMode switcher UI at the top-right of the EditorWindow. nextDataMode ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e241f1add18b
unity_docs
rendering
Give me an overview of the `Rect` class in Unity.
Rect struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description A 2D Rectangle defined by X and Y position, width and height. Unity uses a number of 2D coordinate spaces, most of which define X as increasing to the right, and Y increasing upwards. The one exception is in the GUI and GUILayout c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_3ee3b571814c
unity_docs
editor
Explain 'Package Manager' in Unity.
To access the Package Manager settings, open the Edit menu, then select Project Settings , then select the Package Manager category. These settings let you manage your scoped registries and change the advanced settings for your current project. (A) Under the Advanced Settings section, toggle whether pre-release package...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_273dd2053d85
unity_docs
scripting
What is `AsyncOperation.priority` in Unity? Explain its purpose and usage.
AsyncOperation.priority public int priority ; Description Priority lets you tweak in which order async operation calls will be performed. When multiple asynchronous operations are queued up, the operation with the higher priority will be executed first. Once an operation has been started on the background threa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b2a1adfb31f2
unity_docs
scripting
What are the parameters of `Animations.AnimatorJobExtensions.AddJobDependency` in Unity?
Description Creates a dependency between animator jobs and the job represented by the supplied job handle. To add multiple job dependencies, call this method for each job that need to run before the Animator's jobs. After each update the Animator dependencies are flushed. ```csharp using UnityEngine; using UnityEngine....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_605152f48023
unity_docs
ui
Explain 'Foldout' in Unity.
A Foldout is a collapsible section of a UI. The Foldout hides or reveals the elements it contains when you click its header. ## Create a Foldout A Foldout has the following elements: Label : A label you can use as the name of the Foldout. Toggle : Click the toggle to expand or collapse the container sub-element. It i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cc52ea1c82d6
unity_docs
scripting
What is `PackageManager.PackageCollection.error` in Unity? Explain its purpose and usage.
PackageCollection.error public PackageManager.Error error ; Description The error associated with the package collection. The project packages are in an inconsistent state, likely due to a dependency conflict. This error applies to the collection as a whole, not the packages themselves.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7a4a68354a12
unity_docs
editor
What is `Search.Dispatcher.CallDelayed` in Unity? Explain its purpose and usage.
Dispatcher.CallDelayed Declaration public static Unity.Android.Gradle.Manifest.Action CallDelayed ( EditorApplication.CallbackFunction callback , double seconds ); Parameters Parameter Description callback Callback to be executed later in the main thread. seconds Number of seconds to wait until the mai...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d763be5c74bc
unity_docs
editor
What is `EditorUserBuildSettings.development` in Unity? Explain its purpose and usage.
EditorUserBuildSettings.development public static bool development ; Description Enables a development build. You can also set this property in the Unity Editor using the Developement Build setting on the Build Profiles window.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_20054a650a0b
unity_docs
physics
In Unity's 'Image', what is 'Image versusVisualElement.style.backgroundImage' and how does it work?
You can use both the Image element and the VisualElement.style.backgroundImage property to add visual content to your UI. The choice between the two depends on the specific usage and requirements of your application. The Image element is typically used to display an image within a specific area of a UI, such as an imag...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_67e3f5749edc
unity_docs
rendering
What is `SpriteRenderer.tileMode` in Unity? Explain its purpose and usage.
SpriteRenderer.tileMode public SpriteTileMode tileMode ; Description The current tile mode of the Sprite Renderer. SpriteRenderer.tileMode affects the tiling behaviour when SpriteRenderer.drawMode is set to SpriteDrawMode.Tiled .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_aa952759edee
unity_docs
editor
What is `Device.SystemInfo.renderingThreadingMode` in Unity? Explain its purpose and usage.
SystemInfo.renderingThreadingMode public static Rendering.RenderingThreadingMode renderingThreadingMode ; Description This has the same functionality as SystemInfo.renderingThreadingMode 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_68e095203601_doc_2
github
scripting
What does `SmoothTo` do in this Unity script? Explain its purpose and signature.
Smooths from source to goal, provided lerptime and a deltaTime.Current value"goal" value which will be lerped toSmoothing/lerp amount. Smoothing of 0 means no smoothing, and max value means no change at all.Delta time. Usually would be set to Time.deltaTimeSmoothed value Signature: ```csharp public static Vector3 Smoo...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_man_6806a5a8619c
unity_docs
rendering
Explain 'CommandBuffer fundamentals in the Built-In Render Pipeline' in Unity.
A CommandBuffer holds a list of rendering commands (such as setting the render target, or drawing a given mesh). You can instruct Unity to schedule and execute those commands at various points in the Built-in Render Pipeline , which allows you to customize and extend Unity’s rendering functionality. You can execute Com...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_b5345fe5bb21
github
scripting
Write a Unity C# script called Log Entry
```csharp using System; using System.Collections.Generic; using System.Text; using UnityEngine; namespace UniRx.Diagnostics { public struct LogEntry { // requires public string LoggerName { get; private set; } public LogType LogType { get; private set; } public string Message {...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_b2b451cd732a
unity_docs
math
What is `Experimental.GraphView.ContentDragger.panSpeed` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. ContentDragger.panSpeed public Vector2 panSpeed ; Description When elements are dragged near the edges of the Graph, panning occurs. This controls the speed for said panning.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_70e322566926
unity_docs
animation
What is `AnimationUtility.GetEditorCurve` in Unity? Explain its purpose and usage.
AnimationUtility.GetEditorCurve Obsolete This overload is deprecated. Use the one with EditorCurveBinding instead. Declaration public static AnimationCurve GetEditorCurve ( AnimationClip clip , string relativePath , Type type , string propertyName ); Declaration public static AnimationCurve GetEditor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e7e21cb2b171
unity_docs
scripting
What is `ParticleSystem.CustomDataModule.enabled` in Unity? Explain its purpose and usage.
ParticleSystem.CustomDataModule.enabled public bool enabled ; Description Specifies whether the CustomDataModule is enabled or disabled. Additional resources: ParticleSystem.customData . ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e62e3f67d9af
unity_docs
scripting
What is `UIElements.MouseLeaveEvent` in Unity? Explain its purpose and usage.
MouseLeaveEvent class in UnityEngine.UIElements / Inherits from: UIElements.MouseEventBase_1 / Implemented in: UnityEngine.UIElementsModule Description Event sent when the mouse pointer exits an element and all its descendent elements. The event trickles down but does not bubble up. Constructors Construc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dfd0e919c1f7
unity_docs
rendering
Show me a Unity C# example demonstrating `ShaderKeywordFilter.SelectOrRemoveAttribute`.
Description Either include or remove the specified shader keywords in the build, depending on the data field underneath. Unity does the following in all multi_compile keyword sets: Includes only keywordNames if the data field under SelectOrRemove matches the value of condition . Removes keywordNames if the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4607b8dd58ee
unity_docs
scripting
What is `ObjectChangeKind.ChangeChildrenOrder` in Unity? Explain its purpose and usage.
ObjectChangeKind.ChangeChildrenOrder Description A change of this type indicates that a child has been reordered in the hierarchy under the same parent. This happens when Undo.RegisterChildrenOrderUndo is called or when reordering a child in the hierarchy under the same parent.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3e59308e5bc6
unity_docs
scripting
Give me an overview of the `StrippingLevel` class in Unity.
StrippingLevel enumeration Description Managed code stripping level. Properties Property Description Disabled Deprecated. See ManagedStrippingLevel. StripAssemblies Deprecated. See ManagedStrippingLevel. StripByteCode Deprecated. See ManagedStrippingLevel. UseMicroMSCorlib Deprecated. See ManagedStrippingLev...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1781932a87a5
unity_docs
rendering
What is `RenderTexture.dimension` in Unity? Explain its purpose and usage.
RenderTexture.dimension public Rendering.TextureDimension dimension ; Description Dimensionality (type) of the render texture. By default render textures are "2D" type, but it is also possible to have Cubemap or 3D render textures by changing dimension before they are created. Cubemap render textures are mo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_829b2aaf8d65
unity_docs
editor
What is `SettingsService.OpenUserPreferences` in Unity? Explain its purpose and usage.
SettingsService.OpenUserPreferences Declaration public static EditorWindow OpenUserPreferences (string settingsPath ); Parameters Parameter Description settingsPath Settings path of the item to select (for example, 'Preferences/Keys' or 'Preferences/2D'). Returns EditorWindow Returns an instance to the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8645c0708c9d
unity_docs
scripting
What are the parameters of `Windows.WebCam.PhotoCapture.TakePhotoAsync` in Unity?
Description Asynchronously captures a photo from the web camera and saves it to disk. This method can either be used in two ways. You can use this method to capture a photo from the web camera directly into CPU memory. You can then apply the image data to a texture for use in Unity or pass the image data to an externa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8067b56b41aa
unity_docs
physics
What is `Experimental.GraphView.SearchWindowContext.screenMousePosition` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. SearchWindowContext.screenMousePosition public Vector2 screenMousePosition ; Description The initial mouse event position that triggered opening the window, in the coordinate space of the screen.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1b6728656dd0
unity_docs
rendering
Give me an overview of the `FontTextureCase` class in Unity.
FontTextureCase enumeration Description Texture case constants for TrueTypeFontImporter. Properties Property Description Dynamic Render characters into font texture at runtime as needed. Unicode Import a set of Unicode characters common for latin scripts. ASCII Import basic ASCII character set. ASCIIUpperCas...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a70630cf111c
unity_docs
rendering
What is `Rendering.CommandBuffer.IncrementUpdateCount` in Unity? Explain its purpose and usage.
CommandBuffer.IncrementUpdateCount Declaration public void IncrementUpdateCount ( Rendering.RenderTargetIdentifier dest ); Parameters Parameter Description dest Increments the updateCount for this Texture. Description Increments the updateCount property of a Texture. This is useful if the execution of a ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f4ff981fbdcf
unity_docs
rendering
What is `MaterialPropertyBlock.SetInteger` in Unity? Explain its purpose and usage.
MaterialPropertyBlock.SetInteger Declaration public void SetInteger (int nameID , int value ); Declaration public void SetInteger (string name , int value ); Parameters Parameter Description name The name of the property. nameID The name ID of the property retrieved by Shader.PropertyToID . value ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_5de23dab802a_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Responsible for starting and stopping profiling. Will summarize performance to theconsole at the end. Profiling options are set in the Tilt Brush.cfg file (App.UserConfig). Signature: ```csharp public class ProfilingManager ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_81e3e2ddd980
unity_docs
rendering
What is `Experimental.Rendering.GraphicsStateCollection.EndTrace` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsStateCollection.EndTrace Declaration public void EndTrace (); Description Stop tracing shader variants and graphics states encountered at runtime. ```csharp using UnityEngine; using UnityEngine.Experimental.Rendering...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_3fbba1a45eb7_doc_0
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Automatically registers the Rokid module and initializes the runtime context when running on a Rokid device.This script should be attached to a GameObject in the scene to ensure early initialization. Signature: ```csharp public class AutoRegisterModule : MonoBehaviour ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_debfa35c1532
unity_docs
scripting
What is `ParticleSystem.NoiseModule.damping` in Unity? Explain its purpose and usage.
ParticleSystem.NoiseModule.damping public bool damping ; Description Higher frequency noise reduces the strength by a proportional amount, if enabled. ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoBehaviour { private ParticleSy...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_18bd8fc80623
unity_docs
physics
What is `ArticulationReducedSpace.ctor` in Unity? Explain its purpose and usage.
ArticulationReducedSpace Constructor Declaration public ArticulationReducedSpace (float a ); Declaration public ArticulationReducedSpace (float a , float b ); Declaration public ArticulationReducedSpace (float a , float b , float c ); Parameters Parameter Description a Coordinate of the first de...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_465502c90c92
unity_docs
math
Show me a Unity C# example demonstrating `TestTools.Coverage.GetStatsForAllCoveredMethods`.
Coverage.GetStatsForAllCoveredMethods Declaration public static CoveredMethodStats[] GetStatsForAllCoveredMethods (); Returns CoveredMethodStats[] Array of coverage summaries. Description Returns the coverage summary for all methods that have been called since either the Unity process was started or Covera...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c8aacacc0114
unity_docs
rendering
What is `Shader.renderQueue` in Unity? Explain its purpose and usage.
Shader.renderQueue public int renderQueue ; Description Render queue of this shader. (Read Only) Since different Render Pipelines require different render passes a shader's render queue depends on the active Render Pipeline. Note: When Unity runs in batch mode, it does not load Scriptable Render Pipelines (SR...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_558acd7ca8d9
unity_docs
physics
What is `ApplicationTitleDescriptor.title` in Unity? Explain its purpose and usage.
ApplicationTitleDescriptor.title public string title ; Description Setting this field will set the complete editor title without using any of the other fields of ApplicationTitleDescriptor . ```csharp using UnityEditor; using UnityEngine; public class WindowTitleExample { private static void CustomTitleBar(A...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7aa917f7bf38
unity_docs
editor
What are the parameters of `Android.AndroidProjectFiles.SetGradleSettingsFile` in Unity?
Description Sets a new settings.gradle file. To use this method, you must also declare your new file in AndroidProjectFilesModifier.Setup using the AndroidProjectFilesModifierContext.AdditionalOutputs.AddGradleSettingsFile method. ```csharp using System.IO; using Unity.Android.Gradle; using UnityEditor.Android;public c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_49b4da34a7fb
github
scripting
Write a Unity C# XR/VR script for AR Plane Detection
```csharp using System.Collections.Generic; using UnityEngine; using UnityEngine.XR.ARFoundation; [RequireComponent(typeof(ARPlaneManager))] public class ARPlaneDetection : MonoBehaviour { [SerializeField] private bool showPlaneTrackableLog = true; private ARPlaneManager planeManager; private void Aw...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_man_9a0906d737dd
unity_docs
rendering
Explain '3D texture preview reference' in Unity.
There are three different 3D texture preview modes available: Volume Slice SDF Refer to Texture Import Settings window reference for information about other settings in the Texture Import Settings window. ## Volume In Volume preview mode, Unity displays the 3D texture as a translucent cube. Select and drag the cube t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d62617e4ab0f
unity_docs
rendering
Explain 'Create and configure a halo light effect' in Unity.
Note: This workflow is compatible only with the Built-in Render Pipeline . For similar functionality in other render pipelines, see Lens flares and halos . Add a Halo component to a GameObject with a Light component . Then set its size and color properties to give the desired glowing effect. Note: A Light can also disp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f76ef66fbd5e
unity_docs
animation
In Unity's 'Extracting animation clips', what is 'Importing animations using multiple model files' and how does it work?
Another way to import animations is to follow a naming scheme that Unity allows for the animation files. You can create separate model files and name them with the convention modelName@animationName.fbx . For example, for a model called goober , you could import separate idle, walk, jump and walljump animations using f...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_61eccc4b54de
unity_docs
scripting
What is `Unity.Properties.PropertyPathPart` in Unity? Explain its purpose and usage.
PropertyPathPart struct in Unity.Properties / Implemented in: UnityEngine.PropertiesModule Description A PropertyPathPart represents a single element of the path. PropertyPathPartKind.Name -> ".{name}" PropertyPathPartKind.Index -> "[{index}]" PropertyPathPartKind.Key -> "[{key}]" Properties Pro...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d41d8f9c9a0a
unity_docs
math
What is `Vector3.magnitude` in Unity? Explain its purpose and usage.
Vector3.magnitude public float magnitude ; Description Returns the length of this vector (Read Only). The length of the vector is square root of (x*x+y*y+z*z) . If you only need to compare magnitudes of some vectors, you can compare squared magnitudes of them using sqrMagnitude (computing squared magnitudes ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_74620687e873
unity_docs
scripting
What are the parameters of `RenderingLayerMask.NameToRenderingLayer` in Unity?
Returns int Returns -1 if not found. Description Given a rendering layer name, returns the rendering layer index as defined in the Tags and Layers manager . ```csharp using UnityEngine; using UnityEngine.Rendering;public class Example : MonoBehaviour { void Start() { // Prints the name of the rendering ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_080bd333e89e
github
scripting
Write a Unity C# XR/VR script for Rig
```csharp using System; using System.Reflection; using UnityEngine; using UnityEngine.XR; namespace VrBlocks { public class Rig : MonoBehaviour { public GameObject Headset { get; private set; } [SerializeField] private GameObject fadePrefab; [SerializeField] private G...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_49001f93a289
unity_docs
rendering
What is `Rendering.GraphicsSettings.videoShadersIncludeMode` in Unity? Explain its purpose and usage.
GraphicsSettings.videoShadersIncludeMode public static Rendering.VideoShadersIncludeMode videoShadersIncludeMode ; Description If and when to include video shaders in the build. The VideoPlayer , and other internal mechanisms in the Video module, use video shaders to perform tasks such as colorspace conversi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_7db5c655104e
unity_docs
rendering
Explain 'Change or detect the active render pipeline' in Unity.
To render content, Unity can either use the Built-in Render Pipeline or a render pipeline based on the Scriptable Render Pipeline (SRP), which includes the Universal Render Pipeline (URP) and the High Definition Render Pipeline (HDRP). To specify which Scriptable Render Pipeline Unity uses, you use Render Pipeline Asse...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_944864acd3e8
unity_docs
editor
What are the parameters of `EditorGUILayout.BeginToggleGroup` in Unity?
Returns bool The enabled state selected by the user. Description Begin a vertical group with a toggle to enable or disable all the controls within at once. Additional resources: EndToggleGroup . Align position/rotation/scale of the selected GameObjects. ```csharp // Simple script that lets you align GameObjects // posi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6ee731b4d305
unity_docs
scripting
What is `Rendering.PIX.IsAttached` in Unity? Explain its purpose and usage.
PIX.IsAttached Declaration public static bool IsAttached (); Description Returns true if running via PIX and in a development build. ```csharp using UnityEngine; using UnityEngine.Rendering;public class PixControl : MonoBehaviour { public int frameCaptureCount = 1; int frameCount = 0; bool capturing = false; ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_821896b88729
unity_docs
editor
What are the parameters of `iOS.Xcode.PBXProject.GetTargetProductFileRef` in Unity?
Returns string The file reference of the artifact created by building target. Description Returns the file reference of the artifact created by building target. ```csharp using UnityEngine; using UnityEditor; using System.IO; using UnityEditor.Callbacks; using UnityEditor.iOS.Xcode;public class Sample_GetTargetProductF...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_9d09b2fb0580
unity_docs
scripting
Explain 'Publishing Asset Store packages' in Unity.
You can publish packages to the Asset Store to share and monetize assets, tools, and extensions. You can publish packages in the asset package (.unitypackage files) format, or apply to publish in the Unity Package Manager (UPM) beta program. Topic Description Set up an Asset Store publisher profile Create a Unity ID an...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_32912d3b8417
unity_docs
scripting
Explain 'Button' in Unity.
Use the Button element to create clickable buttons in a UI. For example, when a user clicks or taps on a Button element, it triggers an action or event, such as opening a new window, submitting a form, or playing a sound effect. ## Create a Button You can create a Button with UI Builder, UXML, or C#. The following C#...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7e8c34658c1a
unity_docs
xr
What is `XR.XRDisplaySubsystem.TryGetCompositorGPUTimeLastFrame` in Unity? Explain its purpose and usage.
XRDisplaySubsystem.TryGetCompositorGPUTimeLastFrame Declaration public bool TryGetCompositorGPUTimeLastFrame (out float gpuTimeLastFrameCompositor ); Parameters Parameter Description gpuTimeLastFrameCompositor Outputs the time spent by the GPU for the compositor during the last frame. Returns bool Return...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dd8ef27ecae5
unity_docs
scripting
What is `Playables.PlayableOutputExtensions.GetNotificationReceivers` in Unity? Explain its purpose and usage.
PlayableOutputExtensions.GetNotificationReceivers Declaration public static INotificationReceiver[] GetNotificationReceivers (U output ); Parameters Parameter Description output The output holding the receivers. Returns INotificationReceiver[] Returns the list of registered receivers. Description Ret...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6a9971b383d8
unity_docs
rendering
What is `LineRenderer.numCapVertices` in Unity? Explain its purpose and usage.
LineRenderer.numCapVertices public int numCapVertices ; Description Set this to a value greater than 0, to get rounded corners on each end of the line. The default is 0. The value controls how many vertices are added to each end, where a higher value will give a smoother result. ```csharp using UnityEngine; u...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_63139c3acf8d
unity_docs
animation
What is `Animations.ScaleConstraint.locked` in Unity? Explain its purpose and usage.
ScaleConstraint.locked public bool locked ; Description Locks the offset and scale at rest. In Edit mode, unlocks the constraint to update its offsets. In Play mode, the constraint is always locked.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_eb0391029412
unity_docs
physics
What is `Canvas.pixelPerfect` in Unity? Explain its purpose and usage.
Canvas.pixelPerfect public bool pixelPerfect ; Description Forces pixel alignment for elements in the canvas. It only applies when Canvas.renderMode is set to Screen Space. Enabling pixelPerfect can make elements appear sharper and prevent blurriness. However, if many elements are scaled or rotated, or use su...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a13280fc5774
unity_docs
editor
Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.GetHeadersBuildPhaseByTarget`.
tHeadersBuildPhaseByTarget Declaration public string GetHeadersBuildPhaseByTarget (string targetGuid ); Parameters Parameter Description targetGuid The GUID of the target, such as one returned by TargetGuidByName . Returns string Returns the GUID of the existing phase or null if it does not exist. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8a5baa5335e1
unity_docs
rendering
What is `GL.TexCoord2` in Unity? Explain its purpose and usage.
GL.TexCoord2 Declaration public static void TexCoord2 (float x , float y ); Description Sets current texture coordinate (x,y) for all texture units. In OpenGL this matches glMultiTexCoord for all texture units or glTexCoord when no multi-texturing is available. On other graphics APIs the same functionalit...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9a14b3135f27
unity_docs
animation
What is `Animations.GameObjectRecorder.ResetRecording` in Unity? Explain its purpose and usage.
GameObjectRecorder.ResetRecording Declaration public void ResetRecording (); Description Reset the recording. Clears all the previous bindings and recordings. After it is called, isRecording returns false.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0ce0a447922c
unity_docs
editor
What is `VersionControl.Provider.preCheckoutCallback` in Unity? Explain its purpose and usage.
Provider.preCheckoutCallback public static VersionControl.Provider.PreCheckoutCallback preCheckoutCallback ; Description User-supplied callback to be called before Version Control check out operation. See PreCheckoutCallback for more information. Additional resources: Provider.Checkout , AssetDatabase.Mak...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_7b493db96165
unity_docs
scripting
Explain 'Support for runtime UI' in Unity.
You can use UI Toolkit to create UI for the runtime. You can use the UI Toolkit’s event system with Unity’s different input systems. Topic Description Get started with runtime UI Get started with runtime UI by a simple example. Configure runtime UI Learn how to create a panel and a UI Document component to render UI at...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_bccd1d09c25c
unity_docs
rendering
In Unity's 'Single-pass stereo rendering for Android', what is 'Modify your shaders' and how does it work?
If you want to use the unity_StereoEyeIndex built-in shader variable to know which eye the GPU is rendering to, you must declare UNITY_VERTEX_OUTPUT_STEREO in any shader stage output structs that you have. For example: ``` struct v2f { float2 uv : TEXCOOR0; float4 vertex : SV_POSITION; UNITY_VERTEX_OUTPUT_STEREO }; ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_07306cdf266a
unity_docs
physics
Explain 'Use Rigidbody sleeping to improve physics performance' in Unity.
Reduce CPU load and improve physics performance by enabling Rigidbody sleeping for stationary objects. Rigidbody sleeping can drastically reduce CPU load, especially in scenes with many physical objects that are often stationary or frequently come to rest. When a Rigidbody component moves at a slower speed than the Sle...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_41d5f4f0346b
unity_docs
rendering
In Unity's 'Call JavaScript functions from Unity C# scripts', what is 'Numeric types' and how does it work?
You can pass simple numeric types to JavaScript in function parameters without converting them. For example, this function in JavaScript: lang-js AddNumbers: function (x, y) { return x + y; }, accepts the integer values from C# without conversions: ``` int result = AddNumbers(5, 7); ``` You can pass other data types ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_71826f39c9ae
unity_docs
rendering
Explain 'Introduction to PSO tracing and warming' in Unity.
Understand what PSO tracing and warming is, and the project requirements to use the GraphicsStateCollection API. Important : GraphicsStateCollection is an experimental API and might be changed or removed in the future. When Unity uses a shader variant for the first time in your built application, the scene might stutte...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a954f0de8d7d
unity_docs
scripting
What is `WindZone.windPulseMagnitude` in Unity? Explain its purpose and usage.
WindZone.windPulseMagnitude public float windPulseMagnitude ; Description Defines how much the wind changes over time. ```csharp // Creates a wind zone with the effect of a helicopter passing by // Place this into an empty GameObject and move it over a tree using UnityEngine;public class ExampleScript : MonoBe...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c3faf163ccb2
unity_docs
scripting
What is `GUISkin` in Unity? Explain its purpose and usage.
GUISkin class in UnityEngine / Inherits from: ScriptableObject / Implemented in: UnityEngine.IMGUIModule Description Defines how GUI looks and behaves. GUISkin contains GUI settings and a collection of GUIStyle objects that together specify GUI skin. Active GUI skin is get and set through GUI.skin . Prop...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_606c56f6103c
unity_docs
editor
Explain 'Autodetect plug-ins for QNX' in Unity.
Unity automatically detects plug-ins for QNX. When you import plug-ins, Unity creates metadata files for each of those plug-ins. For example,.so for shared object or shared libraries and.a for archive files in QNX. These metadata files contain the plug-in information, such as the target architecture and platform. The U...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d499abf3721c
unity_docs
editor
What is `PlayerSettings.WSA.SetCapability` in Unity? Explain its purpose and usage.
PlayerSettings.WSA.SetCapability Declaration public static void SetCapability ( PlayerSettings.WSACapability capability , bool value ); Parameters Parameter Description capability UWP Capability type to change. value True to include the Capability in the UWP build or false to remove it. Description I...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_16e8b372d6ee
unity_docs
scripting
What is `Experimental.GraphView.ResizableElement.ctor` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. ResizableElement Constructor Declaration public ResizableElement (); Declaration public ResizableElement (string uiFile ); Parameters Parameter Description uiFile An optional UXML file path. Description Constructor ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dd7efcf86a2f
unity_docs
rendering
Give me an overview of the `UIVertex` class in Unity.
UIVertex struct in UnityEngine / Implemented in: UnityEngine.TextRenderingModule Description Vertex class used by a Canvas for managing vertices. Static Properties Property Description simpleVert Simple UIVertex with sensible settings for use in the UI system. Properties Property Description color Vert...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_04afe34be2c7
unity_docs
performance
Give me an overview of the `ScriptCallOptimizationLevel` class in Unity.
ScriptCallOptimizationLevel enumeration Description Script call optimization level. Properties Property Description SlowAndSafe Default setting. FastButNoExceptions Script method call overhead decreased at the expense of limited compatibility.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_084611d0d464
unity_docs
editor
What is `AssetDatabase.MoveAssetToTrash` in Unity? Explain its purpose and usage.
AssetDatabase.MoveAssetToTrash Declaration public static bool MoveAssetToTrash (string path ); Parameters Parameter Description path Project relative path of the asset or folder to be deleted. Returns bool Returns true if the asset has been successfully removed, false if it doesn't exist or couldn't be r...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_dec3aeb815b9
unity_docs
scripting
In Unity's 'Preserving code using annotations', what is 'Annotate roots using a Link XML file' and how does it work?
You can include a .xml file named link.xml in your project to preserve a list of specific assemblies or parts of assemblies. The link.xml file must be present in the Assets folder or a subdirectory of the Assets folder in your project and must include the <linker> tag in the file. The Unity linker treats any assembly, ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_55b986a406a3
unity_docs
scripting
What is `UIElements.BaseListView.reorderableUssClassName` in Unity? Explain its purpose and usage.
BaseListView.reorderableUssClassName public static string reorderableUssClassName ; Description The USS class name for reorderable animated ListView elements. Unity adds this USS class to every instance of the ListView element when reorderMode is set to Animated . Any styling applied to this class affects...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d724a50aa5ed
unity_docs
scripting
What is `ParticleCollisionEvent` in Unity? Explain its purpose and usage.
ParticleCollisionEvent struct in UnityEngine / Implemented in: UnityEngine.ParticleSystemModule Description Information about a particle collision. Properties Property Description colliderComponent The Collider or Collider2D for the GameObject struck by the particles. intersection Intersection point of the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_959c54182cf8
unity_docs
rendering
What is `ReflectionProbe.realtimeTexture` in Unity? Explain its purpose and usage.
ReflectionProbe.realtimeTexture public RenderTexture realtimeTexture ; Description Reference to the real-time texture of the reflection probe's surroundings. Use this to assign a RenderTexture to use for real-time reflection.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d39dfc464df0
unity_docs
scripting
What is `AI.NavMeshAgent.stoppingDistance` in Unity? Explain its purpose and usage.
NavMeshAgent.stoppingDistance public float stoppingDistance ; Description Stop within this distance from the target position. It is seldom possible to land exactly at the target point, so this property can be used to set an acceptable radius within which the agent should stop. A larger stopping distance will ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a3879d003009
unity_docs
scripting
What is `LazyLoadReference_1.isBroken` in Unity? Explain its purpose and usage.
LazyLoadReference<T0>.isBroken public bool isBroken ; Description Convenience property that checks whether the reference is broken: refers to an object that is either not available or not loadable. This attempts to load the referenced object if the object is not already loaded.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6cde158d14d2
unity_docs
rendering
What is `TextureImporter.alphaTestReferenceValue` in Unity? Explain its purpose and usage.
TextureImporter.alphaTestReferenceValue public float alphaTestReferenceValue ; Description Returns or assigns the alpha test reference value. Returns the reference value (also known as the alpha cutoff) used to compute values needed to preserve alpha mipmap coverage on textures. A pixel is considered to be com...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f18af7a3fc8a
unity_docs
scripting
What is `Unity.Collections.LowLevel.Unsafe.NativeContainerSupportsDeallocateOnJobCompletionAttribute` in Unity? Explain its purpose and usage.
NativeContainerSupportsDeallocateOnJobCompletionAttribute class in Unity.Collections.LowLevel.Unsafe / Implemented in: UnityEngine.CoreModule Description Indicates that a NativeContainer can be automatically deallocated when a job is complete. Apply this attribute to native container types that you want to auto...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_635e999581a3
unity_docs
scripting
Explain 'Building and delivering for Android' in Unity.
Build and publish your Unity application on the Android platform. Configure build settings and learn about the methods to modify Gradle project files as you build your application. Learn about optimizing your application installation size and check the requirements for publishing your Android application on Google Play...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6331c99ffb8a
unity_docs
editor
What is `EditorGUILayout.Vector3IntField` in Unity? Explain its purpose and usage.
EditorGUILayout.Vector3IntField Declaration public static Vector3Int Vector3IntField (string label , Vector3Int value , params GUILayoutOption[] options ); Declaration public static Vector3Int Vector3IntField ( GUIContent label , Vector3Int value , params GUILayoutOption[] options ); Parameters...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_4a1e04725075_doc_9
github
scripting
What does `GetFieldInfoRecursive` do in this Unity script? Explain its purpose and signature.
Get all for with inherited objs Signature: ```csharp private List<FieldInfo> GetFieldInfoRecursive(Type type) ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.