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_060c33548133
unity_docs
physics
What is `PhysicsShapeType2D` in Unity? Explain its purpose and usage.
PhysicsShapeType2D enumeration Description Options for indicate which primitive shape type is used to interpret geometry contained within a PhysicsShape2D object. Additional resources: PhysicsShape2D.shapeType . Properties Property Description Circle Use a circle shape to interpret the PhysicsShape2D geomet...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d1f73a075762
unity_docs
rendering
What is `Rendering.CullingResults.SetLightIndexMap` in Unity? Explain its purpose and usage.
CullingResults.SetLightIndexMap Declaration public void SetLightIndexMap (NativeArray<int> lightIndexMap ); Parameters Parameter Description lightIndexMap Array with light indices that map from VisibleLight to internal per-object light lists. Description If a RenderPipeline sorts or otherwise modifies ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_63f68fd6cfa8
unity_docs
input
What is `UIElements.MouseDownEvent.GetPooled` in Unity? Explain its purpose and usage.
MouseDownEvent.GetPooled Declaration public static UIElements.MouseDownEvent GetPooled ( Event systemEvent ); Parameters Parameter Description systemEvent An IMGUI mouse event. Returns MouseDownEvent An initialized event. Description Gets an event from the event pool and initializes it with the g...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f87eff58cf60
unity_docs
editor
Give me an overview of the `Menu` class in Unity.
Menu class in UnityEditor Description Provides methods to manipulate a menu item. Constructors Constructor Description Menu Default constructor. Static Methods Method Description GetChecked Gets the check status of a menu item. GetEnabled Gets the enabled status of a menu item. SetChecked Sets the check ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_08f66a2da6ff
unity_docs
scripting
Explain 'Build and deliver for Embedded Linux' in Unity.
Build and deliver your Unity application for Embedded Linux. Topic Description Embedded Linux Build Profiles reference Reference documentation for Embedded Linux Build Profiles . Build for Embedded Linux from the command line Build your Unity project from the command line. Deploy an Embedded Linux project Deploy your p...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_22c3384bb7e4
unity_docs
rendering
What is `Rendering.GraphicsTexture.descriptor` in Unity? Explain its purpose and usage.
GraphicsTexture.descriptor public Rendering.GraphicsTextureDescriptor descriptor ; Description Contains all the information Unity uses to create a GraphicsTexture. Getting this property is only possible while the GraphicsTexture is in the InitializedOnRenderThread state. Additional resources: GraphicsTextu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_12c10a7bfabb
unity_docs
rendering
What is `GL.Clear` in Unity? Explain its purpose and usage.
GL.Clear Declaration public static void Clear (bool clearDepth , bool clearColor , Color backgroundColor , float depth = 1.0f); Parameters Parameter Description clearDepth Should the depth buffer be cleared? clearColor Should the color buffer be cleared? backgroundColor The color to clear with, use...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f18c20d7af8f
unity_docs
rendering
In Unity's 'Search expressions', what is 'Create a search expression' and how does it work?
A search expression starts with a root expression that can contain inner expressions. A simple query like t:shader is an expression. It returns all of the Search Items corresponding to shaders in your project. Use the search expression language to combine multiple queries into a single expression to create more flexibl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b5ef93afd798
unity_docs
math
What are the parameters of `Tilemaps.Tilemap.GetTilesRangeNonAlloc` in Unity?
Returns int Returns the number of positions and Tiles retrieved. Description Retrieves an array of Tiles within the given range, inclusive of the Cells at both the starting position and the ending positions. This method begins at the given starting position and iterates through all available Z Positions, then iterates ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d088fb4949e4
unity_docs
scripting
What is `Build.Content.ObjectSerializedInfo.rawData` in Unity? Explain its purpose and usage.
ObjectSerializedInfo.rawData public Build.Content.SerializedLocation rawData ; Description Raw byte data of the object if it was serialized seperately from the header. Internal use only. See ObjectSerializedInfo .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_8b246f295bce
github
scripting
Write a Unity C# script called Null Config Data
```csharp using RMC.Core.Architectures.Umvcs.Context; using UnityEngine; namespace RMC.Core.Architectures.Umvcs.Model.Data { [CreateAssetMenu(fileName = "NullConfigData", menuName = UMVCSConstants.CreateAssetMenuPath + "NullConfigData", order = UMVCSConstants.CreateAssetMenuOrder)] /// <summary> /// This is a n...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_40475443561b
unity_docs
rendering
What is `Experimental.GlobalIllumination.FalloffType.InverseSquaredNoRangeAttenuation` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. FalloffType.InverseSquaredNoRangeAttenuation Description Inverse squared distance falloff model (without smooth range attenuation). This is a physically based falloff model for point and spot lights. The falloff model falls off ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9fe4751cddf2
unity_docs
rendering
What is `SparseTexture` in Unity? Explain its purpose and usage.
SparseTexture class in UnityEngine / Inherits from: Texture / Implemented in: UnityEngine.CoreModule Description Class for handling Sparse Textures. Sparse textures are textures where not the whole texture data can be present in memory at once. They are also commonly called "tiled textures" or "mega textures"...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d901b955f88c
unity_docs
editor
What is `EngineDiagnostics.EngineDiagnosticsSettings` in Unity? Explain its purpose and usage.
EngineDiagnosticsSettings class in UnityEditor.EngineDiagnostics Description Engine diagnostics data collection settings. Static Properties Property Description enabled Enables or disables Engine diagnostics data collection.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d674a561923c
unity_docs
rendering
In Unity's 'Introduction to Custom Render Textures', what is 'Render Pipeline Compatibility' and how does it work?
The following table describes the compatibility between the Custom Render Textures feature and each render pipeline : Feature Universal Render Pipeline (URP) High Definition Render Pipeline (HDRP) Custom Scriptable Render Pipeline (SRP) Built-in Render Pipeline Custom Render Textures Yes (1) Yes (1) Yes (1) Yes (1) Not...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d65470eb6b12
unity_docs
rendering
What is `Rendering.GraphicsTextureDescriptor.mipCount` in Unity? Explain its purpose and usage.
GraphicsTextureDescriptor.mipCount public int mipCount ; Description The number of mipmap levels in this GraphicsTexture. The value includes the base level, so it must always be 1 or more. Note that a GraphicsTexture represents what is uploaded to the GPU, so this value may differ from Texture.mipmapCount de...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_c9b30718239d
github
scripting
Write a Unity C# ScriptableObject for Group Brush
```csharp using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Tilemaps; namespace UnityEditor.Tilemaps { /// <summary> /// This Brush helps to pick Tiles which are grouped together by position. Gaps can be set to identify if Tiles belong to a Group. Limits can be s...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_eea35a3e755c
unity_docs
scripting
What is `Experimental.GraphView.Edge.ghostColor` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Edge.ghostColor public Color ghostColor ; Description The color of the ghost edge, which is the edge that appears snapped to a nearby port while an edge is being created.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_20264f276f5d
unity_docs
scripting
What is `VideoClipImporter.ClearTargetSettings` in Unity? Explain its purpose and usage.
VideoClipImporter.ClearTargetSettings Declaration public void ClearTargetSettings (string platform ); Parameters Parameter Description platform Platform name. Description Clear the platform-specific import settings for the specified platform, causing them to go back to the default settings. Refer to Vide...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1fb2cf995761
unity_docs
physics
Give me an overview of the `SoftJointLimitSpring` class in Unity.
SoftJointLimitSpring struct in UnityEngine / Implemented in: UnityEngine.PhysicsModule Description The configuration of the spring attached to the joint's limits: linear and angular. Used by CharacterJoint and ConfigurableJoint . Properties Property Description damper The damping of the spring limit. In e...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cc1c6e2831e0
unity_docs
xr
What is `Unity.IO.LowLevel.Unsafe.Priority` in Unity? Explain its purpose and usage.
Priority enumeration Description The priority level attached to the AsyncReadManager read request. The AsyncReadManager always starts higher priority read requests before lower priority requests. Properties Property Description PriorityLow Low priority request. PriorityHigh High priority request.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_94b0a27e880a
unity_docs
scripting
Show me a Unity code example for 'BindableElement'.
the base class for all elements that you can bind to a data source. It provides the following properties: bindingPath : The path to the data source property to bind to. binding : The binding object that represents the binding between the element and the data source. ## Create a BindableElement You can create a Bindab...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6a74b5662d4d
unity_docs
physics
Show me a Unity C# example demonstrating `PhysicsShapeGroup2D.AddCapsule`.
Description Adds a capsule shape ( PhysicsShapeType2D.Capsule ) to the shape group. A capsule shape is comprised of a single edge shape defined by two vertices ( vertex0 and vertex1 ) and a radius that extends around the length of the edge and around the vertices. NOTE : A capsule forms a closed shape and does h...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_73d49617adb2
unity_docs
rendering
In Unity's 'Configure mipmap streaming', what is 'Enable mipmap streaming on a single camera' and how does it work?
Follow these steps: Go to Edit > Project Settings > Quality . In the Textures section, under Mipmap Streaming , disable Add All Cameras . Add a Streaming Controller component to the camera, and make sure it’s enabled.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2d829d6b5afa
unity_docs
scripting
Show me a Unity C# example demonstrating `Color.red`.
Color.red public static Color red ; Description Solid red. RGBA is (1, 0, 0, 1). Returns a solid red Color. RGBA is (1, 0, 0, 1). Use it to change or compare the Color of a GameObject. ```csharp //Attach this script to a GameObject with a Renderer (go to Create>3D Object and select one of the first 6 options...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_784a8fdadf8b_doc_12
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
The Collision structure that holds whether to create collision meshes for different types of map geometry. Signature: ```csharp public struct CollisionConfig ```
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_man_4b82c9e5b0ab
unity_docs
rendering
In Unity's 'Web browser compatibility', what is 'Web browser compatibility for mobile' and how does it work?
The Unity Web platform supports some mobile browsers. To use a Web application on a mobile device, you have a few options: Run the application in your mobile browser. Use WebView to embed the application into native apps. Use a Progressive Web App (PWA) template. Unity’s Web platform supports the following mobile brows...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9c9afa5e3508
unity_docs
scripting
What is `VersionControl.Task.assetList` in Unity? Explain its purpose and usage.
Task.assetList public VersionControl.AssetList assetList ; Description The result of some types of tasks. Most task perform an action and returns the result as list of version control informations about assets, e.g. a Status task will return the result in this list.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fb379c3dfb5a
unity_docs
scripting
What is `TextMesh.richText` in Unity? Explain its purpose and usage.
TextMesh.richText public bool richText ; Description Enable HTML-style tags for Text Formatting Markup. Supported tags are: <color="htmlcolor">colored text</color>, where "htmlcolor" is a html color string, like "#ff0000" or "red". <b>bold text</b> <i>italic text</i> <size=20>sized text</size> <material=1...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cf423ac4bfba
unity_docs
animation
Show me a Unity C# example demonstrating `ModelImporterClipAnimation.ConfigureClipFromMask`.
igureClipFromMask ( AvatarMask mask ); Parameters Parameter Description mask AvatarMask from which the mask settings will be imported. Description Copy the mask settings from an AvatarMask to the clip configuration. When writing an AssetPostprocessor , use this method to copy an AvatarMask to your cli...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bf8b6a85499f
unity_docs
animation
What is `ModelImporter.referencedClips` in Unity? Explain its purpose and usage.
ModelImporter.referencedClips public string[] referencedClips ; Description Returns the matching referenced clip assets for this model. Note: The returned array will only contain referenced clip assets for models being set to use legacy animation rigs, otherwise an empty array will be returned.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fd5976146cc1
unity_docs
rendering
What is `TextureImporterShape.Texture3D` in Unity? Explain its purpose and usage.
TextureImporterShape.Texture3D Description Import the texture as a 3D texture. The input image is split into a number of columns and rows controlled by TextureImporterSettings.flipbookColumns and TextureImporterSettings.flipbookRows . Each cell is imported into its own 3D texture slice. Additional resources: Te...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8aef00ccda89
unity_docs
editor
What is `IMGUI.Controls.SphereBoundsHandle` in Unity? Explain its purpose and usage.
SphereBoundsHandle class in UnityEditor.IMGUI.Controls / Inherits from: IMGUI.Controls.PrimitiveBoundsHandle Description A compound handle to edit a sphere-shaped bounding volume in the Scene view. A sphere volume is defined by only a radius parameter, and so dragging a handle will always scale the volume uni...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7b216563f51d
unity_docs
rendering
What is `Rendering.ScriptableRenderContext.DrawUIOverlay` in Unity? Explain its purpose and usage.
ScriptableRenderContext.DrawUIOverlay Declaration public void DrawUIOverlay ( Camera camera ); Parameters Parameter Description camera The camera of the current view. Description Draw the UI overlay.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_57e11f66caa3
github
scripting
Write a Unity C# MonoBehaviour script called Runtime Attribute Finder
```csharp using InGame_Console.InGame_Console_System.Scripts; using UnityEngine; using UnityEngine.SceneManagement; public class RuntimeAttributeFinder : MonoBehaviour { [SerializeField] bool RunOnSceneChanges = true; void Awake() { SceneManager.activeSceneChanged += OnSceneChanged; ...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_993efc7318ec
unity_docs
scripting
What is `UIElements.BaseVerticalCollectionView.itemUssClassName` in Unity? Explain its purpose and usage.
BaseVerticalCollectionView.itemUssClassName public static string itemUssClassName ; Description The USS class name of item elements in BaseVerticalCollectionView elements. Unity adds this USS class to every item element the BaseVerticalCollectionView contains. Any styling applied to this class affects ever...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_784a8fdadf8b_doc_19
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
This controls whether or not Labels are enabled for roads, buildings and other landmarks.This is set automatically from the Unity Inspector panel for the WrldMap object. Signature: ```csharp public bool EnableLabels ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_3e98abea1b24
unity_docs
performance
What is `Unity.Profiling.LowLevel.Unsafe.ProfilerRecorderHandle.Valid` in Unity? Explain its purpose and usage.
ProfilerRecorderHandle.Valid public bool Valid ; Description Indicates if a handle is valid and can be used with ProfilerRecorder. Returns true if the handle is valid and can be used with ProfileRecorder. Returns false otherwise.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_034e669f7898
unity_docs
scripting
What is `RenderPickingResult.ctor` in Unity? Explain its purpose and usage.
RenderPickingResult Constructor Declaration public RenderPickingResult (int renderedPickingIndexCount , HandleUtility.ResolvePickingCallback resolver ); Declaration public RenderPickingResult (int renderedPickingIndexCount , HandleUtility.ResolvePickingWithWorldPositionCallback resolver ); Parameters ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_ca157165f353
unity_docs
editor
Show me a Unity code example for 'Embedded resources in Web'.
resources can be rather large. However, some user code and .NET class library APIs depend on the presence of embedded resources to work properly. For example, string comparisons that use the StringComparison.InvariantCultureIgnoreCase value use embedded resources when comparing non-ASCII characters. You can use the fol...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_bf9a41666550
unity_docs
xr
Explain 'Search for packages' in Unity.
The Packages search provider finds packages in your project and in the Unity Registry. ## Query syntax Provider token: pkg: Note: You can’t implicitly use this search provider as part of a default search . You must explicitly use its search token or its visual query filter. Query example: Searches the Package Manager...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4115054f53bc
unity_docs
editor
Show me a Unity C# example demonstrating `SerializedProperty.minArraySize`.
zedObject.maxArraySizeForMultiEditing . In that case SerializedObject.maxArraySizeForMultiEditing could be increased to permit access to the array contents. When the SerializedObject contains only a single object, this property behaves in the same way as SerializedProperty.arraySize and returns the true array size. A...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fc30269a3ea1
unity_docs
rendering
What is `Mesh.MarkModified` in Unity? Explain its purpose and usage.
Mesh.MarkModified Declaration public void MarkModified (); Description Notify Renderer components of mesh geometry change. By default, whenever Mesh data changes that could affect the geometry of the mesh, all Renderer components that use this mesh get notified. For example, MeshRenderer components recal...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_582f2d7c23ed
unity_docs
physics
In Unity's 'Get started with runtime binding', what is 'Create a data source asset' and how does it work?
Create a data source asset that contains the properties you want to bind to. In this example, you create a ScriptableObject asset named ExampleObject that contains a string property. Create a project in Unity with any template. In the Assets folder of your project, create a C# script named ExampleObject.cs with the fol...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_75efe52722fc
unity_docs
physics
Show me a Unity C# example demonstrating `AssetImporters.ScriptedImporterAttribute.ctor`.
rsion number whenever the script changes. This forces Assets imported with lower version numbers to be re-imported. If the Editor's Auto Refresh preference is enabled, editing a script outside of the editor and saving it triggers a re-import of both the script and all Assets of the corresponding type. The following e...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d2d13bec0515
unity_docs
scripting
What is `UIElements.StyleFontDefinition` in Unity? Explain its purpose and usage.
StyleFontDefinition struct in UnityEngine.UIElements / Implemented in: UnityEngine.UIElementsModule Implements interfaces: IStyleValue<T0> Description Style value that can be either a FontDefinition or a StyleKeyword . Properties Property Description keyword The style keyword. value The actual ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e144fc15745d
unity_docs
scripting
What is `BeforeRenderOrderAttribute` in Unity? Explain its purpose and usage.
BeforeRenderOrderAttribute class in UnityEngine / Implemented in: UnityEngine.CoreModule Description Use this BeforeRenderOrderAttribute when you need to specify a custom callback order for Application.onBeforeRender. Application.onBeforeRender will reorder all registered events recievers and call them in orde...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_02aae5d0210f
unity_docs
ui
Show me a Unity C# example demonstrating `UIElements.Button.clicked`.
.clicked Description Callback triggered when the button is clicked. This is a shortcut for modifying Clickable.clicked . It is provided as a convenience. When you add or remove actions from clicked, it adds or removes them from Clickable.clicked automatically. The following example shows how to use the c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_91a9743750aa
unity_docs
editor
Show me a Unity C# example demonstrating `AssetDatabase.IsConnectedToCacheServer`.
AssetDatabase.IsConnectedToCacheServer Declaration public static bool IsConnectedToCacheServer (); Returns bool Returns true when Editor is connected to the Cache Server. Returns false otherwise. Description Checks connection status of the Cache Server. ```csharp using UnityEngine; using UnityEditor;publi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_8065f2a3831d
unity_docs
ui
In Unity's 'AudioGroup Inspector', what is 'Edit in Playmode' and how does it work?
When in Play mode within Unity, the Inspector for an AudioGroup includes a button at the top called Edit in Play Mode . By default, the parameter values of an Audio Mixer aren’t editable in Play mode and are fully controlled by the current snapshot within the game. Enable Edit in Play Mode to override the snapshot syst...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_d8884513961e
unity_docs
scripting
In Unity's 'Create trees and leaves from meshes', what is 'Use a mesh for the tree' and how does it work?
A Tree Editor tree has a Mesh Filter component that can reference your imported mesh. To assign your imported mesh to the tree: In the Inspector window > Tree Hierarchy view, select either the root node or one of the branch groups. In the Mesh (Mesh Filter) component, select the mesh picker (circle). In the Select Mesh...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_332aa73a123a
unity_docs
editor
Give me an overview of the `StaticOcclusionCullingVisualization` class in Unity.
StaticOcclusionCullingVisualization class in UnityEditor Description Used to visualize static occlusion culling at development time in Scene view. Static Properties Property Description showGeometryCulling If set to true, culling of geometry is enabled. showOcclusionCulling If set to true, visualization of ta...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_265bec37ad0a
unity_docs
scripting
What is `Unity.Android.Gradle.Manifest.Service.ctor` in Unity? Explain its purpose and usage.
Service Constructor Declaration public Service (); Declaration public Service ( Unity.Android.Gradle.Manifest.Service service ); Parameters Parameter Description service Element to copy. Description Element constructor.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1ee82f7d3b37
unity_docs
scripting
What are the parameters of `LightProbes.SetPositionsSelf` in Unity?
Returns bool true when the positions were successfully set. Otherwise false . Description Sets the positions of the baked light probes stored in this LightProbes object. When you change the positions of baked light probes using this method, you must call LightProbes.Tetrahedralize or LightProbes.TetrahedralizeAsync to ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4d50bbedf7d2
unity_docs
scripting
What is `IMGUI.Controls.MultiColumnHeader.ResizeToFit` in Unity? Explain its purpose and usage.
MultiColumnHeader.ResizeToFit Declaration public void ResizeToFit (); Description Resizes the column widths of the columns that have auto-resize enabled to make all the columns fit to the width of the MultiColumnHeader render rect. If no columns have MultiColumnHeaderState.Column.autoResize enabled then this ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_819e62c3619b
unity_docs
audio
In Unity's 'Audio Clip Import Settings reference', what is 'Preview window' and how does it work?
The Preview window lets you play the audio in the Unity Editor outside of Play mode. This window allows you to check audio files to ensure they sound as expected before you use them in your application. Property Function Select the Play button to play the selected audio clip. Enable the Turn Auto Play On/Off toggle to ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a7c4778ee26a
unity_docs
scripting
What is `TextMesh.font` in Unity? Explain its purpose and usage.
TextMesh.font public Font font ; Description The Font used. Additional resources: text mesh component . ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { // Set the text of the attached Text mesh Font newFont = new Font(); GetComponent<TextMesh>().font = newFont; } }...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_054fb9192465
unity_docs
editor
Show me a Unity C# example demonstrating `SearchService.SearchEngineScope`.
SearchEngineScope enumeration Description An enumeration that contains the available search engine scopes. A search engine scope identifies where a search comes from. This is useful when implementing a single entry point for the base engine functions: ```csharp using System; using System.Collections.Generic; usin...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_72da6316fe49
unity_docs
physics
Show me a Unity C# example demonstrating `UIElements.Button.clickable`.
scription Clickable MouseManipulator for this Button. The default Clickable object provides a list of actions that are called using one or more activation filters. To add or remove activation triggers, modify clickable.activators . An activation trigger can be any mouse button, pressed any number of times,...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c70b41558a74
unity_docs
xr
What is `Networking.DownloadHandler.ReceiveData` in Unity? Explain its purpose and usage.
DownloadHandler.ReceiveData Declaration protected bool ReceiveData (byte[] data , int dataLength ); Parameters Parameter Description data A buffer containing unprocessed data, received from the remote server. dataLength The number of bytes in data which are new. Returns bool True if the download sho...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a7ed59f568d1
unity_docs
editor
Show me a Unity C# example demonstrating `SettingsProvider.label`.
SettingsProvider.label public string label ; Description Gets or sets the display name of the SettingsProvider as it appears in the Settings window. If not set, the Settings window uses last token of SettingsProvider.settingsPath instead. ```csharp using UnityEditor; using UnityEngine; using UnityEngine.UIEle...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1dc7dc6abbf2
unity_docs
editor
What is `AssetDatabase.RegisterCustomDependency` in Unity? Explain its purpose and usage.
AssetDatabase.RegisterCustomDependency Declaration public static void RegisterCustomDependency (string dependency , Hash128 hashOfValue ); Parameters Parameter Description dependency Name of dependency. You can use any name you like, but because these names are global across all your Assets, it can be use...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9dda0fc20222
unity_docs
editor
Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.SetCompileFlagsForFile`.
lagsForFile (string targetGuid , string fileGuid , List<string> compileFlags ); Parameters Parameter Description targetGuid The GUID of the target, such as the one returned by TargetGuidByName . fileGuid The GUID of the file. compileFlags The list of compile flags or null if the flags should be unset. D...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_e903feacee78
github
scripting
Write a Unity C# script called Resources Loader
```csharp using System; using UnityEngine; using Object = UnityEngine.Object; namespace SmartReference.Runtime { public class ResourcesLoader: ISmartReferenceLoader { public ISmartReferenceHandle Load(string path, Type type, out Object loadedObject) { var resourcesPath = GetResourc...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
local_man_d71e5e94dc9e
unity_docs
ui
Show me a Unity code example for 'Child selectors'.
USS child selectors match elements that are the child of another element in the visual tree . ## Syntax A child selector consists of multiple simple selectors separated by > . ``` selector1 > selector2 {...} ``` You can include the wildcard selector in complex selectors. For example, the following USS rule uses the w...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_ac9d1aa67c42
unity_docs
ui
Show me a Unity code example for 'ToolbarToggle'.
A ToolbarToggle is an Editor-only control that serves as a toggle in a Toolbar . It’s a Toggle with a predefined style that matches the Toolbar style. It looks like a button that you can toggle on and off. ## Create a ToolbarToggle You can create a ToolbarToggle with UI Builder, UXML, or C#. The following C# example ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_20bd62ff844a
unity_docs
scripting
Show me a Unity C# example demonstrating `Vector3.right`.
Vector3.right public static Vector3 right ; Description Shorthand for writing Vector3(1, 0, 0) . ```csharp using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Example() { transform.position += Vector3.right * Time.deltaTime; } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_97cac2976ae4
unity_docs
scripting
Give me an overview of the `ModelImporterIndexFormat` class in Unity.
ModelImporterIndexFormat enumeration Description Format of the imported mesh index buffer data. Index buffer can either be 16 bit (supports up to 65535 vertices in a mesh), or 32 bit (supports up to 4 billion vertices). Default behavior is ModelImporterIndexFormat.Auto , which picks the format based on vertex cou...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0675f45c3f73
unity_docs
physics
What is `JointBreakAction2D.CallbackOnly` in Unity? Explain its purpose and usage.
JointBreakAction2D.CallbackOnly Description When the Joint2D breaks, call Joint2D.OnJointBreak2D but take no other action. NOTE: With this option selected, continuing to break the joint will continue to cause the Joint2D.OnJointBreak2D callback to be called.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ccd93d58319e
unity_docs
scripting
What is `Tilemaps.Tilemap.GetTilesRangeCount` in Unity? Explain its purpose and usage.
Tilemap.GetTilesRangeCount Declaration public int GetTilesRangeCount ( Vector3Int startPosition , Vector3Int endPosition ); Parameters Parameter Description startPosition The starting position of the range to retrieve Tiles from. endPosition The ending position of the range to retrieve Tiles from. Ret...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_ac133d261672
github
scripting
Write a Unity C# MonoBehaviour script called Poll Register
```csharp /* * Copyright (c) University of Sheffield AMRC 2025. * See LICENSE file */ using AMRC.UnityModBus.Classes; using UnityEngine; using UnityEngine.Events; namespace AMRC.UnityModBus.UnityComponents { /// <summary> /// A Unity component class to repeatedly poll a register over ModBus and alert at an...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0203df9adf49
unity_docs
ui
Show me a Unity code example for 'Style text with USS'.
in UI Builder . To learn more about USS text properties, refer to Text properties . ## Style text in USS and UXML Text properties are regular USS style properties. You can set text style properties on any element. Unlike most USS style properties, text style properties propagate to child elements. The following USS e...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_81f39c73a4c6
unity_docs
scripting
What is `UIElements.TextOverflowPosition` in Unity? Explain its purpose and usage.
TextOverflowPosition enumeration Description Specifies which part of the text the Element replaces with an ellipsis when textOverflow is set to TextOverflow.Ellipsis. Properties Property Description End The ellipsis replaces content at the end of the text. This is the default value. Start The ellipsis...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_784a8fdadf8b_doc_14
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Will cause collision geometry to be generated for road meshes if true. Signature: ```csharp public bool RoadCollision ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_dbfe36f40796
unity_docs
performance
What is `Profiling.Sampler` in Unity? Explain its purpose and usage.
Sampler class in UnityEngine.Profiling / Implemented in: UnityEngine.CoreModule Description Provides control over a CPU Profiler label. Sampler is a counter which produces timings information you can see in CPU Profiler . Use this class to get information about built-in or custom Profiler label. Additional res...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5ed79dff96a8
unity_docs
rendering
Show me a Unity code example for 'Normal mapping Surface Shader example in the Built-In Render Pipeline'.
```csharp Shader "Example/Diffuse Bump" { Properties { _MainTex ("Texture", 2D) = "white" {} _BumpMap ("Bumpmap", 2D) = "bump" {} } SubShader { Tags { "RenderType" = "Opaque" } CGPROGRAM #pragma surface surf Lambert struct Input { float2 uv_MainTex; float2 uv_BumpMap; }; sampler2D _MainTex; sampler2D _Bum...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ab80363f9bf8
unity_docs
rendering
Give me an overview of the `ColorSpace` class in Unity.
ColorSpace enumeration Description Color space for player settings. This enum is used to indicate color space used in project ( PlayerSettings.colorSpace ) and sprite atlases ( AtlasSettings.colorSpace ). Additional resources: Linear and Gamma rendering , RenderTextureReadWrite . Properties Property Descripti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_4a8da21fffa7
unity_docs
rendering
Explain 'Unity Editor windows and views reference' in Unity.
The Unity Editor interface has several key windows that you use to create and manage your projects. Each window has a specific purpose, such as organizing scene content and editing the settings of your project. Understanding these key windows and how they interact is fundamental to working efficiently in Unity. You can...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5f6009aba56f
unity_docs
rendering
What is `Material.HasInteger` in Unity? Explain its purpose and usage.
Material.HasInteger Declaration public bool HasInteger (string name ); Declaration public bool HasInteger (int nameID ); Parameters Parameter Description nameID The name ID of the property. Use Shader.PropertyToID to get this ID. name The name of the property. Returns bool Returns true if the S...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_69eaca881d68
unity_docs
scripting
What are the parameters of `Animator.ResetTrigger` in Unity?
Description Resets the value of the given trigger parameter. Use this to reset a Trigger parameter in an Animator Controller that could still be active. Make sure to create a parameter in the Animator Controller with the same name. See Animator.SetTrigger for more information about how to set a Trigger. ```csharp //Att...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_21395103281d
unity_docs
rendering
In Unity's 'Customizing the Player loop', what is 'Replace a default system in the Player loop' and how does it work?
The following example replaces a default system in the Player loop with a custom update. The example replaces the PreUpdate.AIUpdate system, but you can replace any system in the Player loop by specifying its PlayerLoopSystem.type identifier. Valid types for default systems can be obtained by iterating through the defa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b9b103c92036
unity_docs
rendering
What is `Texture2D.vtOnly` in Unity? Explain its purpose and usage.
Texture2D.vtOnly public bool vtOnly ; Description Returns true if the VTOnly checkbox was checked when the texture was imported; otherwise returns false. For additional information, see TextureImporter.vtOnly .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7e96ec8f6387
unity_docs
scripting
What is `VersionControl.Provider.PreSubmitCallback` in Unity? Explain its purpose and usage.
Provider.PreSubmitCallback Declaration public delegate bool PreSubmitCallback ( VersionControl.AssetList list , ref string changesetID , ref string changesetDescription ); Parameters Parameter Description list The list of Assets that will be passed on to the Checkout command. Assets can be removed from or...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f615f5f02459
unity_docs
editor
What is `Profiling.Recorder` in Unity? Explain its purpose and usage.
Recorder class in UnityEngine.Profiling / Implemented in: UnityEngine.CoreModule Description Records profiling data produced by a specific Sampler. Recorder accumulates elapsed time of every Begin/End pair during a frame. Once enabled it sums delta time between Begin and End samples produced by a Sampler. Use ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c1492310e5da
unity_docs
scripting
Show me a Unity code example for 'Load SSH keys automatically on macOS'.
## Procedure Check your home folder for an.ssh subdirectory and check if it contains a config file. Note :.ssh is a hidden subdirectory. Create the ~/.ssh/config file if it doesn’t exist. Add the following content to ~/.ssh/config to set the key to load in the authentication agent and specify its use by the target ser...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3cbeec11b0da
unity_docs
scripting
What is `SystemLanguage.Dutch` in Unity? Explain its purpose and usage.
SystemLanguage.Dutch Description Dutch. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the Dutch language if (Application.systemLanguage == SystemLanguage.Dutch) { //Outputs into console that the system is in Dutch Deb...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ed72de568228
unity_docs
scripting
What is `Experimental.GraphView.Group.OnElementsRemoved` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. Group.OnElementsRemoved Declaration protected void OnElementsRemoved (IEnumerable<GraphElement> elements ); Parameters Parameter Description elements The removed elements. Description Called when elements are removed fr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a5b930a96c26
unity_docs
audio
Explain 'Audio Echo Effect' in Unity.
The Audio Echo Effect repeats a sound after a given Delay , attenuating the repetitions based on the Decay Ratio . ## Properties Property: Function: Delay Echo delay in ms. 10 to 5000. Default = 500. Decay Echo decay per delay. 0 to 100%. 100% = No decay, 0% = total decay (ie simple 1 line delay). Default = 50%. Max ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_99813bb1e9dc
unity_docs
editor
What is `Search.SearchIndexer.Search` in Unity? Explain its purpose and usage.
SearchIndexer.Search Declaration public IEnumerable<SearchResult> Search ( Search.SearchContext context , Search.SearchProvider provider , int maxScore , int patternMatchLimit ); Declaration public IEnumerable<SearchResult> Search (string query , Search.SearchContext context , Search.SearchProvider ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b862065d65be
unity_docs
scripting
What is `Vector3.z` in Unity? Explain its purpose and usage.
Vector3.z public float z ; Description Z component of the vector. ```csharp // Attach this script to a GameObject // Create two Input Fields in the Scene (Create>UI>Input Field) // Click on the GameObject and attach both Input Fields in the Inspector windowusing UnityEngine; using UnityEngine.UI;public class Ex...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8739e822a871
unity_docs
performance
Show me a Unity C# example demonstrating `Unity.Collections.NativeArray_1.ReadOnly.UnsafeElementAt`.
Parameter Description index The index of the element. Returns T A ref readonly to a value of type T . Description Provides read-only access to ReadOnly elements by index. This method is dangerous because it returns reference to the memory that can be destroyed (with Dispose, for instance) and if the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_31e549e86731
unity_docs
rendering
What is `Experimental.Rendering.GraphicsStateCollection.graphicsDeviceType` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsStateCollection.graphicsDeviceType public Rendering.GraphicsDeviceType graphicsDeviceType ; Description The graphics device API type the collection is intended to be used with. The same shader variant and graphics ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_1b2127fef30f
unity_docs
physics
What is `ContactPoint.impulse` in Unity? Explain its purpose and usage.
ContactPoint.impulse public Vector3 impulse ; Description The impulse applied to this contact pair to resolve the collision. To work out the force applied you can divide the impulse by the last frame's fixedDeltaTime.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ba8e5454d574
unity_docs
editor
Show me a Unity C# example demonstrating `AssetSettingsProvider.CreateProviderFromAssetPath`.
rds to compare against what the user is searching for. When the user enters values in the search box on the Settings window, SettingsProvider.HasSearchInterest tries to match those keywords to this list. Returns AssetSettingsProvider Returns an AssetSettingsProvider that will create an Editor for this particula...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_83278dd47020
unity_docs
scripting
What is `Rigidbody.freezeRotation` in Unity? Explain its purpose and usage.
Rigidbody.freezeRotation public bool freezeRotation ; Description Controls whether physics will change the rotation of the object. If freezeRotation is enabled, the rotation is not modified by the physics simulation. This is useful for creating first person shooters, because the player needs full control of th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2e6167a62283
unity_docs
scripting
What are the parameters of `JsonUtility.FromJsonOverwrite` in Unity?
Description Overwrite data in an object by reading from its JSON representation. This method is very similar to JsonUtility.FromJson , except that instead of creating a new object and loading the JSON data into it, it loads the JSON data into an existing object. This allows you to update the values stored in classes or...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ec308e21e891
unity_docs
physics
What is `Physics2D.jobOptions` in Unity? Explain its purpose and usage.
Physics2D.jobOptions public static PhysicsJobOptions2D jobOptions ; Description A set of options that control how physics operates when using the job system to multithread the physics simulation. Multithreaded physics is currently an experimental feature. As such, many options are exposed that allow performan...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_bcf8c155a3f3
unity_docs
scripting
Show me a Unity C# example demonstrating `VersionControl.Provider`.
ntrol Description This class provides access to the version control API. Note that the Version Control window is refreshed after every version control operation. This means that looping through multiple assets and doing an individual operation on each (i.e. Checkout) will be slower than passing an AssetList conta...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_99aed390d71f
unity_docs
scripting
What is `SystemLanguage.Icelandic` in Unity? Explain its purpose and usage.
SystemLanguage.Icelandic Description Icelandic. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the Icelandic language if (Application.systemLanguage == SystemLanguage.Icelandic) { //Outputs into console that the system ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ffe5896815b0
unity_docs
scripting
Show me a Unity C# example demonstrating `RenderSettings.flareStrength`.
RenderSettings.flareStrength public static float flareStrength ; Description The intensity of all flares in the Scene. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { RenderSettings.flareStrength = 0.2f; } } ``` Additional resources: LensFlare component .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.