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_8734092147c8
unity_docs
editor
Show me a Unity C# example demonstrating `ShortcutManagement.ShortcutManager.UnregisterTag`.
ShortcutManager.UnregisterTag Declaration public static void UnregisterTag (string tag ); Parameters Parameter Description tag Context string identifier. Description Removes a tag from the custom context list. ```csharp using UnityEditor; using UnityEditor.ShortcutManagement; using UnityEngine;public clas...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f2224bba1db3
unity_docs
scripting
Explain 'Configurations for embedded platforms' in Unity.
Unity supports a wide range of embedded platform configurations through embedded support plans . When starting an embedded support plan, the chosen configuration will be fixed and supported throughout the length of the support plan. Unity only supports deployment to these embedded platforms with a valid embedded suppor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6c2168fa56e2
unity_docs
editor
What is `WindowsBuildAndRunDeployTarget` in Unity? Explain its purpose and usage.
WindowsBuildAndRunDeployTarget enumeration Description Specifies which Windows device to deploy and launch the Windows app on when using Build and Run from the Editor. This setting is ignored when performing a regular Build. Properties Property Description LocalMachine Runs the app on the local Windows PC. De...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_a6ba2117783b
github
scripting
Write a Unity C# MonoBehaviour script called Roll A Ball Composition Root
```csharp using RollABall.Systems; using starikcetin.Joy.Core; using UnityEditor; using UnityEngine; namespace RollABall { public class RollABallCompositionRoot : MonoBehaviour { private Entity[] _entitiesAlreadyInScene; private void Awake() { _entitiesAlreadyInScene = FindObjectsOfType<Entity>(); } ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a674ae7fe67a
unity_docs
editor
Show me a Unity C# example demonstrating `GradientUsageAttribute`.
GradientUsageAttribute class in UnityEngine / Inherits from: PropertyAttribute / Implemented in: UnityEngine.CoreModule Description Controls how the Gradient inspector editor treats the color values. Use this attribute on a Gradient public script variable. You can control the colorSpace and hdr flags. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1f655ee84658
unity_docs
scripting
What is `Handles.DotHandleCap` in Unity? Explain its purpose and usage.
Handles.DotHandleCap Declaration public static void DotHandleCap (int controlID , Vector3 position , Quaternion rotation , float size , EventType eventType ); Parameters Parameter Description controlID The control ID for the handle. position The position of the handle in the space of Handles.mat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5dfa6c8d761d
unity_docs
performance
Show me a Unity C# example demonstrating `Profiling.FrameDataView.GetFrameMetaData`.
iption Retrieves metadata associated with the frame. Use GetFrameMetaData to retrieve the data that the Profiler.EmitFrameMetaData method wrote to the Profiler stream. Use id to identify the metadata from your Project or package. Use tag to distinguish between different data streams. Use index to retrieve...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_490ab8d3a5fc
unity_docs
rendering
What is `Rendering.FilteringSettings` in Unity? Explain its purpose and usage.
FilteringSettings struct in UnityEngine.Rendering / Implemented in: UnityEngine.CoreModule Description A struct that represents filtering settings for ScriptableRenderContext.DrawRenderers. A FilteringSettings struct describes how to filter the set of objects that ScriptableRenderContext.DrawRenderers receive...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_07872ee8af18
unity_docs
physics
Show me a Unity C# example demonstrating `UIElements.VisualElement.generateVisualContent`.
ce a repaint, call VisualElement.MarkDirtyRepaint . Note : When you execute code in a handler to this delegate, don't update any property of the VisualElement , as this can alter the generated content and cause unwanted side effects, such as lagging or missed updates. To avoid this, treat the VisualElement as r...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4d81d80db058
unity_docs
editor
Show me a Unity C# example demonstrating `BuildPlayerOptions`.
BuildPlayerOptions struct in UnityEditor Description Provide various options to control the behavior of BuildPipeline.BuildPlayer . Additional resources: EditorBuildSettings , BuildPlayerWindow.DefaultBuildMethods.GetBuildPlayerOptions ```csharp using UnityEditor; using UnityEngine;public class BuildPlayerOpt...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5d16f9d64944
unity_docs
xr
In Unity's 'Submit a license request from the Hub', what is 'Procedure' and how does it work?
On the first computer, open the Unity Hub. Select Licenses from the side menu. Select Add license . Select Activate with license request . Follow the Download license request step on-screen. This step creates an.alf file on the first computer. Keep Unity Hub open for a later step. Copy the.alf file from the previous st...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8effe745072b
unity_docs
scripting
What is `Rendering.AttachmentDescriptor.ConfigureResolveTarget` in Unity? Explain its purpose and usage.
AttachmentDescriptor.ConfigureResolveTarget Declaration public void ConfigureResolveTarget ( Rendering.RenderTargetIdentifier target ); Parameters Parameter Description tgt The target surface to receive the MSAA-resolved pixels. Description When the renderpass that uses this attachment ends, resolve the M...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6ebe9088b5e1
unity_docs
rendering
What is `SceneManagement.NewSceneSetup` in Unity? Explain its purpose and usage.
NewSceneSetup enumeration Description Used when creating a new Scene in the Editor. Additional resources: EditorSceneManager.NewScene . Properties Property Description EmptyScene No game objects are added to the new Scene. DefaultGameObjects Adds default game objects to the new Scene (a light and camera).
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_44484b4d3342
unity_docs
rendering
Show me a Unity C# example demonstrating `LightTransport.BakeProgressState.SetTotalWorkSteps`.
otal should represent meaningful work units for the operation being performed. Guidelines for Setting Total Steps: - Use consistent units (e.g., number of probes to process). - Estimate conservatively to avoid progress going backwards. - Consider breaking large operations into sub-operations with their own totals. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a326e98027f7
unity_docs
scripting
What is `Unity.Properties.PropertyContainer.GetProperty` in Unity? Explain its purpose and usage.
PropertyContainer.GetProperty Declaration public static Unity.Properties.IProperty GetProperty (TContainer container , ref Unity.Properties.PropertyPath path ); Parameters Parameter Description container The container tree to search. path The property path to resolve. Returns IProperty The IPrope...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1755465a15b7
unity_docs
physics
What is `TargetJoint2D.frequency` in Unity? Explain its purpose and usage.
TargetJoint2D.frequency public float frequency ; Description The frequency at which the target spring oscillates around the target position. The target spring will oscillate with a certain frequency as it attempts to reestablish the desired target position. A dampingRatio ' can be set to cause this oscillation...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_db5057e71021
unity_docs
scripting
What is `PlayerSettings.SetApiCompatibilityLevel` in Unity? Explain its purpose and usage.
PlayerSettings.SetApiCompatibilityLevel Declaration public static void SetApiCompatibilityLevel ( Build.NamedBuildTarget buildTarget , ApiCompatibilityLevel value ); Parameters Parameter Description buildTarget The NamedBuildTarget . Description Sets .NET API compatibility level for specified build t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c27d1f98e385
unity_docs
physics
What is `GUILayout.BeginScrollView` in Unity? Explain its purpose and usage.
GUILayout.BeginScrollView Declaration public static Vector2 BeginScrollView ( Vector2 scrollPosition , params GUILayoutOption[] options ); Declaration public static Vector2 BeginScrollView ( Vector2 scrollPosition , bool alwaysShowHorizontal , bool alwaysShowVertical , params GUILayoutOption[] option...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d60f56a326da
unity_docs
editor
What is `VersionControl.Provider.Revert` in Unity? Explain its purpose and usage.
Provider.Revert Declaration public static VersionControl.Task Revert ( VersionControl.AssetList assets , VersionControl.RevertMode mode ); Declaration public static VersionControl.Task Revert ( VersionControl.Asset asset , VersionControl.RevertMode mode ); Parameters Parameter Description ass...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4f44bdf4dc3f
unity_docs
scripting
What is `Experimental.GraphView.Node.UseDefaultStyling` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Node.UseDefaultStyling Declaration protected void UseDefaultStyling (); Description Applies the default styling of Node. This must be explicitly called by Node subclasses that use their own uxml files.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1876bead021a
unity_docs
scripting
What is `SerializedPropertyNumericType.Double` in Unity? Explain its purpose and usage.
SerializedPropertyNumericType.Double Description Represents a double precision (64 bit) floating point type. Additional resources: SerializedProperty.numericType , SerializedProperty.doubleValue .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bb7d56cf346e
unity_docs
editor
What is `Debug.DrawLine` in Unity? Explain its purpose and usage.
Debug.DrawLine Declaration public static void DrawLine ( Vector3 start , Vector3 end , Color color = Color.white, float duration = 0.0f, bool depthTest = true); Parameters Parameter Description start Point in world space where the line should start. end Point in world space where the line shou...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4975bb213c06
unity_docs
math
What is `HumanPoseHandler.ctor` in Unity? Explain its purpose and usage.
HumanPoseHandler Constructor Declaration public HumanPoseHandler ( Avatar avatar , Transform root ); Declaration public HumanPoseHandler ( Avatar avatar , string[] jointPaths ); Parameters Parameter Description avatar The avatar from which HumanPose will be read or written. The avatar must be a ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_784a8fdadf8b_doc_1
github
scripting
What does `GetNativeConfig` do in this Unity script? Explain its purpose and signature.
Get the native config which can be used across language boundaries.For internal use only. Signature: ```csharp public NativeConfig GetNativeConfig() ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7eda6fafca16
unity_docs
scripting
What is `Undo.RegisterChildrenOrderUndo` in Unity? Explain its purpose and usage.
Undo.RegisterChildrenOrderUndo Declaration public static void RegisterChildrenOrderUndo ( Object objectToUndo , string name ); Parameters Parameter Description objectToUndo The object whose child order should be recorded on the undo stack. name The name of the undo operation. Description Stores a copy ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ca4908f32471
unity_docs
scripting
What is `Profiling.Recorder.FilterToCurrentThread` in Unity? Explain its purpose and usage.
Recorder.FilterToCurrentThread Declaration public void FilterToCurrentThread (); Description Configures the recorder to only collect data from the current thread. By default, a Recorder collects samples from its corresponding Sampler regardless of which thread those samples occur on. Call this function to limit...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_f3dcce6c5979
github
scripting
Write a Unity C# script called Prefab Pool Component
```csharp using Gilzoide.PrefabPool.Internal; using UnityEngine; namespace Gilzoide.PrefabPool { public class PrefabPoolComponent<T> : APrefabPoolComponent<T, PrefabPool<T>> where T : Object { } public class PrefabPoolComponent : PrefabPoolComponent<GameObject> { } } ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_5662791d9f38
unity_docs
scripting
Show me a Unity C# example demonstrating `UIElements.DisplayStyle.Flex`.
DisplayStyle.Flex Description The element displays normally. The following example sets the display style of an element to DisplayStyle.Flex : ``` myElement.style.display = DisplayStyle.Flex; ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_995a7ed3ab2e
unity_docs
rendering
What is `ShaderMessage.ctor` in Unity? Explain its purpose and usage.
ShaderMessage Constructor Declaration public ShaderMessage (string msg , Rendering.ShaderCompilerMessageSeverity sev ); Parameters Parameter Description msg The message to report. sev Indicates the severity of the message. Description Creates a new ShaderMessage with the given message and severity.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_33e6fcff04fb
github
scripting
Write a Unity C# XR/VR script for XR Manager
```csharp using UnityEngine; #if UNITY_XR_MANAGEMENT using UnityEngine.XR.Management; #endif namespace TapLive.Core { /// <summary> /// Manages XR session state and device configuration /// </summary> public class XRManager : MonoBehaviour { public static XRManager Instance { get; private s...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_a999178beb00
unity_docs
rendering
What is `Networking.DownloadHandlerTexture.texture` in Unity? Explain its purpose and usage.
DownloadHandlerTexture.texture public Texture2D texture ; Description Returns the downloaded Texture , or null . (Read Only) This property returns a Texture object. If Unity was unable to decode the downloaded data, or has not yet finished decompressing/decoding the downloaded data, this property will ret...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_61821346b193
unity_docs
rendering
What is `ParticleSystem.SetParticles` in Unity? Explain its purpose and usage.
ParticleSystem.SetParticles Declaration public void SetParticles (out Particle[] particles ); Declaration public void SetParticles (out Particle[] particles , int size ); Declaration public void SetParticles (out Particle[] particles , int size , int offset ); Declaration public void SetParticles ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_49593752f17a
unity_docs
editor
What is `PackageManager.PackageInfo.IsPackageRegistered` in Unity? Explain its purpose and usage.
PackageInfo.IsPackageRegistered Declaration public static bool IsPackageRegistered (string name ); Parameters Parameter Description name The name of the package to look for. Returns bool Returns true if the named package is registered. Description Checks if a specific package is registered with the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9e36a93a04b1
unity_docs
scripting
Give me an overview of the `SystemLanguage` class in Unity.
SystemLanguage enumeration Description The language the user's operating system is running in. Returned by Application.systemLanguage. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the French language if (Application.sy...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_96cf202926a8
unity_docs
physics
Show me a Unity code example for 'Cast a ray from a camera'.
aycast out into the scene . A raycast sends an imaginary “laser beam” along the ray from its origin until it hits a collider in the scene. Information is then returned about the object and the point that was hit in a RaycastHit object. This is a very useful way to locate an object based on its onscreen image. For examp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0acecb70fa64
unity_docs
animation
Give me an overview of the `WrapMode` class in Unity.
WrapMode enumeration Description Determines how time is treated outside of the keyframed range of an AnimationClip or AnimationCurve . The WrapMode that the animation system uses for a specific animation is determined this way: You can set the WrapMode of an AnimationClip in the import settings of the clip. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a02b82a20a7c
unity_docs
scripting
What is `SerializedProperty.doubleValue` in Unity? Explain its purpose and usage.
SerializedProperty.doubleValue public double doubleValue ; Description Value of a float property as a double. Contains a valid value when propertyType is SerializedPropertyType.Float . For accessing float and double properties. When assigning a float to doubleValue , the value is clamped to the range of a ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dde7bf571a8f
unity_docs
editor
Show me a Unity C# example demonstrating `Debug.Break`.
Debug.Break Declaration public static void Break (); Description Pauses the editor. This is useful when you want to check certain values on the inspector and you are not able to pause it manually. ```csharp using UnityEngine;public class ExampleScript : MonoBehaviour { void Start() { Debug.Break(); } } ``...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_67e3425f21c7
unity_docs
editor
Explain 'Tracking garbage collection allocations' in Unity.
Unity has the following tools to keep track of memory allocations: The CPU Usage Profiler module : Provides details of the garbage allocation per frame. The Memory Profiler module : Provides high-level memory usage frame by frame. The Memory Profiler package : A separate Unity package which provides detailed informatio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_137ca4e97fa4
unity_docs
scripting
What is `SearchService.SceneSearch.UnregisterEngine` in Unity? Explain its purpose and usage.
SceneSearch.UnregisterEngine Declaration public static void UnregisterEngine ( SearchService.ISceneSearchEngine engine ); Parameters Parameter Description engine The Scene search engine to unregister. Description Unregisters a dynamically registered engine.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_16afb736f2a8
unity_docs
scripting
What is `Video.VideoPlayer.frameCount` in Unity? Explain its purpose and usage.
VideoPlayer.frameCount public ulong frameCount ; Description Number of frames in the current video content. (Read Only) This value may be adjusted as the frameCount changes during playback. The value is most accurate after the video completes a full playthrough. For URL sources, this will only be set once the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_bfebef5884ad
unity_docs
rendering
In Unity's 'Set shader variables with material property values', what is 'Using material properties to set variables in ShaderLab code' and how does it work?
To set the value of a variable in your ShaderLab code from a material property, put the material property name in square brackets in your ShaderLab code. This example code demonstrates the syntax for using a material property to set the units value of the ShaderLab Offset command. ``` Shader "Examples/MaterialPropertyS...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ebbdd752531c
unity_docs
scripting
What is `UIElements.IBinding` in Unity? Explain its purpose and usage.
IBinding interface in UnityEngine.UIElements Description Base interface for Binding objects. Public Methods Method Description PreUpdate Called at regular intervals to synchronize bound properties to their IBindable counterparts. Called before the Update() method. Release Disconnects the field from i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d28012b7437e
unity_docs
animation
What is `AnimationUtility.GetCurveBindings` in Unity? Explain its purpose and usage.
AnimationUtility.GetCurveBindings Declaration public static EditorCurveBinding[] GetCurveBindings ( AnimationClip clip ); Description Retrieves the float curve bindings in an animation clip. Unity has two types of animation: float curve and object reference curve. A float curve is a classic curve that animate...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c83f6782f698
unity_docs
scripting
What is `Animations.GenericBindingUtility` in Unity? Explain its purpose and usage.
GenericBindingUtility class in UnityEngine.Animations / Implemented in: UnityEngine.AnimationModule Description Animation utility functions for reading and writing values from Unity components. ```csharp using System.Collections.Generic; using UnityEngine; using UnityEngine.Animations; using UnityEditor; using ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_acdd8f979d3b
unity_docs
scripting
What is `IMGUI.Controls.ArcHandle` in Unity? Explain its purpose and usage.
ArcHandle class in UnityEditor.IMGUI.Controls Description A class for a compound handle to edit an angle and a radius in the Scene view. ArcHandle in the Scene View. This class allows you to display control handles for editing the angle and radius of an arc. The arc originates at Vector3.forward multiplied by ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b802fd7cb6a4
unity_docs
scripting
What is `WebGLMemoryGrowthMode` in Unity? Explain its purpose and usage.
WebGLMemoryGrowthMode enumeration Description An enum containing different memory growth modes. This enum is used within the WebGL platform to define how the WASM memory heap grows. Properties Property Description None The WASM memory heap has a fixed size. Linear The WASM memory heap is increased by constant...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_97a84863e0ac
unity_docs
physics
What is `Physics2D.GetContacts` in Unity? Explain its purpose and usage.
Physics2D.GetContacts Declaration public static int GetContacts ( Collider2D collider , Collider2D[] colliders ); Parameters Parameter Description Collider The Collider to retrieve contacts for. Colliders An array of Collider2D used to receive the results. Returns int Returns the number of Collider...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8b22712fef7a
unity_docs
math
What is `Experimental.GraphView.GraphElement.GetGlobalCenter` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphElement.GetGlobalCenter Declaration public Vector3 GetGlobalCenter (); Returns Vector3 Returns the center point. Description Get the GraphElement's center point.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9151c16d3a7d
unity_docs
scripting
What is `Experimental.GraphView.StickyNote.theme` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. StickyNote.theme public Experimental.GraphView.StickyNoteTheme theme ; Description The visual theme of the [StickyNote].
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ac78fc9a759d
unity_docs
rendering
Show me a Unity C# example demonstrating `GUILayout.BeginArea`.
in a GUILayout block of GUI controls in a fixed screen area. By default, any GUI controls made using GUILayout are placed in the top-left corner of the screen. If you want to place a series of automatically laid out controls in an arbitrary area, use GUILayout.BeginArea to define a new area for the automatic layouting...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8449e68cf03e
unity_docs
ui
Explain 'Lock files' in Unity.
A lock file contains the results of the Package Manager’s dependency resolution for a project. Package managers use lock files to provide a deterministic result when resolving a package dependency graph . When the Unity Package Manager computes a successful resolution, it stores that resolution inside the project’s Pac...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f744b6e206ce
unity_docs
scripting
What is `SystemInfo.hdrDisplaySupportFlags` in Unity? Explain its purpose and usage.
SystemInfo.hdrDisplaySupportFlags public static HDRDisplaySupportFlags hdrDisplaySupportFlags ; Description Returns a bitwise combination of HDRDisplaySupportFlags describing the support for HDR displays on the system.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_47c1d93bb95b
unity_docs
rendering
What is `ParticleSystem.ColorOverLifetimeModule` in Unity? Explain its purpose and usage.
ColorOverLifetimeModule struct in UnityEngine / Implemented in: UnityEngine.ParticleSystemModule Description Script interface for the ColorOverLifetimeModule of a Particle System. Additional resources: ParticleSystem , ParticleSystem.colorOverLifetime . Properties Property Description color The gradient ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_7d4e325ae8bd
github
scripting
Write a Unity C# XR/VR script for Action To Button ISX
```csharp using System; using UnityEngine.InputSystem; using UnityEngine.UI; namespace UnityEngine.XR.OpenXR.Samples.ControllerSample { public class ActionToButtonISX : MonoBehaviour { [SerializeField] private InputActionReference m_ActionReference; public InputActionReference actionRef...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_925a8a18ba2f
unity_docs
scripting
Show me a Unity C# example demonstrating `SystemLanguage.Russian`.
SystemLanguage.Russian Description Russian. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the Russian language if (Application.systemLanguage == SystemLanguage.Russian) { //Outputs into console that the system is Russi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_456af463e50e
unity_docs
rendering
Explain 'BatchRendererGroup API in URP' in Unity.
BatchRendererGroup (BRG) is an API for high-performance custom rendering in projects that use a Scriptable Render Pipeline (SRP) and the SRP Batcher . Page Description Introduction to the BatchRendererGroup API Explains how BRG renders to the screen and introduces BRG-specific concepts. Set up your project for the Batc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c55ae12a8671
unity_docs
rendering
What is `Device.SystemInfo.maxTextureSize` in Unity? Explain its purpose and usage.
SystemInfo.maxTextureSize public static int maxTextureSize ; Description This has the same functionality as SystemInfo.maxTextureSize 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.
local_man_916da5aeed8b
unity_docs
rendering
Explain 'Customize how shaders contribute lightmap data in the Built-In Render Pipeline' in Unity.
This page contains information about how to make shaders compatible with Unity’s lightmappers . ## The Meta Pass A Meta Pass is a Shader pass that provides albedo and emission values to the Global Illumination system. These values are separate from those used in real-time rendering, meaning that you can use the Meta ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f211aec24456
unity_docs
scripting
What is `ILogger` in Unity? Explain its purpose and usage.
ILogger interface in UnityEngine Implements interfaces: ILogHandler Description Interface for custom logger implementation. Additional resources: Logger , Debug.unityLogger ILogHandler . Properties Property Description filterLogType To selective enable debug log message. logEnabled To runtime toggle deb...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a0b8030554c7
unity_docs
rendering
Give me an overview of the `SketchUpImportCamera` class in Unity.
SketchUpImportCamera struct in UnityEditor Description Structure to hold camera data extracted from a SketchUp file. When importing a SketchUp file, Unity retrieves the current camera view the file is saved with and the camera view of all the scenes in the SketchUp file. The camera data of each Scene is stored in...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_55917ba4d587
unity_docs
rendering
What is `Rendering.RenderPipeline.EndCameraRendering` in Unity? Explain its purpose and usage.
RenderPipeline.EndCameraRendering Declaration protected static void EndCameraRendering ( Rendering.ScriptableRenderContext context , Camera camera ); Description Calls the RenderPipelineManager.endCameraRendering delegate. In the Universal Render Pipeline (URP) and the High Definition Render Pipeline (HD...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_92357dcefffd
unity_docs
input
In Unity's 'Input Manager', what is 'Virtual axes' and how does it work?
Every Project you create has a number of input axes created by default. These axes enable you to use keyboard, mouse, and joystick input in your Project straight away. To see more about these axes, open the Input Manager window, and click the arrow next to any axis name to expand its properties. Each input axis has the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_50fcc656ed18
unity_docs
rendering
What is `ParticleSystemRenderer.BakeTrailsMesh` in Unity? Explain its purpose and usage.
ParticleSystemRenderer.BakeTrailsMesh Declaration public void BakeTrailsMesh ( Mesh mesh , ParticleSystemBakeMeshOptions options ); Declaration public void BakeTrailsMesh ( Mesh mesh , Camera camera , ParticleSystemBakeMeshOptions options ); Obsolete BakeTrailsMesh with useTransform is deprecat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_914c5aa3f5c7
unity_docs
rendering
What is `LightTransport.RadeonRaysContext.Initialize` in Unity? Explain its purpose and usage.
RadeonRaysContext.Initialize Declaration public bool Initialize (); Returns bool True if the device context was initialized successfully. Description Initialize the device context. RadeonRaysContext implements the IDeviceContext interface. It uses the RadeonRays SDK for intersection testing and the Ope...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ff997320bc16
unity_docs
scripting
What is `MeshCollider.sharedMesh` in Unity? Explain its purpose and usage.
MeshCollider.sharedMesh public Mesh sharedMesh ; Description The mesh object used for collision detection. If prior to setting sharedMesh any of the vertices, indices or triangles of the mesh have been changed then the shapes of the MeshCollider will be rebuilt. ```csharp using UnityEngine;public class Ex...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_05ae7a4dc2bb
unity_docs
rendering
What is `Lightmapping.Bake` in Unity? Explain its purpose and usage.
Lightmapping.Bake Declaration public static bool Bake (); Returns bool Returns true if the bake ran successfully. Will return false and print a warning message if it's not possible to start the bake. Description Starts a synchronous bake job. Returns when the lightmapping has finished. bakeStarted will ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e382ac9dc252
unity_docs
editor
What is `U2D.SpriteEditorExtension` in Unity? Explain its purpose and usage.
SpriteEditorExtension class in UnityEditor.U2D Description Sprite extension methods that are accessible in Editor only. Static Methods Method Description GetSpriteID Gets the Sprite's GUID. SetSpriteID Sets a Sprite's Global Unique Identifier (GUID) for easy identification later.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_891634f70911
unity_docs
math
What is `Gizmos.DrawMesh` in Unity? Explain its purpose and usage.
Gizmos.DrawMesh Declaration public static void DrawMesh ( Mesh mesh , Vector3 position = Vector3.zero, Quaternion rotation = Quaternion.identity, Vector3 scale = Vector3.one); Declaration public static void DrawMesh ( Mesh mesh , int submeshIndex , Vector3 position = Vector3.zero, Quaternio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_392eeed972a2
unity_docs
input
What is `PlayerSettings.allowFullscreenSwitch` in Unity? Explain its purpose and usage.
PlayerSettings.allowFullscreenSwitch public static bool allowFullscreenSwitch ; Description Enable to allow users to switch between full-screen and windowed mode using OS-specific keyboard shortcuts.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_92df0e569290
unity_docs
editor
What is `MouseCursor.SplitResizeLeftRight` in Unity? Explain its purpose and usage.
MouseCursor.SplitResizeLeftRight Description Left-Right resize arrows for window splitters. ```csharp //Create a folder and name it “Editor” if this doesn’t already exist //Put this script in the folder//This script creates a new menu (“Examples”) and a menu item (“Mouse Cursor”). Click on this option. This display...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f7a2e13689dc
unity_docs
scripting
What is `Debug.LogFormat` in Unity? Explain its purpose and usage.
Debug.LogFormat Declaration public static void LogFormat (string format , params object[] args ); Declaration public static void LogFormat ( Object context , string format , params object[] args ); Declaration public static void LogFormat ( LogType logType , LogOption logOptions , Object conte...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_49d7554b6575_doc_3
github
scripting
What does `Poll` do in this Unity script? Explain its purpose and signature.
Enumerator to continuously poll a register address. Signature: ```csharp public IEnumerator Poll() ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_08ef1aedf17d
unity_docs
math
Show me a Unity C# example demonstrating `Vector4.operator_Vector4`.
Vector4.Vector3 Description Converts a Vector4 to a Vector3 . An implicit conversion of a Vector4 to a Vector3 . The Vector4.w is discarded. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { // Create and display a Vector4. Vector4 vector4; vector4 = new Vector4(1.0f, 2.0f...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e9743370d106
unity_docs
math
What is `IMGUI.Controls.PrimitiveBoundsHandle.OnHandleChanged` in Unity? Explain its purpose and usage.
PrimitiveBoundsHandle.OnHandleChanged Declaration protected Bounds OnHandleChanged ( IMGUI.Controls.PrimitiveBoundsHandle.HandleDirection handle , Bounds boundsOnClick , Bounds newBounds ); Parameters Parameter Description handle The handle that was dragged. boundsOnClick The raw Bounds for this...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a8d4d2f11291
unity_docs
scripting
What is `ProjectWindowCallback.EndNameEditAction.Cancelled` in Unity? Explain its purpose and usage.
EndNameEditAction.Cancelled Declaration public void Cancelled (int instanceId , string pathName , string resourceFile ); Parameters Parameter Description instanceId The instance ID of the asset that the user attempted to edit. pathName The path to the asset. resourceFile The resource file string argume...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4b799a427908
unity_docs
xr
What is `XR.XRDevice.refreshRate` in Unity? Explain its purpose and usage.
XRDevice.refreshRate public static float refreshRate ; Description Refresh rate of the display in Hertz. This property may return zero if the current XR SDK does not report refresh rate information.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a7ad963e9827
unity_docs
scripting
What is `UIElements.BaseTreeViewController.Move` in Unity? Explain its purpose and usage.
BaseTreeViewController.Move Declaration public void Move (int id , int newParentId , int childIndex , bool rebuildTree ); Parameters Parameter Description id The ID of the item to move. newParentId The new parent ID. -1 if moved at the root. childIndex The child index to insert at under the parent. -1...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_340e51c70757_doc_3
github
scripting
What does `InitInternal` do in this Unity script? Explain its purpose and signature.
Identical to , but non-virtual, so slightly faster. Signature: ```csharp internal void InitInternal(TFirstArgument firstArgument, TSecondArgument secondArgument, TThirdArgument thirdArgument, TFourthArgument fourthArgument, TFifthArgument fifthArgument, TSixthArgument sixthArgument) ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_6788b3b43dd9
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.R16G16_SInt` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.R16G16_SInt Description A two-component, 32-bit signed integer format that has a 16-bit R component in bytes 0..1, and a 16-bit G component in bytes 2..3.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f86e8f4b7020
unity_docs
performance
What is `Profiling.IProfilerFrameTimeViewSampleSelectionController.sampleNameSearchFilter` in Unity? Explain its purpose and usage.
IProfilerFrameTimeViewSampleSelectionController.sampleNameSearchFilter public string sampleNameSearchFilter ; Description This filters the samples displayed in Hierarchy view to only include the names that include this string. Note: Only the Hierarchy and Raw Hierarchy views currently implement a search filter....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_835644a18d3e
unity_docs
physics
In Unity's 'Configure a Web Canvas size', what is 'Manually change the Web canvas render size' and how does it work?
To manually configure the canvas size, you must first disable the automatic size synchronization. To do so, in the index.html file of the Web template, set the Unity Instance configuration variable to false: matchWebGLToCanvasSize=false . When this is set, Unity leaves the render target size of the canvas as-is but you...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_266e9ff1754f
unity_docs
scripting
What is `AI.NavMesh.GetLinkOwner` in Unity? Explain its purpose and usage.
NavMesh.GetLinkOwner Declaration public static Object GetLinkOwner ( AI.NavMeshLinkInstance handle ); Parameters Parameter Description handle The identifier of the link instance whose owner needs to be retrieved. Returns Object The object that was passed into SetLinkOwner for the specified link instan...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_209813900ed9
unity_docs
audio
Show me a Unity C# example demonstrating `AudioChorusFilter.delay`.
AudioChorusFilter.delay public float delay ; Description Chorus delay in ms. 0.1 to 100.0. Default = 40.0 ms. ```csharp using UnityEngine;[RequireComponent(typeof(AudioSource))] [RequireComponent(typeof(AudioChorusFilter))] public class Example : MonoBehaviour { // Dont use delay on the filter. void Start() ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f2cc7ea3bc3b
unity_docs
scripting
What is `Unity.Properties.IPropertyVisitor.Visit` in Unity? Explain its purpose and usage.
IPropertyVisitor.Visit Declaration public void Visit (Property<TContainer,TValue> property , ref TContainer container ); Parameters Parameter Description property The property being visited. container The container being visited. Description Implement this method to accept visitation for a specific pro...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_fb252a1b9c95
unity_docs
rendering
Explain 'Color spaces in Unity' in Unity.
The Unity Editor allows you to work in traditional gamma color space as well as linear color space. While gamma color space is the historically standard format, linear color space rendering gives more precise results. ## Linear and gamma color space The human eye doesn’t have a linear response to light intensity. We ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_e88aa342a4c2_doc_11
github
scripting
What does `MuteOtherMicrophone` do in this Unity script? Explain its purpose and signature.
Mute other user microphoneMuted state, True is muted otherwise is unmutedChannel nameMute target Signature: ```csharp public void MuteOtherMicrophone(bool _muted, string _channelId, string _userId) ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_13fc966a58e9
unity_docs
physics
What is `SoftJointLimitSpring` in Unity? Explain its purpose and usage.
SoftJointLimitSpring struct in UnityEngine / Implemented in: UnityEngine.PhysicsModule Description The configuration of the spring attached to the joint's limits: linear and angular. Used by CharacterJoint and ConfigurableJoint . Properties Property Description damper The damping of the spring limit. In e...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_42db9603451e
unity_docs
rendering
What is `RenderTexture.descriptor` in Unity? Explain its purpose and usage.
RenderTexture.descriptor public RenderTextureDescriptor descriptor ; Description This struct contains all the information required to create a RenderTexture. It can be copied, cached, and reused to easily create RenderTextures that all share the same properties.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bf356549ad7a
unity_docs
rendering
Show me a Unity C# example demonstrating `Texture2D.GetRawTextureData`.
ion if the texture has been modified or updated. If you use a small type for T such as byte , GetRawTextureData may fail because the NativeArray would exceed the maximum length ( Int32.MaxValue ). To avoid this, use a larger type or struct. GetRawTextureData throws an exception when it fails. Additional resourc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_39446343ae14
unity_docs
math
What is `AndroidJNIHelper` in Unity? Explain its purpose and usage.
AndroidJNIHelper class in UnityEngine / Implemented in: UnityEngine.AndroidJNIModule Description Helper interface for JNI interaction; signature creation and method lookups. Note: Using raw JNI functions requires advanced knowledge of the Android Java Native Interface (JNI). Please take note. Static Propert...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c4bdf9c72ff2
unity_docs
animation
What is `Tilemaps.Tilemap.AddTileAnimationFlags` in Unity? Explain its purpose and usage.
Tilemap.AddTileAnimationFlags Declaration public void AddTileAnimationFlags ( Vector3Int position , Tilemaps.TileAnimationFlags flags ); Parameters Parameter Description position The position of the Tile on the Tilemap . flags TileAnimationFlags to add with bitwise OR ( | ) onto the flags provided by...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ed6f9f3270c8
unity_docs
editor
What is `EditorGUI.LabelField` in Unity? Explain its purpose and usage.
EditorGUI.LabelField Declaration public static void LabelField ( Rect position , string label , GUIStyle style = EditorStyles.label); Declaration public static void LabelField ( Rect position , GUIContent label , GUIStyle style = EditorStyles.label); Declaration public static void LabelField ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bc2e861576c1
unity_docs
physics
Show me a Unity C# example demonstrating `ControllerColliderHit.controller`.
ControllerColliderHit.controller public characterController controller ; Description The controller that hit the collider. ```csharp using UnityEngine;public class Example : MonoBehaviour { //Disable collision detection on CharacterControllers we touch. void OnControllerColliderHit(ControllerColliderHit hit) ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_78212f3e2cc5
unity_docs
scripting
What is `Search.SearchContext.ctor` in Unity? Explain its purpose and usage.
SearchContext Constructor Declaration public SearchContext (IEnumerable<SearchProvider> providers , string searchText , Search.SearchFlags options ); Declaration public SearchContext (IEnumerable<SearchProvider> providers , string searchText ); Declaration public SearchContext (IEnumerable<SearchProvi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ff8b5536fed7
unity_docs
xr
What is `Networking.UnityWebRequest.SerializeSimpleForm` in Unity? Explain its purpose and usage.
UnityWebRequest.SerializeSimpleForm Declaration public static byte[] SerializeSimpleForm (Dictionary<string,string> formFields ); Parameters Parameter Description formFields A dictionary containing the form keys and values to serialize. Returns byte[] A byte array containing the serialized form. The form...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f1254570765f
unity_docs
ui
What is `UIElements.EventBase.currentTarget` in Unity? Explain its purpose and usage.
EventBase.currentTarget public UIElements.IEventHandler currentTarget ; Description The current target of the event. This is the VisualElement, in the propagation path, for which event handlers are currently being executed.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2d31f3aee38f
unity_docs
scripting
What is `UIElements.TextValueField_1.SetValueWithoutNotify` in Unity? Explain its purpose and usage.
TextValueField<T0>.SetValueWithoutNotify Declaration public void SetValueWithoutNotify (TValueType newValue ); Parameters Parameter Description newValue The new value to set. Description Allow to set the value without being notified.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ef0634c44100
unity_docs
scripting
Show me a Unity C# example demonstrating `UIElements.HelpBox`.
HelpBox class in UnityEngine.UIElements / Inherits from: UIElements.VisualElement / Implemented in: UnityEngine.UIElementsModule Description Makes a help box with a message to the user. For more information, refer to UXML element HelpBox . ```csharp public class HelpBoxExample : EditorWindow { [MenuItem...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_129f06fae8b6
unity_docs
editor
Show me a Unity C# example demonstrating `PlayerSettings.Android.minifyRelease`.
PlayerSettings.Android.minifyRelease public static bool minifyRelease ; Description Enable to minify release build. Enable to minify your java code in release configuration. Use proguard configuration file to control the process. Note : Minification can sometimes remove needed code and produce non-working bina...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.