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_11cf3ba92a5e
unity_docs
physics
What is `PhysicsScene2D.OverlapCollider` in Unity? Explain its purpose and usage.
PhysicsScene2D.OverlapCollider Declaration public static int OverlapCollider ( Vector2 position , float angle , Collider2D collider , List<Collider2D> results ); Parameters Parameter Description position The position at which to overlap the Collider. angle The angle of at which to overlap the Collide...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_43c5e4968d24
unity_docs
scripting
Show me a Unity code example for 'How Unity uses serialization'.
mes, you need to prevent Unity from restoring private variables, for example, if you want a reference to be null after reloading from scripts. In this case, use the [NonSerialized] attribute. Unity’s restore behavior also applies to the private backing fields that store the value of automatically implemented properties...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_09acbbd43415
unity_docs
rendering
In Unity's 'Bake lighting', what is 'Bake lightmaps automatically' and how does it work?
To set Unity to bake lightmaps automatically when you open a scene that has no lighting data, follow these steps: Go to Window > Rendering > Lighting . Set Bake on Scene Load to If Missing Lighting Data . If you share your project with someone else, you can use this option to reduce the size of your project by not incl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_26f892070c6b
unity_docs
scripting
Explain 'Set up your Render Texture to display video' in Unity.
Use a Render Texture to display your video content on the surface of multiple GameObjects that share the Render Texture or to apply post-processing effects to the video. To display your video content on a Render Texture: Prepare your Render Texture for video . Set a Render Texture as your Video Player’s target . ## Pr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_37b06663a87e
unity_docs
scripting
What is `Search.QueryToken.ctor` in Unity? Explain its purpose and usage.
QueryToken Constructor Declaration public QueryToken (string text , int position ); Declaration public QueryToken (string text , int position , int length ); Parameters Parameter Description text The value of the token. position The position of the token in the entire query string. length The len...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4df2b304ab59
unity_docs
scripting
Explain 'Create trees and leaves from meshes' in Unity.
You can base a Tree Editor tree or its leaves on meshes that you have imported into Unity. Working with an imported mesh isn’t the same as working with SpeedTree. For more information about importing from SpeedTree, refer to Import trees from SpeedTree . ## Import a mesh To learn about exporting models from a 3D mode...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_44dec3e3c262
unity_docs
physics
What is `Playables.Utility` in Unity? Explain its purpose and usage.
Utility class in UnityEditor.Playables Description Editor utility functions for the Playable graph and its nodes. Static Methods Method Description GetAllGraphs Returns all existing PlayableGraphs. Events Event Description destroyingGraph Event triggered whenever a PlayableGraph is being destroyed. graphC...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_801c66243779
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.R8G8_UNorm` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.R8G8_UNorm Description A two-component, 16-bit unsigned normalized format that has an 8-bit R component stored with sRGB nonlinear encoding in byte 0, and an 8-bit G component stored with sRGB nonlinear encoding in...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_53711489be72
unity_docs
scripting
What is `Playables.PlayableGraph.GetRootPlayable` in Unity? Explain its purpose and usage.
PlayableGraph.GetRootPlayable Declaration public Playables.Playable GetRootPlayable (int index ); Parameters Parameter Description index The index of the root Playable . Description Returns the Playable with no output connections at the given index.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_646d69fc22c2
unity_docs
animation
What is `Animations.AnimatorController.GetStateEffectiveMotion` in Unity? Explain its purpose and usage.
AnimatorController.GetStateEffectiveMotion Declaration public Motion GetStateEffectiveMotion ( Animations.AnimatorState state ); Declaration public Motion GetStateEffectiveMotion ( Animations.AnimatorState state , int layerIndex ); Parameters Parameter Description state The AnimatorState which we...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_873752657075
unity_docs
rendering
What are the parameters of `Rendering.ScriptableRenderContext.BeginScopedRenderPass` in Unity?
Description Schedules the beginning of a new render pass. If you call this a using-statement, Unity calls EndRenderPass automatically when exiting the using-block. Only one render pass can be active at any time. This method does the same as BeginRenderPass , but it will return an IDisposable that can be used in a using...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_23074fca21e2
unity_docs
rendering
Show me a Unity code example for 'Input data into HLSL'.
ender Pipeline (URP), don’t use UnityCG.cginc because it’s from the Built-in Render Pipeline. For information about URP shader library files, refer to Shader methods in URP and Upgrade custom shaders for URP compatibility For a list of prebuilt structures, refer to Built-in shader variables reference . ## Example The...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_ff0dc6fc94ff
unity_docs
rendering
Explain 'Introduction to changing resolution scale' in Unity.
To reduce the amount of work for the GPU and speed up rendering, you can change the resolution of the image Unity renders. For example, you can render at a lower resolution when the frame rate of the application decreases. When you change the resolution scale, Unity does the following: Renders at a lower resolution. Us...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c4e91aeede8c
unity_docs
scripting
What is `Experimental.GraphView.GraphViewBlackboardWindow.OnGraphViewChanging` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphViewBlackboardWindow.OnGraphViewChanging Declaration protected void OnGraphViewChanging (); Description Callback invoked when the GraphView is about to change.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_0dbaa10b4d66
github
scripting
Write a Unity C# script called Settings
```csharp using UnityEngine; namespace DebugMenu { public static class Settings { public static readonly ISetting EnableKeySetting = new Setting("DEBUG_MENU_SETTINGS_ENABLE_KEY", "Enable Key", "F3", "The key that enables the debug menu during runtime."); public static string EnableKey ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_9700739e7bed
unity_docs
physics
Explain 'Introduction to collider shapes' in Unity.
Colliders are available in different shape configurations. There are three main shape types for colliders : Primitive colliders are built-in simple shapes, which you can attach to your GameObject and scale to approximately the same size and shape. They are the most computationally efficient shape option, but the least ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_804c566d126a
unity_docs
rendering
What are the parameters of `Rendering.CommandBuffer.SetViewProjectionMatrices` in Unity?
Description Add a command to set the view and projection matrices. This function is equivalent to calling SetViewMatrix and SetProjectionMatrix . It is slightly more efficient when changing both matrices at once. This function is compatible with the Built-in Render Pipeline. It is not compatible with the Universal Rend...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5080928125f3
unity_docs
scripting
Give me an overview of the `Transform` class in Unity.
Transform class in UnityEngine / Inherits from: Component / Implemented in: UnityEngine.CoreModule Description Position, rotation and scale of an object. Every object in a Scene has a Transform. It's used to store and manipulate the position, rotation and scale of the object. Every Transform can have a paren...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_759e8159b408
unity_docs
animation
What is `AnimatedValues.BaseAnimValue_1` in Unity? Explain its purpose and usage.
BaseAnimValue<T0> class in UnityEditor.AnimatedValues Implements interfaces: ISerializationCallbackReceiver Description Abstract base class for Animated Values. Animated Values are an editor only concept for values that have a current value and a target. The value will tween towards the target at a given speed. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_f7eda2138b78
github
scripting
Write a Unity C# script called Operation
```csharp using System; using System.Runtime.CompilerServices; using Solid.Examples; using UnityEngine; using Object = UnityEngine.Object; /*Copyright (c) Created by Oleksii Volovich 2021*/ namespace Solid.Core { public class Operation<TResult> :Operation,INotifyCompletion { public bool destroyContain...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_32810cc9b6ed
unity_docs
scripting
Show me a Unity C# example demonstrating `SerializationUtility.GetManagedReferencesWithMissingTypes`.
Description Returns the list of managed references that could not be deserialized because of a missing type. This method returns the list of Managed References objects that could not be deserialized because their type is missing. This information can be used to help resolve missing type occurrences. Additional resour...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_acd88632b698
unity_docs
performance
What is `PlayerSettings.graphicsJobMode` in Unity? Explain its purpose and usage.
PlayerSettings.graphicsJobMode public static GraphicsJobMode graphicsJobMode ; Description Selects the graphics job mode to use on platforms that support Native , Legacy and Split graphics jobs. (Additional resources: GraphicsJobMode .)
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8346ac29f996
unity_docs
rendering
In Unity's 'Choose a method for optimizing draw calls', what is 'Choose optimization methods' and how does it work?
The supported and recommended methods for optimizing draw calls depend on whether you use the Universal Render Pipeline (URP), the High Definition Render Pipeline (HDRP), or the Built-In Render Pipeline (BIRP). Feature Type Multithreaded Recommendation in URP Recommendation in HDRP Recommendation in the Built-In Render...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_6cac6149da94
unity_docs
performance
Explain 'Collect rendering performance data' in Unity.
Use the Frame Debugger and Profiler to collect performance data about the rendering in your application. Page Description Frame Debugger Resources for using the Frame Debugger to check and debug rendering issues. Collect frame timing data Resources for using the Frame Timing Manager window to capture detailed timing da...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_aae2801d8e97
unity_docs
rendering
What is `Rendering.RayTracingShader.SetTexture` in Unity? Explain its purpose and usage.
RayTracingShader.SetTexture Declaration public void SetTexture (string name , Texture texture ); Declaration public void SetTexture (int nameID , Texture texture ); Parameters Parameter Description nameID The ID of the resource as given by Shader.PropertyToID. name The name of the texture being ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2ebb12f8583a
unity_docs
rendering
Show me a Unity C# example demonstrating `AssetPostprocessor.OnPostprocessTexture`.
ssion format at this point. If you want to change compression format based on filename or other attributes of the texture, use AssetPostprocessor.OnPreprocessTexture . However, if you modify the TextureImporter settings in this way, it has no effect on the texture that Unity is currently importing, but it does apply ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cdeed43dda16
unity_docs
physics
What are the parameters of `Physics2D.OverlapCircle` in Unity?
Returns Collider2D The Collider overlapping the circle. Description Checks if a Collider falls within a circular area. The circle is defined by its centre coordinate in world space and by its radius. The optional layerMask allows the test to check only for objects on specific layers. Although the Z axis is not relevant...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_597afcc55c5a
unity_docs
rendering
What is `GL.MultiTexCoord3` in Unity? Explain its purpose and usage.
GL.MultiTexCoord3 Declaration public static void MultiTexCoord3 (int unit , float x , float y , float z ); Description Sets current texture coordinate (x,y,z) to the actual texture unit . In OpenGL this matches glMultiTexCoord for the given texture unit if multi-texturing is available. On other graphics ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_441b4d2ad396
unity_docs
rendering
In Unity's 'ZTest command in ShaderLab reference', what is 'Parameters' and how does it work?
Parameter Value Function operation Disabled Disable the depth test. Never Draw no geometry, regardless of distance. Less Draw geometry that is in front of existing geometry. Do not draw geometry that is at the same distance as or behind existing geometry. Equal Draw geometry that is at the same distance as existing geo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_577e6d19ad33
unity_docs
audio
Explain 'Search the Unity Asset Store' in Unity.
The Asset Store search provider finds items in the Unity Asset Store . Tip: You can use the Asset Store provider in the general Search window, or in a specialised window. To open a specialized search window for the Asset Store provider, from the main menu, select Window > Search > Asset Store . ## Query syntax Provid...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dda6cebb09bd
unity_docs
scripting
What is `LightTransport.EventID` in Unity? Explain its purpose and usage.
EventID struct in UnityEngine.LightTransport Description Unique identifier for tracking asynchronous operations executing on a device context. The EventID is used to track the completion status of asynchronous operations such as buffer reads and writes. Each EventID represents a unique operation and provides a me...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_75209a60c75f
unity_docs
rendering
What is `Rendering.BuiltinRenderTextureType.GBuffer3` in Unity? Explain its purpose and usage.
BuiltinRenderTextureType.GBuffer3 Description Deferred shading G-buffer #3 (typically emission/lighting). Built-in deferred shaders put ambient & emission into RGB channels of this texture. And then the lights are also added there during lighting pass. But your own custom shaders could be outputting anything there ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2bf7c8a4e456
unity_docs
rendering
What is `Gizmos` in Unity? Explain its purpose and usage.
Gizmos class in UnityEngine / Implemented in: UnityEngine.CoreModule Description Gizmos are used to give visual debugging or setup aids in the Scene view. All gizmo drawing has to be done in either MonoBehaviour.OnDrawGizmos or MonoBehaviour.OnDrawGizmosSelected functions of the script. MonoBehaviour.OnDra...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8116a4b83573
unity_docs
rendering
Explain 'Trace and manage PSO data collections' in Unity.
Trace a new PSO data collection and manage existing collections. Important : GraphicsStateCollection is an experimental API and might be changed or removed in the future. PSO tracing means recording which pipeline state objects (PSO) your app uses, and the associated data to be able to prewarm PSOs. Modern graphics API...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_11fb68cc0e5b
unity_docs
scripting
What is `SceneTemplate.ISceneTemplatePipeline.BeforeTemplateInstantiation` in Unity? Explain its purpose and usage.
ISceneTemplatePipeline.BeforeTemplateInstantiation Declaration public void BeforeTemplateInstantiation ( SceneTemplate.SceneTemplateAsset sceneTemplateAsset , bool isAdditive , string sceneName ); Parameters Parameter Description sceneTemplateAsset The Scene template Asset to instantiate. isAdditive Whe...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_3ddc52286f86
github
scripting
Write a Unity C# ScriptableObject for Item Color Palette Entry
```csharp using FactoryMustScale.Runtime.Visualization; using UnityEngine; namespace FactoryMustScale.Authoring { [System.Serializable] public struct ItemColorPaletteEntry { public string name; public int ItemId; public Color32 Color; } [CreateAssetMenu( fileName = ...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_4d67ded5e8d7
unity_docs
audio
Give me an overview of the `AudioSpatialExperience` class in Unity.
AudioSpatialExperience enumeration Description Defines the types of audio spatialization experience available in player and audio settings. The AudioSpatializationExperience setting is only supported on visionOS. Additional resources: AudioSettings.audioSpatializationExperience Properties Property Descript...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5290bcd61d04
unity_docs
physics
What is `ParticleSystemForceField.directionZ` in Unity? Explain its purpose and usage.
ParticleSystemForceField.directionZ public ParticleSystem.MinMaxCurve directionZ ; Description Apply a linear force along the local Z axis to particles within the volume of the Force Field. Additional resources: ParticleSystemForceField .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cb7180020d88
unity_docs
scripting
Give me an overview of the `ActionOnDotNetUnhandledException` class in Unity.
ActionOnDotNetUnhandledException enumeration Description The behavior in case of unhandled .NET exception. Properties Property Description SilentExit Silent exit in case of unhandled .NET exception (no Crash Report generated). Crash Crash in case of unhandled .NET exception (Crash Report will be generated).
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_36b8b9ff13ba_doc_12
github
scripting
What does `PumpMovieLoad` do in this Unity script? Explain its purpose and signature.
Pump movie loading each frame. Returns true when all frames are loaded. Signature: ```csharp public bool PumpMovieLoad() ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
gh_a6697566df42
github
scripting
Write a Unity Editor script for Enable Plugin Step.Open XR
```csharp #if !USE_MLSDK #region using System; using System.Linq; using MagicLeap.SetupTool.Editor.Interfaces; using MagicLeap.SetupTool.Editor.Utilities; using UnityEditor; using UnityEngine; #if (OpenXR||USE_INPUT_SYSTEM_POSE_CONTROL) using UnityEngine.XR.OpenXR; using UnityEngine.XR.OpenXR.Features; #endif #endre...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_75c75979068c
unity_docs
editor
What is `Unity.IO.Archive.ArchiveHandle.Compression` in Unity? Explain its purpose and usage.
ArchiveHandle.Compression public CompressionType Compression ; Description The type of compression the archive uses. Only accessible if the archive loaded successfully. Additional resources: AssetBundles compression . ```csharp using Unity.Content; using Unity.IO.Archive; using UnityEditor; using UnityEn...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b42ae4dbdc7e
unity_docs
rendering
Show me a Unity C# example demonstrating `ComputeShader.DisableKeyword`.
lKeyword struct, cache it, and use that. Note: A LocalKeyword is specific to a single Shader or ComputeShader instance. You cannot use it with other Shader or ComputeShader instances, even if they declare keywords with the same name. The following example creates a LocalKeyword struct with the name EXAMP...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_ea609b25cdb2
unity_docs
rendering
In Unity's 'Document your package', what is 'Documentation format' and how does it work?
Markdown is a lightweight format commonly used in packages. Many repository hosting services (such as GitHub and Bitbucket) support Markdown for README files and documentation sites. You can include a Markdown file in the Documentation~ folder under your package root. Then, when a user clicks the Documentation link in ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8a29977a4c0d
unity_docs
audio
What is `Video.VideoPlayer.audioOutputMode` in Unity? Explain its purpose and usage.
VideoPlayer.audioOutputMode public Video.VideoAudioOutputMode audioOutputMode ; Description Destination for the audio embedded in the video. Note: WebGL only fully supports VideoAudioOutputMode.None and VideoAudioOutputMode.Direct . If you set the output mode to VideoAudioOutputMode.AudioSource , Unity i...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0ff44d9ee743
unity_docs
editor
What is `Build.Player.TypeDB` in Unity? Explain its purpose and usage.
TypeDB class in UnityEditor.Build.Player Description Container for holding information about script type and property data. This class helps ensure the correct fields are serialized out for content builds. Note: this class and its members exist to provide low-level support for the Scriptable Build Pipeline pack...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_01d087bc0ae6
unity_docs
audio
What is `Experimental.Audio.AudioSampleProvider.enableSilencePadding` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. AudioSampleProvider.enableSilencePadding public bool enableSilencePadding ; Description If true, buffers produced by ConsumeSampleFrames will get padded when silence if there are less available than asked for. Otherwise, the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_19773ff6ec0c
unity_docs
scripting
What are the parameters of `GUI.TextField` in Unity?
Returns string The edited string. Description Make a single-line text field where the user can edit a string. ```csharp using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { public string stringToEdit = "Hello World"; void OnGUI() { // Make a text field that modifies...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_68345159d005
unity_docs
ui
Show me a Unity code example for 'Multiple selectors'.
A multiple selector is an combination of multiple simple selectors. It selects any elements that match all the simple selectors. ## Syntax A multiple selector consists of multiple simple selector without anything to separate them: ``` selector1selector2 {...} ``` The USS parser can’t parse a multiple selector if it c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3ad6973856ca
unity_docs
physics
What is `MonoImporter.SetExecutionOrder` in Unity? Explain its purpose and usage.
MonoImporter.SetExecutionOrder Declaration public static void SetExecutionOrder ( MonoScript script , int order ); Parameters Parameter Description script The script to set the execution order for. order The execution order for the given MonoScript . Description Sets the execution order for a MonoScr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6bfdf6530817
unity_docs
rendering
What is `Rendering.ScriptableRenderContext.BeginSubPass` in Unity? Explain its purpose and usage.
ScriptableRenderContext.BeginSubPass Declaration public void BeginSubPass (NativeArray<int> colors , NativeArray<int> inputs , bool isDepthReadOnly , bool isStencilReadOnly ); Declaration public void BeginSubPass (NativeArray<int> colors , NativeArray<int> inputs , bool isDepthStencilReadOnly ); Declar...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_31623a54288a
github
scripting
Write a Unity Editor script for Humanoid Animation List Updater
```csharp using System.Linq; using ClusterVR.CreatorKit.Item.Implements; using UnityEditor; using UnityEngine; namespace Baxter.ClusterScriptExtensions.Editor.ComponentUpdater { public static class HumanoidAnimationListUpdater { public static void Update(ScriptableItemExtension ext) { ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f00d67eb9a7d
unity_docs
rendering
What is `Texture2D.CopyPixels` in Unity? Explain its purpose and usage.
Texture2D.CopyPixels Declaration public void CopyPixels ( Texture src ); Declaration public void CopyPixels ( Texture src , int srcElement , int srcMip , int dstMip ); Declaration public void CopyPixels ( Texture src , int srcElement , int srcMip , int srcX , int srcY , int srcWidth , int srcH...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_339eb2d93a7b_doc_4
github
scripting
What does `SynchronizeJobDataOnValidate` do in this Unity script? Explain its purpose and signature.
Whether job data should be synchronized in the OnValidate message.By default, returns true.Override in subclasses implementing and return falseto avoid automatic job data synchronization during OnValidate. Signature: ```csharp protected virtual bool SynchronizeJobDataOnValidate => true; ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_man_47c341dc44bf
unity_docs
rendering
In Unity's 'Introduction to the Frame Debugger', what is 'Render Pipeline compatibility' and how does it work?
Feature Universal Render Pipeline (URP) High Definition Render Pipeline (HDRP) Custom Scriptable Render Pipeline (SRP) Built-in Render Pipeline Frame Debugger Yes Yes Yes Yes Note: The Frame Debugger updates every frame and you can’t pause it. If the number of render passes or draw calls changes rapidly, the Frame Debu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_3c361c9a1b7b
unity_docs
rendering
In Unity's 'Customize how shaders contribute lightmap data in the Built-In Render Pipeline', what is 'The Meta Pass' and how does it work?
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 Pass to control how a GameObject looks from the point of view of the lighting baking system without affecting its a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_de55a2d154a9
unity_docs
ui
Explain 'Web template build configuration and interaction' in Unity.
Configure and interact with Web builds using Web templates. For information about template variables, JavaScript macros, and conditional directives, refer to Web template variables . ## Build configuration The configuration object contains the build configuration, which consists of code and data URLs, product name, c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a05d125af3df
unity_docs
scripting
In Unity's 'Pooling and reusing objects', what is 'Retrieving objects from the pool' and how does it work?
You call ObjectPool<T>.Get to retrieve an object from the pool. This action also invokes the method you provided as the actionOnGet parameter to the ObjectPool constructor, which gives you the opportunity to prepare and activate the object for use. If you request an object from the pool when the pool is empty, a new ob...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3ac9d92b5cd1
unity_docs
physics
What is `Joint.connectedArticulationBody` in Unity? Explain its purpose and usage.
Joint.connectedArticulationBody public ArticulationBody connectedArticulationBody ; Description A reference to an articulation body this joint connects to. A joint can connect to only one of Joint.connectedBody and Joint.connectedArticulationBody . If both are set, Joint.connectedBody takes precedence.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8d203fe30816
unity_docs
rendering
What is `Matrix4x4.Frustum` in Unity? Explain its purpose and usage.
Matrix4x4.Frustum Declaration public static Matrix4x4 Frustum (float left , float right , float bottom , float top , float zNear , float zFar ); Declaration public static Matrix4x4 Frustum ( FrustumPlanes fp ); Parameters Parameter Description left The X coordinate of the left side of the near...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4118c5607d45
unity_docs
physics
What is `TerrainTools.IOnSceneGUI.raycastHit` in Unity? Explain its purpose and usage.
IOnSceneGUI.raycastHit public RaycastHit raycastHit ; Description Read only. The raycast result for the current mouse position. This is valid when hitValidTerrain is true. Additional resources: IOnSceneGUI.hitValidTerrain and RaycastHit .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_135a97a745f9
unity_docs
scripting
What is `BuildAssetBundlesParameters.outputPath` in Unity? Explain its purpose and usage.
BuildAssetBundlesParameters.outputPath public string outputPath ; Description Output path for the AssetBundles. This can be an absolute path, or a path relative to the current project. This folder is not created automatically and BuildPipeline.BuildAssetBundles fails if it doesn't already exist.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f6bf8814734c
unity_docs
scripting
What is `Unity.Android.Gradle.BaseBlock.RemoveElement` in Unity? Explain its purpose and usage.
BaseBlock.RemoveElement Declaration public Unity.Android.Gradle.BaseElement RemoveElement (uint id ); Parameters Parameter Description id Element ID. Returns BaseElement The removed child element. Description Removes a child element by id. Removes a custom elements from the Elements list. If the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c831fc7f166f
unity_docs
input
What is `EditorGUIUtility` in Unity? Explain its purpose and usage.
EditorGUIUtility class in UnityEditor / Inherits from: GUIUtility Description Miscellaneous helper stuff for EditorGUI . Static Properties Property Description currentViewWidth The width of the GUI area for the current EditorWindow or other view. This Property should only be accessed within an OnGUI call. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c567aa0a0016
unity_docs
scripting
What is `RigidbodyConstraints.FreezePositionY` in Unity? Explain its purpose and usage.
RigidbodyConstraints.FreezePositionY Description Freeze motion along the Y-axis. ```csharp //This example shows how RigidbodyConstraints is used to freeze the position and rotation of a Rigidbody in the y axis at start-up. //It also shows what happens when these constraints are removed, when you press the space key...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7c7fd19071aa
unity_docs
scripting
What is `Playables.PlayState` in Unity? Explain its purpose and usage.
PlayState enumeration Description Status of a Playable . Properties Property Description Paused The Playable has been paused. Its local time will not advance. Playing The Playable is currently Playing.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_66dcac84d483
unity_docs
xr
In Unity's 'Magic Leap XR Plugin', what is 'Compatible with Unity' and how does it work?
These package versions are available in Unity version 6000.0: Documentation location: State Versions available: com.unity.xr.magicleap@7.1 released 7.1.0, 7.1.1, 7.1.2, 7.1.3 com.unity.xr.magicleap@7.0 released 7.0.0
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_09645b4b1a23
github
scripting
Write a Unity C# MonoBehaviour script called Scene02_Customize Character
```csharp using RMC.Mini.Features.SceneSystem; using RMC.Mini.Samples.Configurator.Mini; using RMC.Mini.Samples.Configurator.Mini.Feature; using RMC.Mini.Samples.Configurator.Mini.View; using UnityEngine; namespace RMC.Mini.Samples.Configurator.Standard { /// <summary> /// This is the main entry point to one o...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_f623c2c13b6a
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.RGBA_ASTC6X6_SRGB` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.RGBA_ASTC6X6_SRGB Description A four-component, ASTC compressed format where each 128-bit compressed texel block encodes a 6×6 rectangle of unsigned normalized RGBA texel data with sRGB nonlinear encoding applied t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bd7332cf47f4
unity_docs
scripting
Show me a Unity C# example demonstrating `ExposedReference_1`.
using a context object. This can be used by assets, such as a ScriptableObject or PlayableAsset to create references to Scene objects. The example below shows how a PlayableAsset can use exposed references to create references to a Scene GameObject. This is an example that uses Timeline, so you may want to set ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5eb1f8bb970a
unity_docs
rendering
What is `Unwrapping.GenerateSecondaryUVSet` in Unity? Explain its purpose and usage.
Unwrapping.GenerateSecondaryUVSet Declaration public static bool GenerateSecondaryUVSet ( Mesh src ); Declaration public static bool GenerateSecondaryUVSet ( Mesh src , UnwrapParam settings ); Parameters Parameter Description src The Mesh to update. settings Settings that configure the calculatio...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b9158f643653
unity_docs
physics
What is `Rendering.CullingOptions.ForceEvenIfCameraIsNotActive` in Unity? Explain its purpose and usage.
CullingOptions.ForceEvenIfCameraIsNotActive Description When this flag is set, Unity performs the culling operation even if the Camera is not active. Default value: unset. Additional resources: ScriptableCullingParameters.cullingOptions , ScriptableRenderContext.Cull , CullingResults .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_74cad26cebab
unity_docs
scripting
What is `MPE.ProcessService.IsChannelServiceStarted` in Unity? Explain its purpose and usage.
ProcessService.IsChannelServiceStarted Declaration public static bool IsChannelServiceStarted (); Returns bool True if the ChannelService is started. False otherwise. Description Checks whether the ChannelService is already started.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_22c48f0f93d7_doc_5
github
scripting
What does `IsRegistered` do in this Unity script? Explain its purpose and signature.
Check whether is registered or pending registration in manager. Signature: ```csharp public bool IsRegistered(TDataProvider provider) ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4e3410334880
unity_docs
ui
In Unity's 'Bind without the binding path', what is 'Test the binding' and how does it work?
In Unity, select Window > UIToolkitExamples > Simple Binding Property Example . A custom Editor window appears with a text field. Select a GameObject in your scene . The name of the GameObject appears in your Editor window’s text field. If you change the name of the GameObject in the text field, the name of the GameObj...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c7d617f7d706
unity_docs
scripting
Show me a Unity C# example demonstrating `KeyCode.Return`.
KeyCode.Return Description Return key. The key used to accept a line of text. osMac calls this Return . A PC calls this Enter . There is no KeyCode.Enter . On a PC use Return . Some laptops have no name on the Return or Enter key. ```csharp // KeyCode.Return example. // // Attach this to a GameObject. // T...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_35e1d211dfb4
unity_docs
editor
Show me a Unity code example for 'Build your application for Dedicated Server'.
lation instructions. For information on how to install modules, refer to Add modules . Select Switch Profile to set the new build profile as the active profile. Click Build . Tip : You can further configure the Dedicated Server build in the Player settings . ## Scripting To create a Dedicated Server build using a scr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_25d3417dff1e
unity_docs
scripting
What are the parameters of `Handles.CircleHandleCap` in Unity?
Description Draw a circle handle. Pass this into handle functions. On EventType.Layout event, calculates handle distance to mouse and calls HandleUtility.AddControl accordingly. On EventType.Repaint event, draws the handle shape. Circle Handle Cap in the Scene View. Add the following script to your Assets folder as Cir...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_08f21ada9fd4
unity_docs
math
What is `XR.XRNodeState.TryGetVelocity` in Unity? Explain its purpose and usage.
XRNodeState.TryGetVelocity Declaration public bool TryGetVelocity (out Vector3 velocity ); Returns bool True if the velocity was set in the output parameter. False if the velocity is not available due to limitations of the underlying platform or if the node is not presently tracked. Description Attempt ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_28b42eefe6bf
unity_docs
scripting
In Unity's 'Programming with the Asset Database', what is 'Asset import order and code execution' and how does it work?
The asset import order has some important implications for your code. Scripts are always imported and compiled before all other non-default assets, because they can include custom asset post-processors or scripted importers that are used later to import non-script assets. The [InitializeOnLoad] attribute is a common wa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fd5dd70cee32
unity_docs
scripting
What is `Experimental.GraphView.Scope.RemoveElement` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Scope.RemoveElement Declaration public void RemoveElement ( Experimental.GraphView.GraphElement element ); Parameters Parameter Description element The element to remove. Description Removes an element from the Scope.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_bbd29a9bbe20
unity_docs
editor
In Unity's 'iOS environment setup', what is 'Install dependencies' and how does it work?
Unity distributes dependencies as modules which means you use the Unity Hub to install them. The module you need is iOS Build Support. You can install it either when you install a new Unity Editor version, or add it to an existing Unity Editor install. To install modules: At install time, refer to Downloading and manag...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d292cfd31a9b
unity_docs
scripting
What is `Playables.PlayableExtensions.SetTime` in Unity? Explain its purpose and usage.
PlayableExtensions.SetTime Declaration public static void SetTime (U playable , double value ); Parameters Parameter Description playable The Playable used by this operation. value The current time in seconds. Description Changes the current local time of the Playable . Use this method to override t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4a31ca03be55
unity_docs
physics
Show me a Unity C# example demonstrating `Physics.defaultSolverIterations`.
r solver iteration count may improve their stability (but is slower). This value is usually changed in Edit->Project Settings->Physics inspector instead of from scripts. Note: Changing the defaultSolverIterations does not affect already created Rigidbodies. To change an existing Rigidbody please use Rigidbody.solve...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_25d6734c8fa4
unity_docs
rendering
Show me a Unity C# example demonstrating `TextureMipmapLimitGroups.CreateGroup`.
s. If no other group with the same name exists, Unity creates the new group across all quality levels. By default, the new group mirrors the global texture mipmap limit. If Unity creates the new group successfully, textures previously bound to groupName stop using QualitySettings.globalTextureMipmapLimit as a fallb...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_784ff967616b
unity_docs
networking
In Unity's 'Licensing overview', what is 'Serial-based licensing' and how does it work?
Serial-based licensing is a node-locked licensing solution that manages your access through a serial key that Unity sends you. You activate the key (or return it) by using the Unity Hub or the command line. The activation for a serial-based license is associated with the computer where you activated it. This license ty...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_86bd2864b71b
unity_docs
scripting
What are the parameters of `Assertions.Assert.IsNull` in Unity?
Description Assert the value is null. ```csharp using UnityEngine; using UnityEngine.Assertions;public class AssertionExampleClass : MonoBehaviour { MyClass myClassReference; void Update() { // Make sure the myClassReference reference is never set Assert.IsNull(myClassReference); } }publi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a6ede3470075
unity_docs
rendering
Explain 'Inherit Velocity module reference' in Unity.
Use this module on subemitters. Each particle in the parent system can spawn particles in the subemitter. This module reads the velocity from the parent particle and controls how the speed of the subemitter particles reacts to that velocity over time. ## Properties For some properties in this section, you can use dif...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c19089bca49c
unity_docs
editor
What is `Experimental.Licensing.EntitlementInfo` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. EntitlementInfo class in UnityEditor.Experimental.Licensing Description Data structure for an individual entitlement, the results of a call to LicensingUtility.HasEntitlementsExtended . Properties Property Description Enti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2c7e8c157334
unity_docs
scripting
What is `ModelImporter.importBlendShapeDeformPercent` in Unity? Explain its purpose and usage.
ModelImporter.importBlendShapeDeformPercent public bool importBlendShapeDeformPercent ; Description Import BlendShapes deform percent. Toggles the import of BlendShapes deform percent. If disabled, all values will be set to 0.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3ee7cb7ede2a
unity_docs
scripting
What is `UIElements.ThemeStyleSheet` in Unity? Explain its purpose and usage.
ThemeStyleSheet class in UnityEngine.UIElements / Inherits from: UIElements.StyleSheet / Implemented in: UnityEngine.UIElementsModule Description Represents a style sheet that's assembled from other style sheets. Inherited Members Properties Property Description hideFlags Should the object be hidden, sav...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_42a755ca51c3
unity_docs
scripting
Give me an overview of the `CollisionFlags` class in Unity.
CollisionFlags enumeration Description CollisionFlags is a bitmask returned by CharacterController.Move. It gives you a broad overview of where your character collided with any other objects. ```csharp using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Update() { Chara...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b44203d3db1a
unity_docs
scripting
What are the parameters of `Assertions.Assert.AreApproximatelyEqual` in Unity?
Description Assert the values are approximately equal. An absolute error check is used for approximate equality check (|a-b| < tolerance ). Default tolerance is 0.00001f. Note: Every time you call the method with tolerance specified, a new instance of FloatComparer is created. For performance reasons you might want to ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_877959b28341
unity_docs
rendering
Show me a Unity C# example demonstrating `Rendering.RayTracingShader.Dispatch`.
hader is compatible. Replace <value> with one of the values: native16bit , int64 , int64bufferatomics . #pragma disable_ray_payload_size_checks - disables ray payload size compatibility checks between different ray tracing shader types. Use this carefully, because removing the check can cause corrupt ray payload d...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c6d5824b22e0
unity_docs
editor
What is `EditorGUI.Slider` in Unity? Explain its purpose and usage.
EditorGUI.Slider Declaration public static float Slider ( Rect position , float value , float leftValue , float rightValue ); Declaration public static float Slider ( Rect position , string label , float value , float leftValue , float rightValue ); Declaration public static float Slider ( Rect ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_498d305bf8ff
unity_docs
physics
What is `PhysicsMaterial.bounceCombine` in Unity? Explain its purpose and usage.
PhysicsMaterial.bounceCombine public PhysicsMaterialCombine bounceCombine ; Description Determines how the bounciness is combined. Traditionally bounciness properties are dependent on the combination of the two materials in contact. This is however impractical in a game. Instead you can use the combine mode ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a11553388689
unity_docs
editor
Give me an overview of the `SettingsProviderGroupAttribute` class in Unity.
SettingsProviderGroupAttribute class in UnityEditor Description Attribute used to register multiple SettingsProvider items. Use this attribute to decorate a function that returns an array of SettingsProvider instances. If the function returns null, no SettingsProvider appears in the Settings window. ```csharp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f15d56a39637
unity_docs
math
What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.WriteArrayElementWithStride` in Unity? Explain its purpose and usage.
UnsafeUtility.WriteArrayElementWithStride Declaration public static void WriteArrayElementWithStride (void* destination , int index , int stride , T value ); Parameters Parameter Description destination Memory pointer. index Array index. stride Stride. value Value to write. Description Write array...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_82d8effd2e58
unity_docs
animation
What is `AnimationCurve.CopyFrom` in Unity? Explain its purpose and usage.
AnimationCurve.CopyFrom Declaration public void CopyFrom ( AnimationCurve other ); Parameters Parameter Description other The AnimationCurve object to obtain the values to copy. Description Copies the keys and properties of the specified AnimationCurve object into this instance of the AnimationCurve ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d7fe8aea52c7
unity_docs
math
What is `Mesh.SetTangents` in Unity? Explain its purpose and usage.
Mesh.SetTangents Declaration public void SetTangents (Vector4[] inTangents ); Declaration public void SetTangents (List<Vector4> inTangents ); Declaration public void SetTangents (NativeArray<T> inTangents ); Parameters Parameter Description inTangents Per-vertex tangents. Description Set the ta...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.