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_man_7e90793202b0
unity_docs
rendering
In Unity's 'IL2CPP managed stack traces', what is 'C++ compiler configuration' and how does it work?
You can set the C++ compiler configuration for IL2CPP builds in one of the following ways: Through the Player Settings menu in the Editor. Perform the following steps to change the scripting back end through the Player Settings menu: Go to Edit > Project Settings . Click on the Player Settings button to open the Player...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7b94440641fb
unity_docs
input
What is `UIElements.FieldMouseDragger_1` in Unity? Explain its purpose and usage.
FieldMouseDragger<T0> class in UnityEngine.UIElements / Inherits from: UIElements.BaseFieldMouseDragger / Implemented in: UnityEngine.UIElementsModule Description Provides dragging on a visual element to change a value field. Properties Property Description dragging Is dragging. startValue Start ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_299857d65e96
unity_docs
rendering
Show me a Unity C# example demonstrating `SketchUpImporter`.
SketchUpImporter class in UnityEditor / Inherits from: ModelImporter Description Derives from AssetImporter to handle importing of SketchUp files. From the SketchUpImporter, you can access certain properties that are extracted from the SketchUp file. The following is an example of showing the geo coordinate ex...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0f46b35d14a4
unity_docs
scripting
What is `Unity.Android.Gradle.Manifest.AttributeInteger` in Unity? Explain its purpose and usage.
AttributeInteger class in Unity.Android.Gradle.Manifest / Inherits from: Unity.Android.Gradle.Manifest.BaseAttribute Description An attribute that represents an integer value. Public Methods Method Description Get Gets the value of the integer attribute. Set Sets a new integer value for the attribute. In...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e294ad1eeff4
unity_docs
editor
Explain 'Refreshing the Asset Database' in Unity.
Unity refreshes the Asset Database in the following situations: When the Unity Editor regains focus (if you have enabled Auto-Refresh in the Preferences window) When you select Assets > Refresh from the menu. When you call AssetDatabase.Refresh from code. Some other AssetDatabase APIs trigger a refresh, but only for th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6f40b5d3f870
unity_docs
scripting
What is `Transform.hasChanged` in Unity? Explain its purpose and usage.
Transform.hasChanged public bool hasChanged ; Description Has the transform changed since the last time the flag was set to 'false'? A change to the transform can be anything that can cause its matrix to be recalculated: any adjustment to its position, rotation or scale. Note that operations which can change t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_65764969d18a
unity_docs
rendering
What is `TextureImporterSettings.swizzleB` in Unity? Explain its purpose and usage.
TextureImporterSettings.swizzleB public TextureImporterSwizzle swizzleB ; Description Specifies the source for the texture's blue color channel data. By default, values for the imported texture's blue channel come from the source image's blue channel. To reorder or invert color channels at import time, change...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_aa30fa618b68
unity_docs
scripting
Show me a Unity C# example demonstrating `Video.VideoAspectRatio`.
video to a target area. To do this, the VideoPlayer adjusts or maintains the video's original aspect ratio. If you render a video into a RenderTexture , and the aspect ratio of the RenderTexture doesn't match that of the video being rendered, the VideoPlayer automatically adds black bars around the video. If you ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7c1c9774e4c7
unity_docs
rendering
What is `Rendering.GraphicsTextureDescriptorFlags.RenderTarget` in Unity? Explain its purpose and usage.
GraphicsTextureDescriptorFlags.RenderTarget Description Allows this GraphicsTexture to be set as a render target and be rendered to. Similar to RenderTexture , a graphics texture with the RenderTarget flag can be used to implement image based rendering effects, dynamic shadows, projectors, reflections or surveil...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b73bb43485ab
unity_docs
rendering
What is `Rendering.RayTracingAccelerationStructure.CullInstances` in Unity? Explain its purpose and usage.
RayTracingAccelerationStructure.CullInstances Declaration public Rendering.RayTracingInstanceCullingResults CullInstances (ref Rendering.RayTracingInstanceCullingConfig cullingConfig ); Parameters Parameter Description cullingConfig Parameters for culling and filtering ray tracing instances. Returns Ra...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_281ec36c332b
unity_docs
scripting
Explain 'Package management with the Package Manager window' in Unity.
Use the Package Manager window to manage packages in your project. Topic Description Add and remove UPM packages or feature sets Add and remove packages whose type is UPM. Add and remove feature sets . Add and remove asset packages Add and remove packages whose type is.unitypackage . Disable a built-in package Reduce y...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6c6316869933
unity_docs
scripting
Show me a Unity C# example demonstrating `Rendering.RenderPipelineGlobalSettings`.
onCallbackReceiver Description A ScriptableObject to associate with a RenderPipeline and store project-wide settings for that Pipeline. A single RenderPipelineGlobalSettings instance can be registered to the GraphicsSettings via GraphicsSettings.RegisterRenderPipelineSettings. We recommend to use this Scriptable...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_71b764cade45
unity_docs
scripting
What is `ColorUtility.ToHtmlStringRGB` in Unity? Explain its purpose and usage.
ColorUtility.ToHtmlStringRGB Declaration public static string ToHtmlStringRGB ( Color color ); Parameters Parameter Description color The color to be converted. Returns string Hexadecimal string representing the color. Description Returns the color as a hexadecimal string in the format "RRGGBB". Ad...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_258a4e59d1d9
unity_docs
scripting
What is `Profiling.HierarchyFrameDataView.GetItemChildren` in Unity? Explain its purpose and usage.
HierarchyFrameDataView.GetItemChildren Declaration public void GetItemChildren (int id , List<int> outChildren ); Parameters Parameter Description id Hierarchy item identifier. outChildren List filled with item child identifiers as a result of a method call. Description Retrieves a list of hierarchy ite...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_099f14aff4c9
unity_docs
scripting
In Unity's 'Install Unity Accelerator with Docker Hub', what is 'Subsequent execution' and how does it work?
You can also set any environment variables for the cache server. Use unity-accelerator --all-help and look for options that indicate Default: $SOME_VARIABLE . There are two that the container sets if you don’t: Variable Description UNITY_ACCELERATOR_PERSIST Container default is /agent. This is the directory where unity...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0dc798e9ae8e
unity_docs
ui
In Unity's 'Generate 2D visual content', what is 'Use the Mesh API' and how does it work?
To use the Mesh API, allocate a mesh with the MeshGenerationContext.Allocate method and then fill the vertices and indices. The MeshGenerationContext.Allocate method allocates and draws the specified number of vertices and indices required to express geometry for drawing the content of a visual element. For details on ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9796616e4ddb
unity_docs
scripting
What is `Video.VideoClip` in Unity? Explain its purpose and usage.
VideoClip class in UnityEngine.Video / Inherits from: Object / Implemented in: UnityEngine.VideoModule Description A container for video data. A VideoClip stores the video portion of a movie file using a codec that is appropriate for the target platform. VideoClips are referenced by VideoPlayer s to play vid...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_254645968647
unity_docs
scripting
Show me a Unity C# example demonstrating `KeyCode.A`.
KeyCode.A Description 'a' key. ```csharp //Attach this to a GameObject //This script tells when the A arrow key is pressed down and when it is released using UnityEngine;public class Example : MonoBehaviour { void Update() { //Detect when the A arrow key is pressed down if (Input.GetKeyDown(KeyCode.A)) Debug.L...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f5f3de0d7990
unity_docs
animation
What is `Animator.GetIKHintPositionWeight` in Unity? Explain its purpose and usage.
Animator.GetIKHintPositionWeight Declaration public float GetIKHintPositionWeight ( AvatarIKHint hint ); Parameters Parameter Description hint The AvatarIKHint that is queried. Returns float Return translative weight. Description Gets the translative weight of an IK Hint (0 = at the original animat...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d96829d908d3
unity_docs
physics
Show me a Unity code example for 'UnityYAML'.
Plain scalars split onto multiple lines must be indented more than the previous line. See below this table for an example. You can use UTF–8 characters in scalars, but UnityYAML only decodes them when they are part of a double quoted scalar. Sequences UnityYAML supports mapping, block styles, and block sequences that c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2c54ce111003
unity_docs
rendering
In Unity's 'Make shader behavior conditional on keywords', what is 'Branch if a keyword exists' and how does it work?
For each keyword in a set, Unity automatically adds a _KEYWORD_DECLARED keyword. For example, if you declare a QUALITY_LOW keyword, Unity adds a QUALITY_LOW_KEYWORD_DECLARED keyword. You can use this to check if a keyword exists, regardless of whether it’s enabled or disabled. For example: ``` #pragma multi_compile QUA...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f121ef39655a
unity_docs
scripting
What is `Color.Index_operator` in Unity? Explain its purpose and usage.
Color.this[int] public float this[int] ; Description Access the r, g, b,a components using [0], [1], [2], [3] respectively. ```csharp using UnityEngine;public class Example : MonoBehaviour { Color color = Color.white; void Start() { //The same as color.g = 5 color[1] = 5; } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b1fa3bf7b682
unity_docs
rendering
What is `Camera.GateFitParameters` in Unity? Explain its purpose and usage.
GateFitParameters struct in UnityEngine / Implemented in: UnityEngine.CoreModule Description Wrapper for gate fit parameters Properties Property Description aspect Aspect ratio of the resolution gate. mode GateFitMode to use. See GateFitMode. Constructors Constructor Description Camera.GateFitParameter...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_091b9bd8dac4
unity_docs
scripting
What is `UIElements.BaseTreeViewController.HasChildrenByIndex` in Unity? Explain its purpose and usage.
BaseTreeViewController.HasChildrenByIndex Declaration public bool HasChildrenByIndex (int index ); Parameters Parameter Description index The item index. Returns bool Whether the item with the specified ID has one or more child. Description Return whether the item with the specified index has one or...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ff23ddf1c0f9
unity_docs
editor
What is `EditorGUILayout.ToggleGroupScope.ctor` in Unity? Explain its purpose and usage.
EditorGUILayout.ToggleGroupScope Constructor Declaration public EditorGUILayout.ToggleGroupScope (string label , bool toggle ); Declaration public EditorGUILayout.ToggleGroupScope ( GUIContent label , bool toggle ); Parameters Parameter Description label Label to show above the toggled controls. tog...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_130dcdb1fab6
unity_docs
rendering
In Unity's 'TabView', what is 'Examples' and how does it work?
The following UXML example creates a TabView with Tabs: ``` <UXML xmlns="UnityEngine.UIElements" xmlns:uie="UnityEditor.UIElements"> <TabView> <Tab label="UXML Tab A"> <Label text="UXML tab: This is some content for the first Tab." /> </Tab> <Tab label="UXML Tab B"> <Label text="UXML tab: This is some content for...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1f1ae81b0de9
unity_docs
physics
In Unity's 'Configuring garbage collection', what is 'Disabling incremental garbage collection' and how does it work?
To disable incremental garbage collection: Open the Project Settings window ( Edit > Project Settings ) Navigate to the Configuration settings ( Player > Other Settings > Configuration ) Disable the Use Incremental GC checkbox. Incremental garbage collection is useful in most Unity projects, especially if the project h...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_62b30708084d
unity_docs
editor
What is `CustomEditor` in Unity? Explain its purpose and usage.
CustomEditor class in UnityEditor Description Tells an Editor class which run-time type it's an editor for. When you make a custom editor for a component, put this attribute on the editor class. To set which Editor classes are active for the current Render Pipeline Asset, add a SupportedOnRenderPipelineAttri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e3b177c1d93e
unity_docs
rendering
What is `ParticleSystem.ShapeModule.arcSpeedMultiplier` in Unity? Explain its purpose and usage.
ParticleSystem.ShapeModule.arcSpeedMultiplier public float arcSpeedMultiplier ; Description A multiplier of the arc speed of the particle emission shape. Changing this property is more efficient than accessing the entire curve, if you only want to change the overall speed multiplier. Additional resources: Par...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_ca744d55e1f8
unity_docs
math
Explain 'Profiling low-level native plug-ins' in Unity.
You can use the low-level native plug-in profiler API to extend the Profiler and collect performance data of native plug-in code, or prepare profiling data to send to third-party profiling tools such as Razor (PS4), PIX (Xbox, Windows), Chrome Tracing, ETW, ITT, Vtune, or Telemetry. The low-level native plug-in Profile...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c1e510cf6fd3
unity_docs
input
Explain 'Unity Library Manifest' in Unity.
A Unity Library Manifest is the main Unity manifest and contains information about the Unity Player and its activity . Unity uses a default Unity Library Manifest during the build process to generate the final Android App Manifest for the application. For more information on how to modify this file, refer to Modify Gra...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5b0b33c4f4e1
unity_docs
rendering
What is `TextureImporter.sRGBTexture` in Unity? Explain its purpose and usage.
TextureImporter.sRGBTexture public bool sRGBTexture ; Description Whether this texture stores data in sRGB (also called gamma) color space. This setting is only relevant when your project uses Linear color space . It determines whether the GPU converts data from sRGB color space to linear color space when it ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_41cdd0bef92f
unity_docs
editor
Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.SetBaseReferenceForConfig`.
ng baseReference ); Parameters Parameter Description configGuid The GUID of the build configuration as returned by BuildConfigByName . baseReference The GUID of the configuration file to be used as the base reference. Description Sets the base configuration reference for the specified build configuration. ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cc533b044a83
unity_docs
editor
What is `AssetDatabase.GetDefaultImporter` in Unity? Explain its purpose and usage.
AssetDatabase.GetDefaultImporter Declaration public static Type GetDefaultImporter (string path ); Parameters Parameter Description path Project relative path for the asset. Returns Type Importer type. Description Returns the Default Importer associated with the asset located at the supplied path. Wh...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2f7a74781a3e
unity_docs
rendering
Show me a Unity code example for 'TabView'.
You can group multiple Tab elements within a TabView element to create a tab-based navigation system. ## Create a TabView You can create a TabView with UI Builder, UXML, or C#. To create a TabView with C#, create a new instance of the TabView object and then add Tab elements to it. For example: ``` var tabView = new ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_56d39643ab34
unity_docs
scripting
What is `Unity.Properties.IListPropertyVisitor.Visit` in Unity? Explain its purpose and usage.
IListPropertyVisitor.Visit Declaration public void Visit (Property<TContainer,TList> property , ref TContainer container , ref TList list ); Parameters Parameter Description property The property being visited. container The container being visited. list The list value. Description Implement this me...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3e30b678f568
unity_docs
ui
What is `UIElements.VisualElement.parent` in Unity? Explain its purpose and usage.
VisualElement.parent public UIElements.VisualElement parent ; Description The parent of this VisualElement. Unlike the Hierarchy.parent property, this property reflects for logical hierarchy. For example, if you add an element to a ScrollView , the logical parent of this element is the ScrollView itsel...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2caf2a2c1388
unity_docs
physics
What is `WheelJoint2D` in Unity? Explain its purpose and usage.
WheelJoint2D class in UnityEngine / Inherits from: AnchoredJoint2D / Implemented in: UnityEngine.Physics2DModule Description The wheel joint allows the simulation of wheels by providing a constraining suspension motion with an optional motor. Additional resources: JointSuspension2D . Properties Property D...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b53f3b9a6bef
unity_docs
animation
What is `LODGroup.animateCrossFading` in Unity? Explain its purpose and usage.
LODGroup.animateCrossFading public bool animateCrossFading ; Description Specify if the cross-fading should be animated by time. The animation duration is specified globally as crossFadeAnimationDuration .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e9b8f62f7931
unity_docs
xr
What is `Networking.UnityWebRequest.Head` in Unity? Explain its purpose and usage.
UnityWebRequest.Head Declaration public static Networking.UnityWebRequest Head (string uri ); Declaration public static Networking.UnityWebRequest Head (Uri uri ); Parameters Parameter Description uri The URI to which to send a HTTP HEAD request. Returns UnityWebRequest A UnityWebRequest confi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_467f46c6be9b
unity_docs
scripting
What is `Build.Il2CppCodeGeneration` in Unity? Explain its purpose and usage.
Il2CppCodeGeneration enumeration Description Options to control code generation for IL2CPP compiler. Properties Property Description OptimizeSpeed IL2CPP compiler will generate code optimized for runtime performance. OptimizeSize IL2CPP compiler will generate code optimized for build size and build time.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2badd3b1a80d
unity_docs
networking
What is `Unity.Android.Gradle.Manifest.ColorMode` in Unity? Explain its purpose and usage.
ColorMode enumeration Description Mirrors the ColorMode enum. For more information about the attribute, see Android's documentation: ColorMode attribute Properties Property Description Null Attribute is not set and will not appear in the element. Hdr Mirrors android:colorMode="hdr". WideColorGamut Mirro...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1458768860ca
unity_docs
scripting
What is `Search.IQueryEngineFilter.RemoveMetaInfo` in Unity? Explain its purpose and usage.
IQueryEngineFilter.RemoveMetaInfo Declaration public Search.IQueryEngineFilter RemoveMetaInfo (string key ); Parameters Parameter Description key The key of the information. Returns IQueryEngineFilter The current filter. Description Remove information on the filter. You can use this function to re...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3e7e7b21a01a
unity_docs
scripting
Give me an overview of the `AvatarMaskBodyPart` class in Unity.
AvatarMaskBodyPart enumeration Description Avatar body part. Properties Property Description Root The Root. Body The Body. Head The Head. LeftLeg The Left Leg. RightLeg The Right Leg. LeftArm The Left Arm. RightArm The Right Arm. LeftFingers Left Fingers. RightFingers Right Fingers. LeftFootIK Left Foo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b21cd92bec4e
unity_docs
animation
What is `Animations.PositionConstraint.SetSources` in Unity? Explain its purpose and usage.
PositionConstraint.SetSources Declaration public void SetSources (List<ConstraintSource> sources ); Parameters Parameter Description sources The list of sources to set. Description Sets the list of sources on the component. Throws ArgumentNullException, if the list of sources is null.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8b405b4e0a63
unity_docs
physics
Show me a Unity code example for 'Reference other files from UXML'.
In a UXML file, you can use the <Template> and the <Style> elements to reference other UXML or USS files. The two elements both accept either an src attribute or a path attribute. ## Thesrcattribute This is the recommended way to reference other files. Use the following syntax for the src attribute: ``` src="<path-to...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_73e3174baff5
unity_docs
scripting
Give me an overview of the `WindZone` class in Unity.
WindZone class in UnityEngine / Inherits from: Component / Implemented in: UnityEngine.WindModule Description Wind Zones add realism to the trees you create by making them wave their branches and leaves as if blown by the wind. Note: This only works with trees created by the tree creator or imported from Sp...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_bb1773b6b650
github
scripting
Write a Unity C# script called Resources Handle
```csharp using UnityEngine; namespace SmartReference.Runtime { public class ResourcesHandle : ISmartReferenceHandle { public ResourceRequest request; public Object loadedObject; } } ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_d7a7eb5eb2f5
unity_docs
physics
What is `ParticleSystemColliderQueryMode` in Unity? Explain its purpose and usage.
ParticleSystemColliderQueryMode enumeration Description Whether collider information is available when using the [[ParticleSystem::GetTriggerParticles]] method. Properties Property Description Disabled [[ParticleSystem::GetTriggerParticles]] does not return any information about which colliders each particle is...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e9cf173f5df2
unity_docs
scripting
In Unity's 'Verify the Unity Accelerator version', what is 'Verify on a server' and how does it work?
From the Accelerator server you can use the Unity Accelerator application to report the version with unity-accelerator --version , or unity-accelerator.exe --version on Windows On Windows, the Unity Accelerator application is usually installed under C:\Program Files\Unity\accelerator , and on macOS it is usually instal...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b5c336794d37
unity_docs
rendering
In Unity's 'Texture Sheet Animation module reference', what is 'Grid mode properties' and how does it work?
Property Function Mode popup Select Grid mode. Tiles The number of tiles the Texture is divided into in the X (horizontal) and Y (vertical) directions. Animation The Animation mode can be set to Whole Sheet or Single Row (that is, each row of the sheet represents a separate Animation sequence). Time Mode Choose how the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_9defc44be62c
unity_docs
rendering
Explain 'Web performance considerations' in Unity.
In general, Web performance is close to native apps on the GPU, because the WebGL graphics API uses your GPU for hardware-accelerated rendering. The only exception is the slight overhead for translating WebGL API calls and shaders to your OS graphics API (typically DirectX on Windows, OpenGL on Mac, and Linux). On the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8bfb98ababd7
unity_docs
animation
What is `Tilemaps.Tilemap.animationFrameRate` in Unity? Explain its purpose and usage.
Tilemap.animationFrameRate public float animationFrameRate ; Description The frame rate for all Tile animations in the Tilemap. The actual frame rate for each animation is dependent on this and the animation speed of the Tile animation.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2b447fac304d
unity_docs
editor
What is `PackageManager.DependencyInfo` in Unity? Explain its purpose and usage.
DependencyInfo struct in UnityEditor.PackageManager Description Structure describing dependencies to other packages in PackageInfo. Properties Property Description name The name of the dependency. version The version of the dependency.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e59333e629b0
unity_docs
scripting
What is `Search.StringView.Trim` in Unity? Explain its purpose and usage.
StringView.Trim Declaration public stringView Trim (params char[] chrs ); Parameters Parameter Description chrs A set of characters to remove. Returns stringView A new StringView . Description Returns a new StringView in which all leading and trailing occurrences of a set of specified characters f...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_261fca79a561
unity_docs
scripting
What is `Transform.localEulerAngles` in Unity? Explain its purpose and usage.
Transform.localEulerAngles public Vector3 localEulerAngles ; Description The rotation as Euler angles in degrees relative to the parent transform's rotation. Euler angles can represent a three dimensional rotation by performing three separate rotations around individual axes. In Unity these rotations are per...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2efee2cf8bdd
unity_docs
scripting
What is `ParticleSystem.NoiseModule.separateAxes` in Unity? Explain its purpose and usage.
ParticleSystem.NoiseModule.separateAxes public bool separateAxes ; Description Control the noise separately for each axis. ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoBehaviour { private ParticleSystem ps; public float hSlid...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b416d00c7135
unity_docs
scripting
What is `Unity.Hierarchy.HierarchyNodeTypeHandlerBase.GetNodeTypeName` in Unity? Explain its purpose and usage.
HierarchyNodeTypeHandlerBase.GetNodeTypeName Declaration public string GetNodeTypeName (); Returns string The type name of the hierarchy node. Description Get the type name of this hierarchy node type handler.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8ed3d26c6d5d
unity_docs
scripting
What is `Unity.Hierarchy.Hierarchy.GetDepth` in Unity? Explain its purpose and usage.
Hierarchy.GetDepth Declaration public int GetDepth (ref Unity.Hierarchy.HierarchyNode node ); Parameters Parameter Description node The hierarchy node. Returns int The depth of the hierarchy node. A value of -1 indicates the root node. A value of 0 indicates direct child nodes of the root node. A value...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_74da590f4e13
unity_docs
scripting
In Unity's 'Integrating Unity into Android applications', what is 'Limitations' and how does it work?
Unity doesn’t control the runtime lifecycle, so Unity as a Library might not work for all possible use cases. Known limitations include: Unity as a Library only supports full-screen rendering. However, if you are a Unity Industry customer, the limitations and features might differ. You can’t load or integrate more than...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_41b399c2148e
unity_docs
scripting
What is `SystemInfo.maxConstantBufferSize` in Unity? Explain its purpose and usage.
SystemInfo.maxConstantBufferSize public static int maxConstantBufferSize ; Description The maximum size of a constant buffer binding (Read Only). The largest permitted constant buffer size, which is also the largest quantity of data accessible via a single constant buffer binding.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f4c000cf9603
unity_docs
rendering
In Unity's 'Create a shader variant collection', what is 'Create a shader variant collection asset' and how does it work?
You can create a shader variant collection asset in the following ways: In the Create Asset menu, choose Shader > Shader Variant Collection . The Unity Editor can track which shader variants your application uses when it runs, and automatically create a shader variant collection asset that contains them. For more infor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ec18d682f118
unity_docs
physics
What is `PolygonCollider2D.useDelaunayMesh` in Unity? Explain its purpose and usage.
PolygonCollider2D.useDelaunayMesh public bool useDelaunayMesh ; Description When the value is true, the Collider uses an additional Delaunay triangulation step to produce the Collider mesh. When the value is false, this additional step does not occur. Using Delaunay triangulation can reduce the number of shapes...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_47d13216c96f
unity_docs
scripting
What is `Search.SearchUtils.FormatCount` in Unity? Explain its purpose and usage.
SearchUtils.FormatCount Declaration public static string FormatCount (ulong count ); Parameters Parameter Description count Number to be formatted. Returns string Formatted string. Description Formats a number into a shorten number string. This function is used by the search property table to format...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9d544cd8fc98
unity_docs
rendering
What is `LightProbesQuery.CalculateInterpolatedLightAndOcclusionProbe` in Unity? Explain its purpose and usage.
LightProbesQuery.CalculateInterpolatedLightAndOcclusionProbe Declaration public void CalculateInterpolatedLightAndOcclusionProbe ( Vector3 position , ref int tetrahedronIndex , out Rendering.SphericalHarmonicsL2 lightProbe , out Vector4 occlusionProbe ); Parameters Parameter Description position The ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_633937909d3a
unity_docs
editor
Show me a Unity C# example demonstrating `SceneManagement.EditorSceneManager.SaveCurrentModifiedScenesIfUserWantsTo`.
on't Save__ indicate that the user is okay to proceed with the current operation (closing the Scenes). Therefore both these choices return true to indicate that the operation can continue. If the user selects Cancel , it means the user wants to cancel the operation that caused this dialog to appear (i.e. the user does...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_eb13151a458c
unity_docs
scripting
What is `RemoveAssetOptions` in Unity? Explain its purpose and usage.
RemoveAssetOptions enumeration Description Options for removing assets Properties Property Description MoveAssetToTrash The asset should be moved to trash. DeleteAssets Delete the asset without moving it to the trash.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_93362340c1ed
unity_docs
math
What is `Tilemaps.ITilemap.GetSprite` in Unity? Explain its purpose and usage.
ITilemap.GetSprite Declaration public Sprite GetSprite ( Vector3Int position ); Parameters Parameter Description position Position of the Tile on the Tilemap . Returns Sprite Sprite at the XYZ coordinate. Description Gets the Sprite used in a Tile given the XYZ coordinates of a cell in the Tilema...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_255a39cd0d21
unity_docs
scripting
What is `VideoImporterTargetSettings.aspectRatio` in Unity? Explain its purpose and usage.
VideoImporterTargetSettings.aspectRatio public VideoEncodeAspectRatio aspectRatio ; Description How the aspect ratio discrepancies, if any, will be handled if the chosen import resolution has a different ratio than the source.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_3bf99e993716
unity_docs
scripting
Explain 'Branch group reference' in Unity.
A branch group generates branches and fronds. The available properties change based on your choice between branches and fronds, and on whether the branch group serves as the trunk. Note that if you edit the branch group using its control points, the procedural properties are disabled. ## Using curves You can use curv...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_781012f5f564
unity_docs
xr
What is `Caching.ready` in Unity? Explain its purpose and usage.
Caching.ready public static bool ready ; Description Returns true if Caching system is ready for use. ```csharp using System.Collections; using UnityEngine; using UnityEngine.Networking;public class Example : MonoBehaviour { IEnumerator IsCachingReadyExample(string uri) { //Using this conditional says we wan...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_d5f9d370f872_doc_6
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Controls which orientation the forward direction of continuous movement is relative to. Signature: ```csharp public MoveForwardSource moveForwardSource ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_26cbd721a4ed
unity_docs
scripting
Show me a Unity code example for 'Direct reference asset management'.
ds these objects into memory at runtime, it resolves the GUID and fileID pair to an InstanceID , which it then uses to track the live object. The InstanceID is unique to the current Unity Editor session or runtime instance. If you open a scene file (.unity ) or prefab file (.prefab ) in a text editor, you can check the...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_24f6088dde13
github
scripting
Write a Unity C# script called Gaussian Splat HDRP Pass
```csharp // SPDX-License-Identifier: MIT #if GS_ENABLE_HDRP using UnityEngine; using UnityEngine.Rendering.HighDefinition; using UnityEngine.Rendering; using UnityEngine.Experimental.Rendering; namespace GaussianSplatting.Runtime { // Note: I have no idea what is the proper usage of CustomPass. // Code below...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_man_1e50b9c2594e
unity_docs
scripting
In Unity's 'Grid Layout Group', what is 'Properties' and how does it work?
Property: Function: Padding The padding inside the edges of the layout group. Cell Size The size to use for each layout element in the group. Spacing The spacing between the layout elements. Start Corner The corner where the first element is located. Start Axis Which primary axis to place elements along. Horizontal wil...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_cc51eb025e8f
unity_docs
physics
In Unity's 'Profiler window reference', what is 'Profiler controls' and how does it work?
The Profiler controls are in the toolbar at the top of the Profiler window. Use these to start or stop recording profiler data, and to navigate through profiled frames. Property Description Target Selection dropdown Use the Target Selection dropdown to select a platform or player for the Profiler to collect data for: S...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2e4c2939f966
unity_docs
scripting
In Unity's 'Inspector-configurable custom events', what is 'Generic support in UnityEvent' and how does it work?
By default a UnityEvent in a Monobehaviour binds dynamically to a void function. But you can create a UnityEvent with up to four generic type parameters as shown in the following example: ```csharp using UnityEngine; using UnityEngine.Events; public class GenericTest : MonoBehaviour { public UnityEvent<int, int, bool...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e1e257eabc6a
unity_docs
scripting
What is `AndroidJNI.SetFloatField` in Unity? Explain its purpose and usage.
AndroidJNI.SetFloatField Declaration public static void SetFloatField (IntPtr obj , IntPtr fieldID , float val ); Description Sets the value of an instance field of the specified object. Additional resources: Java Native Interface Specification (Oracle)
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_15cddc68bc7d
unity_docs
scripting
What is `GL.LoadProjectionMatrix` in Unity? Explain its purpose and usage.
GL.LoadProjectionMatrix Declaration public static void LoadProjectionMatrix ( Matrix4x4 mat ); Description Load an arbitrary matrix to the current projection matrix. This function overrides current camera's projection parameters, so most often you want to save and restore projection matrix using GL.PushMatri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_30d73e3733f2
unity_docs
rendering
What is `SystemInfo.maxComputeWorkGroupSize` in Unity? Explain its purpose and usage.
SystemInfo.maxComputeWorkGroupSize public static int maxComputeWorkGroupSize ; Description The largest total number of invocations in a single local work group that can be dispatched to a compute shader (Read Only). The product of SystemInfo.maxComputeWorkgroupSizeX, SystemInfo.maxComputeWorkgroupSizeY and Syst...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_ecac194c16fb_doc_20
github
scripting
What does `UpdateCollisions` do in this Unity script? Explain its purpose and signature.
Allows you to enable or disable the generation of collision meshes for terrain, road and buildings when they stream in. This does not enable or disable collision meshes for terrain, road and buildings which have already streamed in.Whether to enable or disable the generation of collision meshes for terrain.Whether to e...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_a7f88102fbea
github
scripting
Write a Unity C# script called Transform Helper
```csharp using UnityEngine; namespace Wrld.Space { public class TransformHelper { public static void ApplyTransform(Transform objectTransform, Vector3 parentPosition, Vector3 parentScale, Quaternion parentRotation, Quaternion childRotation) { objectTransform.localPosition =...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_sr_a5f5471a9e33
unity_docs
editor
Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.AddTargetDependency`.
ing targetDependencyGuid , string dependencyName ); Parameters Parameter Description targetGuid The GUID of the target to which you are adding a dependency. targetDependencyGuid The GUID of the dependency target. dependencyName The name of the dependency target. Description Creates a dependency between t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1041f59e74b8
unity_docs
editor
What is `SceneManagement.SceneManager.CreateScene` in Unity? Explain its purpose and usage.
SceneManager.CreateScene Declaration public static SceneManagement.Scene CreateScene (string sceneName ); Declaration public static SceneManagement.Scene CreateScene (string sceneName , SceneManagement.CreateSceneParameters parameters ); Parameters Parameter Description sceneName The name of the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_92374333e847
unity_docs
editor
Show me a Unity C# example demonstrating `AssetDatabase.IsDirectoryMonitoringEnabled`.
lse otherwise. Description Reports whether Directory Monitoring is enabled. Turn Directory Monitoring on or off in Preferences settings or in script with EditorPrefs.SetBool("DirectoryMonitoring", boolValue). Directory Monitoring can be disabled with command line flag [[-DisableDirectoryMonitor]] and Directory Mo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_31c6a0d82270
unity_docs
physics
What is `ArticulationBody.GetJointForcesForAcceleration` in Unity? Explain its purpose and usage.
ArticulationBody.GetJointForcesForAcceleration Declaration public ArticulationReducedSpace GetJointForcesForAcceleration ( ArticulationReducedSpace acceleration ); Parameters Parameter Description acceleration The desired acceleration in reduced space. Returns ArticulationReducedSpace The forces need...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f1cf93275c0e
unity_docs
rendering
What is `Rendering.ScriptableRenderContext.ExecuteCommandBuffer` in Unity? Explain its purpose and usage.
ScriptableRenderContext.ExecuteCommandBuffer Declaration public void ExecuteCommandBuffer ( Rendering.CommandBuffer commandBuffer ); Parameters Parameter Description commandBuffer Specifies the Command Buffer to execute. Description Schedules the execution of a custom graphics Command Buffer. During the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_86867229e15b
unity_docs
input
What is `SceneManagement.StageUtility.GetStage` in Unity? Explain its purpose and usage.
StageUtility.GetStage Declaration public static SceneManagement.Stage GetStage ( GameObject gameObject ); Declaration public static SceneManagement.Stage GetStage ( SceneManagement.Scene scene ); Returns Stage The Stage that contains either the GameObject or the Scene. Description Get the Stag...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5673c0cd7453
unity_docs
input
Explain 'Large screen and foldable device support' in Unity.
On large screen and foldable devices running Android 12 or newer, your application can run simultaneously with other applications in multi-window mode, irrespective of its default configuration. If your application is designed for a specific orientation or aspect ratio , or is non-resizable, the Android OS automaticall...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3d2607b45cd0
unity_docs
editor
What is `SettingsService` in Unity? Explain its purpose and usage.
SettingsService class in UnityEditor Description This class provides global APIs to interact with the Settings window. Static Methods Method Description Exists Verify the existence of a settings path. NotifySettingsProviderChanged Use this function to notify the SettingsService that a SettingsProvider changed...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_e770e4ea46ee_doc_12
github
scripting
What does `SetRootSDK` do in this Unity script? Explain its purpose and signature.
Sets the SDK path in the Unity Editor Signature: ```csharp private void SetRootSDK(string path) ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_4af1efe1956c
unity_docs
editor
What is `PrefabUtility.UnpackPrefabInstanceAndReturnNewOutermostRoots` in Unity? Explain its purpose and usage.
PrefabUtility.UnpackPrefabInstanceAndReturnNewOutermostRoots Declaration public static GameObject[] UnpackPrefabInstanceAndReturnNewOutermostRoots ( GameObject instanceRoot , PrefabUnpackMode unpackMode ); Parameters Parameter Description instanceRoot Root GameObject of the Prefab instance. unpackMode ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_865f6c428641
unity_docs
rendering
In Unity's 'Offset command in ShaderLab reference', what is 'Syntax' and how does it work?
This command makes a change to the render state. Use it in a Pass block to set the render state for that Pass, or use it in a SubShader block to set the render state for all Passes in that SubShader. Signature Example syntax Function Offset <factor>, <units> Offset 1, 1 Draw geometry closer to or further away from the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_063504bd12bd
unity_docs
scripting
What is `Profiling.HierarchyFrameDataView.sortColumnAscending` in Unity? Explain its purpose and usage.
HierarchyFrameDataView.sortColumnAscending public bool sortColumnAscending ; Description Whether the sorting order is ascending, true, or descending, false. Use the HierarchyFrameDataView.Sort method to resort the view.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_361bbafb8b42
github
scripting
Write a Unity Editor script for Set Scripting Backend Step
```csharp using System; using MagicLeap.SetupTool.Editor.Interfaces; using MagicLeap.SetupTool.Editor.Utilities; using UnityEditor; using UnityEngine; namespace MagicLeap.SetupTool.Editor.Setup { public class SetScriptingBackendStep: ISetupStep { //Localization private const string FIX_SETTING_BUTTON_LABEL = "F...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_man_a776890ebc17
unity_docs
scripting
In Unity's 'Rig tab Import Settings reference', what is 'Generic animation types' and how does it work?
Generic Animations do not use Avatars like Humanoid animations do. Since the skeleton can be arbitrary, you must specify which bone is the Root node . The Root node allows Unity to establish consistency between Animation clips for a generic model, and blend properly between Animations that have not been authored “in pl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0ed9436bd221
unity_docs
math
Explain 'Parallel tessellation' in Unity.
To improve performance when you tessellate a large mesh , use the job system. This prevents the main thread from being blocked for an extended period. When you create a tessellation job, use the MeshGenerationContext.AddMeshGenerationJob API to provide the job handle to UI Toolkit. This ensures that UI Toolkit will wai...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3f4427040621
unity_docs
math
What is `Rendering.RayTracingInstanceCullingTest.instanceMask` in Unity? Explain its purpose and usage.
RayTracingInstanceCullingTest.instanceMask public uint instanceMask ; Description An instance mask which affects ray-instance masking during ray tracing on the GPU. Typically, each ray tracing effect can use a dedicated RayTracingInstanceCullingTest configuration and different instanceMask value. If the test ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_eca8a1a58016
unity_docs
scripting
Show me a Unity C# example demonstrating `Search.QueryEngine_1.TryGetFilter`.
s not exist. Returns bool Returns true if the filter is retrieved or false if the filter does not exist. Description Get a filter by its token. This method tries to retrieve a filter by its token. If it exists, it will be put in the output parameter "filter" and the function returns true. If the filter does no...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_da7b04749d8d
unity_docs
editor
Explain 'Removing unused override data' in Unity.
An override on a prefab might become unused in the following situations: The override’s target object is invalid. The override’s property path is unknown. This might happen if you delete a public field definition or rename it. To preserve overrides when renaming fields, you can use FormerlySerializedAsAttribute . Unity...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.