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_500250ab9022
unity_docs
editor
What is `Search.SearchProvider.trackSelection` in Unity? Explain its purpose and usage.
SearchProvider.trackSelection public Action<SearchItem,SearchContext> trackSelection ; Description Called when the selection changed and can be tracked. ```csharp [SearchItemProvider] internal static SearchProvider CreateProvider() { return new SearchProvider("example_tree", "Trees") { filterId = "tree:", p...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6ed1c1995b4c
unity_docs
performance
What is `Search.QueryGraphOptimizationOptions.swapFilterFunctionsToRightHandSide` in Unity? Explain its purpose and usage.
QueryGraphOptimizationOptions.swapFilterFunctionsToRightHandSide public bool swapFilterFunctionsToRightHandSide ; Description Swaps filter functions to the right-hand side of combining operations (i.e. "And", "Or"). Useful if those filter operations are slow.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b43bbb7f0772
unity_docs
editor
What is `EditorApplication.SetTemporaryProjectKeepPath` in Unity? Explain its purpose and usage.
EditorApplication.SetTemporaryProjectKeepPath Declaration public static void SetTemporaryProjectKeepPath (string path ); Parameters Parameter Description path The path that the current temporary project should be relocated to when closing it. Description Sets the path that Unity should store the current te...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e19c8c47f73b
unity_docs
math
Show me a Unity C# example demonstrating `Mesh.MeshDataArray`.
th multiple meshes at the same time. It is thus much more efficient to use a single MeshDataArray/ struct for multiple meshes, than to operate on several individual structs. It is important to dispose of a MeshDataArray struct once you have finished working with it. Use Dispose to dispose of the struct when you h...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dde9967eb964
unity_docs
rendering
Show me a Unity C# example demonstrating `GL.wireframe`.
GL.wireframe public static bool wireframe ; Description Should rendering be done in wireframe? Turning on wireframe mode will affect all objects rendered after the call, until you turn wireframe back off. In the Unity editor, wireframe mode is always turned off before repainting any window. Note that some platf...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_94c216cb2541_doc_11
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
The prefix added to every feedback if `feedbackPrefixEnabled` is enabled. Signature: ```csharp public string feedbackPrefixText = DEFAULT_FEEDBACK_PREFIX; ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_9f5de686896e
unity_docs
ui
What is `UIElements.VisualElement.TryGetBinding` in Unity? Explain its purpose and usage.
VisualElement.TryGetBinding Declaration public bool TryGetBinding ( UIElements.BindingId bindingId , out UIElements.Binding binding ); Parameters Parameter Description bindingId The binding ID. binding When this method returns, contains the binding associated with the target property, if it exists; oth...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b611a7c1213b
unity_docs
rendering
In Unity's 'Safe Mode', what is 'Common causes of compilation errors' and how does it work?
Some common scenarios that might result in you encountering compilation errors occur when you: Upgrade a project from an older version of Unity to a newer version. Open a project in a different version of Unity from the one it was created in. Open a project with a missing package , or an incorrect version of a package....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_99686779256c
unity_docs
xr
What is `HDROutputSettings` in Unity? Explain its purpose and usage.
HDROutputSettings class in UnityEngine / Implemented in: UnityEngine.CoreModule Description Provides access to HDR display settings and information. Static Properties Property Description displays The list of currently connected displays with possible HDR availability. main The HDROutputSettings for the mai...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e4b388e2eb51
unity_docs
physics
What is `ArticulationBody.SetDriveTargets` in Unity? Explain its purpose and usage.
ArticulationBody.SetDriveTargets Declaration public void SetDriveTargets (List<float> targets ); Parameters Parameter Description targets Supplied list of floats used to set the joint drive targets. Description Assigns articulation body joint drive targets for the entire hierarchy of bodies. This sets j...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_938b3b03e198
github
scripting
Write a Unity C# MonoBehaviour script called Singleton Monobehaviour
```csharp using SiegfriedWagner.Singletons.Internal; using UnityEngine; namespace SiegfriedWagner.Singletons { /// <summary> /// A singleton inheriting from MonoBehaviour. /// </summary> /// <typeparam name="T">Class type.</typeparam> public abstract class SingletonMonoBehaviour<T> : MonoBehaviour where T : S...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_70cc8c53b210
unity_docs
rendering
What is `Rendering.RayTracingSubMeshFlags.Enabled` in Unity? Explain its purpose and usage.
RayTracingSubMeshFlags.Enabled Description The sub-mesh is provided as input to a RayTracingAccelerationStructure build operation. Unity does not consider a sub-mesh opaque if this is the only flag it has, and allows the GPU to invoke a user-defined any hit shader when a ray intersects with that sub-mesh. This ca...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7376fb420524
unity_docs
scripting
What is `Experimental.GraphView.GraphViewToolWindow.OnGraphViewChanged` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphViewToolWindow.OnGraphViewChanged Declaration protected void OnGraphViewChanged (); Description Callback invoked when the GraphView has changed.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dbbf91ebafeb
unity_docs
editor
What is `Build.IActiveBuildTargetChanged` in Unity? Explain its purpose and usage.
IActiveBuildTargetChanged interface in UnityEditor.Build Implements interfaces: IOrderedCallback Description Implement this interface to receive a callback after the active build platform has changed. Additional resources: OnActiveBuildTargetChanged . Public Methods Method Description OnActiveBuildTargetCha...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d68f72664a45
unity_docs
audio
What is `AudioRolloffMode` in Unity? Explain its purpose and usage.
AudioRolloffMode enumeration Description Rolloff modes that a 3D sound can have in an audio source. Properties Property Description Logarithmic Use this mode when you want a real-world rolloff. Linear Use this mode when you want to lower the volume of your sound over the distance. Custom Use this when you wan...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a3ed7ff9559e
unity_docs
rendering
Show me a Unity C# example demonstrating `Camera.Render`.
entual image filters. This is used for taking precise control of render order. To make use of this feature, create a camera and disable it. Then call Render on it. You are not able to call the Render function from a camera that is currently rendering. If you wish to do this create a copy of the camera, and make it matc...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_27ae51d57306
unity_docs
animation
Give me an overview of the `AvatarIKHint` class in Unity.
AvatarIKHint enumeration Description IK Hint. Used to set and get IK weights and position. Additional resources: Animator.GetIKHintPosition , Animator.GetIKHintPositionWeight , Animator.SetIKHintPosition , and Animator.SetIKHintPositionWeight . Properties Property Description LeftKnee The left knee IK hint...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_08fdac8493cb
unity_docs
input
What is `UIElements.MouseMoveEvent.ctor` in Unity? Explain its purpose and usage.
MouseMoveEvent Constructor Declaration public MouseMoveEvent (); Description Constructor. Avoid creating new event instances. Instead, use GetPooled() to get an instance from a pool of reusable event instances.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_6e6c7d07c83e_doc_1
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Gets or sets the prefab for MonoBehaviour-based objects in this pool. Signature: ```csharp public GameObject MonoPrefab ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
local_sr_82c1a0b605f0
unity_docs
editor
What is `ShortcutManagement.KeyCombination` in Unity? Explain its purpose and usage.
KeyCombination struct in UnityEditor.ShortcutManagement Description Represents a combination of a non-modifier key and zero or more modifier keys. Properties Property Description action Is the action key modifier part of the key combination? The action key represents the Control key on Windows and Linux, and t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0548d73fb50a
unity_docs
audio
Show me a Unity C# example demonstrating `AudioLowPassFilter.lowpassResonanceQ`.
AudioLowPassFilter.lowpassResonanceQ public float lowpassResonanceQ ; Description Determines how much the filter's self-resonance is dampened. Higher Lowpass Resonance Q indicates a lower rate of energy loss i.e. the oscillations die out more slowly. Lowpass resonance Q value goes from 1.0 to 10.0. Default = 1...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ec5c806eb637
unity_docs
rendering
What is `Search.SearchService.ShowPicker` in Unity? Explain its purpose and usage.
SearchService.ShowPicker Declaration public static Search.ISearchView ShowPicker ( Search.SearchContext context , Action<SearchItem,bool> selectHandler , Action<SearchItem> trackingHandler , Func<SearchItem,bool> filterHandler , IEnumerable<SearchItem> subset , string title , float itemSize , float defaul...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f0e01d9962f4
unity_docs
editor
Show me a Unity C# example demonstrating `Callbacks.RunAfterAssemblyAttribute`.
s a dependency graph and uses topological sorting to ensure that all dependencies are run in sequence based on their dependencies. If callbacks dependencies are not present in the project then the instruction will be ignored during the generation of the dependency graph. Note: Defining callback dependencies is current...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f302e3471ec0
unity_docs
math
What is `Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.NewStaticSafetyId` in Unity? Explain its purpose and usage.
AtomicSafetyHandle.NewStaticSafetyId Declaration public static int NewStaticSafetyId (byte* ownerTypeNameBytes , int byteCount ); Parameters Parameter Description ownerTypeNameBytes The name of the scripting type that owns the AtomicSafetyHandle , to be embedded in error messages involving the handle. Thi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2dcd47d301e2
unity_docs
rendering
In Unity's 'Navigating the Profiler window', what is 'Increasing frame count' and how does it work?
By default, the Profiler records and keeps the last 300 frames of your application, and displays detailed information about every frame. To increase the default frame count: Open the Preferences window ( Unity > Settings ) Select the Profiler preferences ( Analysis > Profiler ) Enter a value for the Frame Count , up to...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_08b1d97227c7
unity_docs
rendering
What is `ParticleSystem.ShapeModule` in Unity? Explain its purpose and usage.
ShapeModule struct in UnityEngine / Implemented in: UnityEngine.ParticleSystemModule Description Script interface for the ShapeModule. Configures the initial positions and directions of particles. Additional resources: ParticleSystem , ParticleSystem.shape . Properties Property Description alignToDirecti...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0a1da7f797ed
unity_docs
editor
What is `AssetDatabase.GetAssetPathsFromAssetBundleAndAssetName` in Unity? Explain its purpose and usage.
AssetDatabase.GetAssetPathsFromAssetBundleAndAssetName Declaration public static string[] GetAssetPathsFromAssetBundleAndAssetName (string assetBundleName , string assetName ); Parameters Parameter Description assetBundleName The name of the AssetBundle. assetName The name of the asset. Description Get ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7906745c326c
unity_docs
physics
Show me a Unity C# example demonstrating `Handheld.Vibrate`.
Handheld.Vibrate Declaration public static void Vibrate (); Description Triggers device vibration. Note: Duration of vibration is determined by the operating system of the target platform. To configure advanced vibration settings, use platform specific libraries. ```csharp using UnityEngine; using System.Co...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3158a10f53c5
unity_docs
physics
What is `QueryParameters.Default` in Unity? Explain its purpose and usage.
QueryParameters.Default public static QueryParameters Default ; Description Create a default QueryParameters struct. LayerMask is set to default raycasting mask, hitMultipleFaces and hitBackfaces are set to false, hitTriggers is set to use global parameter Physics.queriesHitTriggers .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5d52adde1ce3
unity_docs
rendering
What is `Texture2D.ignoreMipmapLimit` in Unity? Explain its purpose and usage.
Texture2D.ignoreMipmapLimit public bool ignoreMipmapLimit ; Description This property causes a texture to ignore all texture mipmap limit settings. When this property is true , Unity always uploads the texture to the GPU at full resolution, disregarding the active quality setting's global texture mipmap limit ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_d585d54188c4_doc_7
github
scripting
What does `GetRefreshedPackageData` do in this Unity script? Explain its purpose and signature.
Retrieve, update the cache and return the updated data for a previously cached package Signature: ```csharp public static async Task<APIResult> GetRefreshedPackageData(string packageId) ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b9929769add4
unity_docs
rendering
In Unity's 'Android requirements and compatibility', what is 'Android support' and how does it work?
Unity supports Android 6.0 “Marshmallow” (API level 23) and above. For more information, refer to AndroidSdkVersions . You can now target newer Android API levels in the following Unity versions: Unity 6000.0.18f1 and later versions support API level 35 Unity 6000.0.46f1 and later versions support API level 36
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ebbf37f3bad5
unity_docs
rendering
What is `XR.InputDevice.characteristics` in Unity? Explain its purpose and usage.
InputDevice.characteristics public XR.InputDeviceCharacteristics characteristics ; Description Read Only. A bitmask of enumerated flags describing the characteristics of this InputDevice. Use Characteristics to determine whether an InputDevice has specific features or capabilities. For example, if the set...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_125f3b479829
unity_docs
scripting
What is `AssetBundle.Unload` in Unity? Explain its purpose and usage.
AssetBundle.Unload Declaration public void Unload (bool unloadAllLoadedObjects ); Parameters Parameter Description unloadAllLoadedObjects Determines whether the current instances of objects loaded from the AssetBundle will also be unloaded. Description Unloads an AssetBundle freeing its data. When unload...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_824b9da5c8f8
unity_docs
editor
Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.AddFile`.
ee.Group tree is not supported. Returns string The GUID of the added file. You can use it later, for example, to add the file for building to targets. Description Adds a new file reference to the list of known files. The group structure is automatically created to correspond to the project path. To add the fi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_bb517467cf1a
unity_docs
physics
In Unity's 'Triggers module reference', what is 'Properties' and how does it work?
For some properties in this section, you can use different modes to set their value. For information on the modes you can use, refer to Vary Particle System properties over time . Property Description Inside Specifies the action the Particle System takes for particles every frame they are inside a Collider. The options...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0e6e8ee9c747
unity_docs
physics
Show me a Unity C# example demonstrating `Collider2D.OnTriggerStay2D`.
e another object is within a trigger collider attached to this object (2D physics only). Further information about the other collider is reported in the Collider2D parameter passed during the call. Notes: Trigger events will be sent to disabled MonoBehaviours, to allow enabling Behaviours in response to collisions. Ad...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_598e916f23a8
unity_docs
editor
In Unity's 'Android Logcat', what is 'Description' and how does it work?
Android Logcat package provides support for: - Android log messages - Android application memory statistics - Input injection - Android Screen Capture - Android Screen Recorder - Stacktrace Utility Click the ‘View documentation’ link above for more information. The window can be accessed in Unity Editor via ‘Window > A...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f382d74c8a02
unity_docs
rendering
What is `MipmapLimitDescriptor.ctor` in Unity? Explain its purpose and usage.
MipmapLimitDescriptor Constructor Declaration public MipmapLimitDescriptor (bool useMipmapLimit , string groupName ); Parameters Parameter Description useMipmapLimit Enable or disable mipmap limit effects for a Texture. groupName The TextureMipmapLimitGroup to use the mipmap limit of. Description Crea...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c44460d2da37
unity_docs
scripting
What is `UIElements.ScrollerVisibility` in Unity? Explain its purpose and usage.
ScrollerVisibility enumeration Description Options for controlling the visibility of scroll bars in the ScrollView . Properties Property Description Auto Displays a scroll bar only if the content does not fit in the scroll view. Otherwise, hides the scroll bar. AlwaysVisible The scroll bar is always ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_14b767f81517
unity_docs
input
In Unity's 'Input in Web', what is 'Map the controller' and how does it work?
The Web game controller mapping for the old input system aligns with the W3 spec , where the button mapping layout is laid out as follows: Buttons Description buttons[0] Bottom button in right cluster = CROSS (X) buttons[1] Right button in right cluster = CIRCLE buttons[2] Left button in right cluster = SQUARE buttons[...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b2abdbcbcdfe
unity_docs
editor
What is `iOS.Xcode.PBXProject.AddCopyFilesBuildPhase` in Unity? Explain its purpose and usage.
PBXProject.AddCopyFilesBuildPhase Declaration public string AddCopyFilesBuildPhase (string targetGuid , string name , string dstPath , string subfolderSpec ); Parameters Parameter Description targetGuid The GUID of the target, such as the one returned by GetUnityFrameworkTargetGuid . name The name of t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e5e6d15df540
unity_docs
math
What is `Tilemaps.ITilemap.GetColor` in Unity? Explain its purpose and usage.
ITilemap.GetColor Declaration public Color GetColor ( Vector3Int position ); Parameters Parameter Description position Position of the Tile on the Tilemap . Returns Color Color of the Tile at the XYZ coordinate. Description Gets the color of a Tile given the XYZ coordinates of a cell in the Til...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a9050d77d95f
unity_docs
editor
In Unity's 'Manage Asset Store packages in the Editor', what is 'Using Asset Store packages' and how does it work?
To use an Asset Store package, perform the following steps: Open the Unity Package Manager window Select the My Assets context to view the list of available Asset Store packages . You can also search by name for Asset Store packages. The method to add the package to your project depends on the type you’ve downloaded: F...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_df695626eaeb
unity_docs
scripting
What is `IMGUI.Controls.TreeView.AfterRowsGUI` in Unity? Explain its purpose and usage.
TreeView.AfterRowsGUI Declaration protected void AfterRowsGUI (); Description This is called after all rows have their RowGUI called. Can be used together with BeforeRowsGUI to postprocess items or rendering.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a5efce1b8358
unity_docs
rendering
What is `Rendering.BuiltinRenderTextureType.CameraTarget` in Unity? Explain its purpose and usage.
BuiltinRenderTextureType.CameraTarget Description Target texture of currently rendering camera. This is the render target where the current camera would be ultimately rendering into. The render target that is active right now might be different (e.g. during light shadow map rendering, or right after another Comman...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d66a05606aea
unity_docs
scripting
Show me a Unity C# example demonstrating `ArticulationBody.GetPointVelocity`.
ArticulationBody.GetPointVelocity Declaration public Vector3 GetPointVelocity ( Vector3 worldPoint ); Description Gets the velocity of the articulation body at the specified worldPoint in global space. GetPointVelocity takes the angularVelocity of the articulation body into account when calculating the v...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5dabb6736f68
unity_docs
xr
What is `Rendering.AsyncGPUReadbackRequest.WaitForCompletion` in Unity? Explain its purpose and usage.
AsyncGPUReadbackRequest.WaitForCompletion Declaration public void WaitForCompletion (); Description Waits for completion of the request. Calling AsyncGPUReadbackRequest.done on the request after this call, will always result in true whether the request has completed successfully or not. AsyncGPUReadbackReque...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7fa87303518f
unity_docs
scripting
Give me an overview of the `BrokenPrefabAsset` class in Unity.
BrokenPrefabAsset class in UnityEditor / Inherits from: DefaultAsset Description BrokenPrefabAsset is for Prefab files where the file content cannot be loaded without errors. A Prefab Asset can be broken if the content of the file invalid or if it is a Variant Prefab where the parent Prefab is either invalid or...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cd7e12856afc
unity_docs
scripting
What is `Unity.Android.Gradle.Manifest.Permission` in Unity? Explain its purpose and usage.
Permission class in Unity.Android.Gradle.Manifest / Inherits from: Unity.Android.Gradle.Manifest.BaseElement Description The C# definition of the <permission> Android Manifest element. For more information about the element, see Android's documentation: Permission element Properties Property Description...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_42b9021e8f00
unity_docs
editor
What is `PlayerSettings.WSA.mediumTileShowName` in Unity? Explain its purpose and usage.
PlayerSettings.WSA.mediumTileShowName public static bool mediumTileShowName ; Description The application name to display on the Medium Tile . In the Editor, Unity displays this under Tile section in UWP Player Settings . Note : If you do not set a logo image for this tile size , Unity ignores this prope...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b615060b3549
unity_docs
physics
What are the parameters of `PhysicsScene2D.OverlapBox` in Unity?
Returns Collider2D The collider overlapping the box. Description Checks a box against Colliders in the PhysicsScene2D, returning the first intersection only. An "OverlapBox" is conceptually like looking at the Scene through a box shape to determine what can be seen. Any Collider2D seen can be detected and reported. Thi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_e08c5e1f1bec
github
scripting
Write a Unity C# script called Mesh Drawer
```csharp using System.Collections.Generic; using UnityEngine; public class MeshDrawer { private Triangulator triangulator; private List<int> triangles; public MeshDrawer() { this.triangulator = new Triangulator(); this.triangles = new List<int>(); } public Mesh GetMe...
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_man_bbde6f7b50f4
unity_docs
rendering
In Unity's 'Deferred rendering path in the Built-In Render Pipeline', what is 'Requirements' and how does it work?
It requires a graphics card with Multiple Render Targets (MRT), Shader Model 3.0 (or later) and support for Depth render textures . Most PC graphics cards made after 2006 support deferred shading, starting with GeForce 8xxx, Radeon X2400, Intel G45. On mobile, deferred shading is supported on all devices running at lea...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_fbf3f654329a
unity_docs
animation
What is `AnimatorTransitionInfo.nameHash` in Unity? Explain its purpose and usage.
AnimatorTransitionInfo.nameHash public int nameHash ; Description The simplified name of the Transition. Format is "CURRENT_STATE -> NEXT_STATE". The hash is generated using Animator.StringToHash .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dd08a3fdc465
unity_docs
ui
What is `EditorWindow.DiscardChanges` in Unity? Explain its purpose and usage.
EditorWindow.DiscardChanges Declaration public void DiscardChanges (); Description Discards unsaved changes to the contents of the window. Override DiscardChanges() to discard unsaved work when a window is closed. The Editor calls this method internally when the user closes the window. After the Editor calls t...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cb7abe919aa4
unity_docs
rendering
Show me a Unity C# example demonstrating `RenderTexture.Create`.
xture is already created. The initial contents of a newly created render texture are undefined. On some platforms and APIs the contents will default to black, but you shouldn't depend on this. You can use LoadStoreActionDebugModeSettings to highlight undefined areas of the display, to help you debug rendering problem...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1acb4d30e684
unity_docs
editor
In Unity's 'Include additional files in a build', what is 'StreamingAssets folder limitations' and how does it work?
At runtime the StreamingAssets location is read-only and you can’t modify or write new files to it. To write files, you can use Application.persistentDataPath instead. Don’t put Unity files (such as.unity ,.prefab , and.asset ) into the StreamingAssets folder. These file types must be processed by a Player or AssetBund...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_916fd3a8f939
unity_docs
scripting
Show me a Unity code example for 'Vector3IntField'.
lets users enter a Vector3Int value. Note : To align a Vector3IntField with other fields in an Inspector window, simply apply the.unity-base-field__aligned USS class to it. For more information, refer to BaseField . ## Create a Vector3IntField You can create a Vector3IntField with UI Builder, UXML, and C#. The follow...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_22bb260bed27
unity_docs
ui
What are the parameters of `EditorPrefs.GetFloat` in Unity?
Returns float The float value stored in the preference file or the defaultValue id the requested float does not exist. Description Returns the float value corresponding to key if it exists in the preference file. If GetFloat does not exist in the Preference file the defaultValue will be returned. ```c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_0f61f94af05f
unity_docs
scripting
Explain 'Publish a UPM package on the Asset Store' in Unity.
You can upload your own assets to the Asset Store in the UPM format, which supports versioning, package dependencies, and more. Topic Description UPM package Asset Store publishing workflow Overview of the UPM publishing workflow and prerequisites for creating UPM packages . Enroll as a UPM publisher on the Publisher P...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_676bd139179c
unity_docs
xr
What is `Rendering.BatchCullingViewType.SelectionOutline` in Unity? Explain its purpose and usage.
BatchCullingViewType.SelectionOutline Description The Scene view is requesting culling so that it can render the selection outline of the objects currently picked. Unity calls the OnPerformCulling() with this enum value when rendering the selection outline.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_3d18c7cebb41
unity_docs
scripting
Explain 'Achievements Building Block' in Unity.
The Achievements Unity Building Block demonstrates an achievement system that uses Unity Gaming Services (UGS). The achievements are synchronized and persist in the Unity cloud, which means you can access them on any other device or platform that runs the same project. The Achievements Building Block uses the following...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d6015acd5c1e
unity_docs
scripting
Show me a Unity C# example demonstrating `ParticleSystem.ExternalForcesModule.influenceCount`.
ParticleSystem.ExternalForcesModule.influenceCount public int influenceCount ; Description The number of Force Fields explicitly provided to the influencers list. When influenceFilter is set to ParticleSystemGameObjectFilter.List then only Force Fields in the influencers list affect the Particle System. Ad...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_05e1b4239ea7
unity_docs
scripting
Show me a Unity code example for 'Execute Static API methods'.
c API search provider to execute Unity’s parameterless public static API methods and properties. 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 syntax Provider token: api: Query example: Searches for metho...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_319d69f6f96c
unity_docs
rendering
What is `StandaloneRenderResize` in Unity? Explain its purpose and usage.
StandaloneRenderResize enumeration Description Enum used to determine if a Canvas should be resized when a manual Camera.Render call is performed. Properties Property Description Enabled Resize the Canvas when a manual Camera.Render call is performed. Disabled Do not resize the Canvas when a manual Camera.Rend...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a257cf0c6361
unity_docs
physics
In Unity's '2D preferences reference', what is '2D physics contacts settings' and how does it work?
Set the colors used for the following UI elements. Property Function Contact Color Set the color of the Collider 2D Gizmo’s contacts which are displayed as a directional arrow starting at the contact point in the direction of the contact normal. Contact Arrow Scale Set the scale of the Collider 2D contacts arrow. Large...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e10e7193143d
unity_docs
rendering
What is `Rendering.LocalKeywordSpace` in Unity? Explain its purpose and usage.
LocalKeywordSpace struct in UnityEngine.Rendering / Implemented in: UnityEngine.CoreModule Description Represents the local keyword space of a Shader or ComputeShader . Shader keywords determine which shader variants Unity uses. For information on working with local shader keywords and global shader keyword...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2a2763cdad17
unity_docs
scripting
What is `Application.genuine` in Unity? Explain its purpose and usage.
Application.genuine public static bool genuine ; Description Returns false if application is altered in any way after it was built. Otherwise returns true. Note : Use Application.genuineCheckAvailable along with Application.genuine to verify app integrity. Accessing the Application.genuine property is a r...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e6d0ef29a582
unity_docs
rendering
What is `UIElements.MeshGenerationContext.DrawMesh` in Unity? Explain its purpose and usage.
MeshGenerationContext.DrawMesh Declaration public void DrawMesh (NativeSlice<Vertex> vertices , NativeSlice<ushort> indices , Texture texture ); Parameters Parameter Description vertices The vertices to be drawn. All referenced vertices must be initialized. indices The triangle list indices. Must be a ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5f3973efce45
unity_docs
physics
Show me a Unity C# example demonstrating `PhysicsShape2D.vertexCount`.
PhysicsShape2D.vertexCount public int vertexCount ; Description The total number of vertices used to represent the shape type . See PhysicsShapeType2D for details on how each type uses different quantities of vertices to represent itself. ```csharp using UnityEngine; using UnityEngine.Assertions;public clas...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_475e5a256b86
unity_docs
rendering
Explain 'Paint Holes' in Unity.
Use the Paint Holes tool to hide portions of your Terrain . It allows you to paint openings in the Terrain for formations such as caves and cliffs. To access the tool, click the Paint Terrain icon, and select Paint Holes from the drop-down menu. To access Paint Holes from an overlay: In the Terrain Tools overlay, selec...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_662f71ebd7ac
unity_docs
physics
What is `Profiling.Profiler.GetMonoUsedSizeLong` in Unity? Explain its purpose and usage.
Profiler.GetMonoUsedSizeLong Declaration public static long GetMonoUsedSizeLong (); Returns long Returns a long integer value of the memory in use. Description Gets the allocated managed memory for live objects and non-collected objects. This function returns the amount of allocated managed-memory for all...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_3d724b335d8b
unity_docs
scripting
Explain 'Android application size restrictions' in Unity.
Digital distribution services often have application size restrictions which means that larger applications must split their assets up. This section of the documentation explains how to overcome application size restrictions for each publishing format. Topic Description Introduction to asset splitting Understand the op...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b83515535930
unity_docs
editor
What are the parameters of `iOS.Xcode.PBXProject.AddBuildConfig` in Unity?
Description Creates a new set of build configurations for all targets in the project. The number and names of the build configurations is a project-wide setting. Each target has the same number of build configurations and the names of these build configurations is the same. The created configurations are initially empt...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a2f628f7d0b0
unity_docs
physics
What are the parameters of `PhysicsScene.SphereCast` in Unity?
Returns bool True when the sphere sweep intersects any collider, otherwise false. Description Casts a sphere along a ray and returns detailed information on what was hit. Additional resources: Physics.SphereCast . Declaration public int SphereCast ( Vector3 origin , float radius , Vector3 direction , RaycastHit[] resul...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4dfdeaaf6868
unity_docs
rendering
What is `ParticleSystem.Particle.GetMeshIndex` in Unity? Explain its purpose and usage.
ParticleSystem.Particle.GetMeshIndex Declaration public int GetMeshIndex ( ParticleSystem system ); Parameters Parameter Description system The Particle System from which this particle was emitted. Returns int The index of the mesh used for rendering the particle. Description Calculate the Mesh ind...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_67953727677e
unity_docs
scripting
What is `PlayerSettings.GetArchitecture` in Unity? Explain its purpose and usage.
PlayerSettings.GetArchitecture Declaration public static int GetArchitecture ( Build.NamedBuildTarget buildTarget ); Parameters Parameter Description buildTarget The NamedBuildTarget . Returns int An integer value associated with the architecture of the build target. 0 - None, 1 - ARM64, 2 - Universal...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2b3fae32fa27
unity_docs
math
Show me a Unity C# example demonstrating `Quaternion.operator_multiply`.
uaternion. rhs Right-hand side quaternion. Description Combines rotations lhs and rhs . Rotating by the product lhs * rhs is the same as applying the two rotations in sequence: lhs first and then rhs , relative to the reference frame resulting from lhs rotation. Note that this means rotations are not c...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_fcfeaa032535
unity_docs
scripting
In Unity's 'AssetBundle caching', what is 'Cache version hash' and how does it work?
The AssetBundle cache uses hash values as the version of an AssetBundle. You can provide a 128-bit hash ( Hash128 ) or 32-bit uint value to distinguish versions. This can be a build-generated hash, a numeric version, or a custom value. It’s crucial to update this version when a new AssetBundle build is released so devi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_67db6eedd1d9
unity_docs
physics
In Unity's 'Introduction to physics articulations', what is 'Articulation setup vs. regular joints' and how does it work?
In the most basic scenario to get two physical bodies linked with a single joint, you can either build an articulation or use regular joints, as described in the following table. Unity component Articulation setup Setup with regular joint Hierarchy GameObject + Articulation Body GameObject + Articulation Body GameObjec...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e4650fd8220a
unity_docs
rendering
What is `Build.Content.ContentBuildInterface.GetGlobalUsageFromGraphicsSettings` in Unity? Explain its purpose and usage.
ContentBuildInterface.GetGlobalUsageFromGraphicsSettings Declaration public static Build.Content.BuildUsageTagGlobal GetGlobalUsageFromGraphicsSettings (); Description Returns the global usage information calculated by the Shader Stripping section of Graphics Settings. Internal use only. See note on ContentB...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_39793fa70054
unity_docs
rendering
In Unity's 'Font Asset properties reference', what is 'Generation Settings' and how does it work?
You can change the generation settings for a font asset. For dynamic or dynamic OS font assets, you can change the settings directly in the Inspector Window without regenerating the atlas. To update the generation settings for a static font asset, select Update Atlas Texture , and make changes in the Font Asset Creator...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ed67d42e4c5d
unity_docs
scripting
What is `WaitUntil.ctor` in Unity? Explain its purpose and usage.
WaitUntil Constructor Declaration public WaitUntil (Func<bool> predicate ); Parameters Parameter Description predicate Supplied delegate will be evaluated each frame after MonoBehaviour.Update and before MonoBehaviour.LateUpdate until delegate returns true . Description Initializes a yield instruction...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6e35e55c6768
unity_docs
scripting
What is `Android.AndroidLocale.language` in Unity? Explain its purpose and usage.
AndroidLocale.language public string language ; Description Indicates the language as an ISO code. For example, en (English), de (German). For more information, refer to the the Android developer documentation on Locale .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8ac7f43ab82d
unity_docs
rendering
What is `MaterialEditor.OnInspectorGUI` in Unity? Explain its purpose and usage.
MaterialEditor.OnInspectorGUI Declaration public void OnInspectorGUI (); Description Implement specific MaterialEditor GUI code here. If you want to simply extend the existing editor call the base OnInspectorGUI () before doing any custom GUI code.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_271016758b38
unity_docs
scripting
In Unity's 'Parent Constraint component', what is 'Constraint Settings' and how does it work?
Property Description Lock Toggle to let the Constraint move and rotate the GameObject. Disable this property to edit the position and rotation of this GameObject. You can also edit the Rotation At Rest, Position At Rest, Position Offset, and Rotation Offset properties. If Is Active is enabled, the Constraint updates th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_73c0f20310f3
unity_docs
rendering
What are the parameters of `ParticleSystem.SubEmittersModule.SetSubEmitterEmitProbability` in Unity?
Description Sets the probability that the sub-emitter emits particles. Accepts a value from 0 to 1, where 0 is never and 1 is always. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { // A simple particle material with no texture. var particleMaterial = new Materi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8188c3bcebd5
unity_docs
scripting
Show me a Unity C# example demonstrating `GUI.SetNextControlName`.
GUI.SetNextControlName Declaration public static void SetNextControlName (string name ); Description Set the name of the next control. This makes the following control be registered with a given name. Additional resources: GetNameOfFocusedControl , FocusControl . ```csharp // Sets the login textfield with "...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6ee8fed3a71d
unity_docs
scripting
What is `RenderMode.WorldSpace` in Unity? Explain its purpose and usage.
RenderMode.WorldSpace Description Render using any Camera in the Scene that can render the layer. ```csharp //Attach this script to your Canvas GameObjectusing UnityEngine;public class Example : MonoBehaviour { enum RenderModeStates { camera, overlay, world }; RenderModeStates m_RenderModeStates; Canvas m_Canva...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f24775a2be99
unity_docs
editor
What is `Input.GetPenEvent` in Unity? Explain its purpose and usage.
Input.GetPenEvent Declaration public static PenData GetPenEvent (int index ); Returns PenData Pen event details in the struct. Description Returns the PenData for the pen event at the given index in the pen event queue. Note : This API is part of the legacy Input Manager. The recommended best practic...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ff6974b73f9f
unity_docs
scripting
What is `SceneManagement.EditorSceneManager.SceneOpenedCallback` in Unity? Explain its purpose and usage.
EditorSceneManager.SceneOpenedCallback Declaration public delegate void SceneOpenedCallback ( SceneManagement.Scene scene , SceneManagement.OpenSceneMode mode ); Parameters Parameter Description scene The Scene that was opened. mode The mode used to open the Scene. Description Callbacks of this type ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_94fb74009aa6
unity_docs
scripting
What is `Physics.ComputePenetration` in Unity? Explain its purpose and usage.
Physics.ComputePenetration Declaration public static bool ComputePenetration ( Collider colliderA , Vector3 positionA , Quaternion rotationA , Collider colliderB , Vector3 positionB , Quaternion rotationB , out Vector3 direction , out float distance ); Parameters Parameter Description coll...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1f5ec8b6b624
unity_docs
input
In Unity's 'Create a custom control', what is 'Style custom controls with USS' and how does it work?
Use USS to customize the look of a custom control the same way as a built-in control. You can also create USS custom properties to style a custom control. Note : The Inspector window in the UI Builder doesn’t show USS custom properties. To edit USS custom properties, use a text editor to edit your USS file directly. To...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8c6c6d490c3f
unity_docs
math
What is `UIElements.Columns.CopyTo` in Unity? Explain its purpose and usage.
Columns.CopyTo Declaration public void CopyTo (Column[] array , int arrayIndex ); Parameters Parameter Description array The array to copy to. arrayIndex The starting index. Description Copies the elements of the current collection to a Array, starting at the specified index.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_043b57a7dea7
unity_docs
editor
Give me an overview of the `Tool` class in Unity.
Tool enumeration Description Which tool is active in the editor. Properties Property Description View The view tool is active - Use Tools.viewTool to find out which view tool we're talking about. Move The move tool is active. Rotate The rotate tool is active. Scale The scale tool is active. Rect The rect to...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2aa737b37c53
unity_docs
scripting
What is `IMGUI.Controls.MultiColumnHeader.GetCellRect` in Unity? Explain its purpose and usage.
MultiColumnHeader.GetCellRect Declaration public Rect GetCellRect (int visibleColumnIndex , Rect rowRect ); Description Calculates a cell rect for a column and row using the visibleColumnIndex and rowRect parameters. Note that columns can be hidden so to get the visible column index from a column index us...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_b3f231d6a051
unity_docs
rendering
Explain 'Console window reference' in Unity.
The Console window displays errors, warnings, and other messages the Editor generates. These errors and warnings help you find issues in your project, such as script compilation errors. They also alert you to actions the Editor has taken automatically, such as replacing missing meta files, which could cause an issue so...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_864d0302c7fd
unity_docs
math
What is `Animations.TransformSceneHandle.GetLocalTRS` in Unity? Explain its purpose and usage.
TransformSceneHandle.GetLocalTRS Declaration public void GetLocalTRS ( Animations.AnimationStream stream , out Vector3 position , out Quaternion rotation , out Vector3 scale ); Parameters Parameter Description stream The AnimationStream that manages this handle. position The position of the trans...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a51a0d612dc1
unity_docs
rendering
What is `Rendering.FilteringSettings.ctor` in Unity? Explain its purpose and usage.
FilteringSettings Constructor Declaration public FilteringSettings (Nullable<RenderQueueRange> renderQueueRange = RenderQueueRange.all, int layerMask , uint renderingLayerMask , int excludeMotionVectorObjects ); Parameters Parameter Description renderQueueRange A RenderQueueRange struct that sets the v...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.