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_78200c3a1bb9 | unity_docs | xr | What is `ShaderUtil.allowAsyncCompilation` in Unity? Explain its purpose and usage. | ShaderUtil.allowAsyncCompilation
public static bool
allowAsyncCompilation
;
Description
When true, asynchronous Shader compilation is allowed at the current call site.
The Editor compiles Shader Variants on-demand, the first time rendering requires a particular Shader Variant. By default, asynchronous Shader co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_46ef39c6093c | unity_docs | editor | What is `MeshUtility.SetMeshCompression` in Unity? Explain its purpose and usage. | MeshUtility.SetMeshCompression
Declaration
public static void
SetMeshCompression
(
Mesh
mesh
,
ModelImporterMeshCompression
compression
);
Parameters
Parameter
Description
mesh
The mesh to set the compression mode for.
compression
The compression mode to set.
Description
Change the mesh compression s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6be3635195cf | unity_docs | scripting | Show me a Unity C# example demonstrating `Event.control`. | Event.control
public bool
control
;
Description
Is Control key held down? (Read Only)
Returns true if any Control key is held down.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void OnGUI()
{
Event e = Event.current;
if (e.control)
{
Debug.Log("Control was pressed.");
}
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e2460642eab3 | unity_docs | math | Show me a Unity C# example demonstrating `Vector2.operator_Vector2`. | Vector2.Vector3
Description
Converts a
Vector2
to a
Vector3
.
A
Vector2
can be implicitly converted into a
Vector3
. (The z is set to zero in the result).
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void Start()
{
Vector2 v2 = new Vector2(1, 2);
Debug.Log("Vector2 is: " + v2)... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae6d4aff3533 | unity_docs | scripting | What is `Profiling.HierarchyFrameDataView.columnTotalTime` in Unity? Explain its purpose and usage. | HierarchyFrameDataView.columnTotalTime
public static int
columnTotalTime
;
Description
The CPU time in milliseconds that Unity spends in a sample, including the time from child samples.
Note:
If
inverted mode
is active, for non-root items, this value represents the part of their parent's
columnTotalTime
th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_87946daec574 | unity_docs | editor | Explain 'Burst' in Unity. | com.unity.burst
## Description
Burst is a compiler that translates from IL/.NET bytecode to highly optimized native code using LLVM.
## Released for Unity
Package version 1.8.29 is released for Unity Editor version 6000.0. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_387e21af2040 | unity_docs | editor | Give me an overview of the `AndroidArchitecture` class in Unity. | AndroidArchitecture
enumeration
Description
Android CPU architecture.
```csharp
using UnityEditor.Build;
using UnityEditor;
using UnityEngine;public class AndroidArchitectureExample : MonoBehaviour
{
[MenuItem("Build/Android Architectures Example")]
public static void AndroidArchitectures()
{
PlayerSettings.Se... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d9a29b376b7d | unity_docs | rendering | What is `Rendering.FilteringSettings.batchLayerMask` in Unity? Explain its purpose and usage. | FilteringSettings.batchLayerMask
public uint
batchLayerMask
;
Description
Represents which
BatchRendererGroup
batch layers to enable for rendering.
Unity renders the object if you enable the
BatchFilterSettings.batchLayer
value in this bit mask. You can use
BatchFilterSettings.batchLayer
to specify a batc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4a956a9972fb | unity_docs | ui | Explain 'Assembly Definition Inspector window reference' in Unity. | Click on an Assembly Definition Asset to set the properties for an assembly in the Inspector window.
## Name
Property Description Name
The name for the assembly (without a file extension). Assembly names must be unique across the Project. Consider using a reverse-DNS naming style to reduce the chance of name conflict... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cf0fa18b0fe1 | unity_docs | scripting | What is `Mesh.MeshData.GetVertexBufferStride` in Unity? Explain its purpose and usage. | Mesh.MeshData.GetVertexBufferStride
Declaration
public int
GetVertexBufferStride
(int
stream
);
Parameters
Parameter
Description
stream
The vertex data stream index to check for.
Returns
int
Vertex data size in bytes in this stream, or zero if the stream is not present.
Description
Get the vertex bu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_25d831325339 | unity_docs | scripting | What is `UIElements.Experimental.StyleValues.borderTopLeftRadius` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StyleValues.borderTopLeftRadius
public float
borderTopLeftRadius
;
Description
The radius of the top-left corner when a rounded rectangle is drawn in the element's box. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13b3c28dd4ef | unity_docs | editor | What are the parameters of `Search.SearchIndexer.Start` in Unity? | Description Starts indexing entries. ```csharp
using System.Linq;
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
/// <summary>
/// SearchIndexer.Finish is always a threaded operation, meaning that all indexes
/// will be computed in a thread and Search will callback when the index is ready
/// to be u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c53a4d203973 | unity_docs | math | What is `SerializedProperty.vector3IntValue` in Unity? Explain its purpose and usage. | SerializedProperty.vector3IntValue
public
Vector3Int
vector3IntValue
;
Description
Value of a 3D integer vector property.
Additional resources:
propertyType
,
SerializedPropertyType.Vector3Int
,
Vector3Int
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8faac5cc0f5 | unity_docs | rendering | Show me a Unity C# example demonstrating `ShaderKeywordFilter.RemoveIfNotAttribute`. | RemoveIfNotAttribute
class in
UnityEditor.ShaderKeywordFilter
/
Inherits from:
ShaderKeywordFilter.FilterAttribute
Description
Remove the specified shader keywords from the build if the data field doesn't match the condition.
If the data field under
RemoveIf
doesn't match the value of
condition
, Unity remov... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82fc1cdf3146 | unity_docs | scripting | What is `Search.SearchUtils.CreateSceneResult` in Unity? Explain its purpose and usage. | SearchUtils.CreateSceneResult
Declaration
public static
Search.SearchItem
CreateSceneResult
(
Search.SearchContext
context
,
Search.SearchProvider
sceneProvider
,
GameObject
go
);
Parameters
Parameter
Description
context
Search context used to yield this item.
sceneProvider
Source search provider.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5d548f9a13e6 | unity_docs | physics | In Unity's 'Android External Tools reference', what is 'Android External Tools window' and how does it work? | Use the following settings to configure Android development tools for your project.
Setting Description JDK installed with Unity(recommended)
Indicates whether to use the recommended version of Java Development Kit (JDK) installed with Unity or the custom JDK installation. If enabled, the setting displays the path to t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6423833509d0 | unity_docs | rendering | In Unity's 'Lightmapping settings in the Lighting Settings Asset reference', what is 'Advanced Filtering settings' and how does it work? | Set Filtering to Advanced to manually configure options for each type of lightmap target. The target types are:
Direct
: Any light that arrives directly from a Light to a sensor (usually the Camera).
Indirect
: Any light that arrives indirectly from a Light to a sensor. This most commonly applies to light that reflects... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_62d74e7122e3 | unity_docs | rendering | What is `Rendering.CameraHDRMode` in Unity? Explain its purpose and usage. | CameraHDRMode
enumeration
Description
The HDR mode to use for rendering.
When HDR is enabled for the current
GraphicsTier
this selects the format to use for the HDR buffer. You can only set a Graphics Tier in the Built-in Render Pipeline.
Additional resources:
TierSettings.hdr
,
Camera.allowHDR
.
Properties
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9441a85a259e | unity_docs | physics | Show me a Unity C# example demonstrating `Collision2D.collider`. | Collision2D.collider
public
Collider2D
collider
;
Description
The incoming
Collider2D
involved in the collision with the
otherCollider
.
This collider is attached to the
Collision2D.rigidbody
.
Additional resources:
Collider2D
and
Rigidbody2D
.
```csharp
using UnityEngine;
using System.Collections;pub... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9ae8782edefb | unity_docs | scripting | What is `Transform.right` in Unity? Explain its purpose and usage. | Transform.right
public
Vector3
right
;
Description
The red axis of the transform in world space.
Manipulate a GameObject’s position on the X axis (red axis) of the transform in world space. Unlike
Vector3.right
,
Transform.right
moves the GameObject while also considering its rotation.
When a GameObject i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c76f40bf80c6 | unity_docs | scripting | What is `Rendering.BatchDrawCommandIndirect.indirectArgsBufferHandle` in Unity? Explain its purpose and usage. | BatchDrawCommandIndirect.indirectArgsBufferHandle
public
GraphicsBufferHandle
indirectArgsBufferHandle
;
Description
GraphicsBufferHandle
of the
GraphicsBuffer
from which the indirect draw command will be read.
The data at indirectArgsBufferOffset in the referenced buffer is interpreted as an
IndirectDraw... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a9df6332f42b | unity_docs | scripting | What are the parameters of `ObjectFactory.AddComponent` in Unity? | Returns Component Returns the component that was created and added to the GameObject. Description Creates a new component and adds it to the specified GameObject. ```csharp
using UnityEngine;
using UnityEditor;public class CreateComponentExample
{
[MenuItem("ObjectFactoryExample/Add Camera to Selection")]
publi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_057218795b32 | unity_docs | scripting | What is `Terrain.SampleHeight` in Unity? Explain its purpose and usage. | Terrain.SampleHeight
Declaration
public float
SampleHeight
(
Vector3
worldPosition
);
Description
Samples the height at the given position defined in world space, relative to the Terrain space.
This method automatically clamps the world position to the Terrain boundaries.
```csharp
using UnityEngine;public c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f57030a7552 | unity_docs | networking | What is `Networking.PlayerConnection.EditorConnection.RegisterDisconnection` in Unity? Explain its purpose and usage. | EditorConnection.RegisterDisconnection
Declaration
public void
RegisterDisconnection
(UnityAction<int>
callback
);
Parameters
Parameter
Description
callback
The Action that is called when the Player with the given Player ID disconnects.
Description
Registers a callback on a Player when that Player disconne... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4958f639232e | unity_docs | rendering | Explain 'Splash Image Player settings' in Unity. | Configure the splash screen that displays when your application starts.
Use the
Splash Image Player
settings to customize or disable the Unity logo, add your own logos, or disable the splash screen entirely.
To access the
Splash Image Player
settings, go to
Edit
>
Project Settings
>
Player
>
Splash Image
. You can also... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c63a15dc1953 | unity_docs | ui | In Unity's 'Test UI', what is 'Debug styles' and how does it work? | If you don’t know where a style comes from, you can find the styles for an element in the
Matching Selectors
section in the UI Builder’s
Inspector
.
In the Canvas of the UI Builder, select the element.
In the Inspector window, expand
StyleSheet
>
Matching Selectors
.
The
Matching Selectors
section displays the followin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_75f48fb22c35 | unity_docs | scripting | What is `Event.button` in Unity? Explain its purpose and usage. | Event.button
public int
button
;
Description
Which mouse button was pressed.
0 means left mouse button, 1 means right mouse button, 2 means middle mouse button.
Used in
EventType.MouseDown
and
EventType.MouseUp
events.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Detect which mous... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6bc2bd58100c | unity_docs | scripting | What is `Animator.speed` in Unity? Explain its purpose and usage. | Animator.speed
public float
speed
;
Description
The playback speed of the Animator. 1 is normal playback speed.
Use
Animator.speed
to manipulate the playback speed of the Animator. Any animations currently being played by the Animator are slowed down or sped up depending on how the speed is altered. Set spee... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d2b327005eac_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Affordance receiver applying a Vector3 (Float3) affordance theme to a Transform local scale.Broadcasts new affordance value with Unity Event.
Signature:
```csharp
public class Vector3ScaleAffordanceReceiver : Vector3AffordanceReceiver
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_27d3b1b5ff6d | unity_docs | scripting | What is `PlayerSettings.GetMobileMTRendering` in Unity? Explain its purpose and usage. | PlayerSettings.GetMobileMTRendering
Declaration
public static bool
GetMobileMTRendering
(
Build.NamedBuildTarget
buildTarget
);
Parameters
Parameter
Description
buildTarget
The
NamedBuildTarget
. (Only iOS, tvOS and Android).
Returns
bool
Returns true if multithreaded rendering option for build target... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_575ef8cd278f | unity_docs | editor | What are the parameters of `EditorGUI.EnumFlagsField` in Unity? | Returns Enum The enum flags value modified by the user. This is a selection BitMask where each bit represents an Enum value index. (Note this returned value is not itself an Enum). Description Displays a menu with an option for every value of the enum type when clicked. An option for the value 0 with name "Nothing" and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f3722daa2da5 | unity_docs | ui | What is `Overlays.IMGUIOverlay.CreatePanelContent` in Unity? Explain its purpose and usage. | IMGUIOverlay.CreatePanelContent
Declaration
public
UIElements.VisualElement
CreatePanelContent
();
Returns
VisualElement
Returns the contents of this
Overlay
.
Description
CreatePanelContent is invoked by the OverlayCanvas when this
Overlay
is shown.
IMGUIOverlay implements this function. The only me... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e32a5c35d128 | unity_docs | scripting | Show me a Unity code example for 'ToolbarButton'. | A ToolbarButton is an
Editor-only
control that serves as a button in a
Toolbar
. It’s a Button with a predefined style that matches the Toolbar style.
## Create a ToolbarButton
You can create a ToolbarButton with UI Builder, UXML, or C#. The following C# example creates a ToolbarButton with a label:
```csharp
using U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_586b2aacdfc9 | unity_docs | editor | Show me a Unity C# example demonstrating `Menu.GetChecked`. | Menu.GetChecked
Declaration
public static bool
GetChecked
(string
menuPath
);
Description
Gets the check status of a menu item.
```csharp
using UnityEditor;
using UnityEngine; public class CheckMenuTest: MonoBehaviour
{
// Add a menu item named "MenuTest" to MyMenu in the main menu.
[MenuItem("MyMenu/Menu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_02654f21fae6 | unity_docs | math | Show me a Unity C# example demonstrating `Vector3.Slerp`. | two vectors.
Interpolates between
a
and
b
by amount
t
. The difference between this and linear
interpolation (aka, "lerp") is that the vectors are treated as directions rather than points
in space. The direction of the returned vector is interpolated by the angle and its
magnitude
is interpolated between the ma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad1a9a088533 | unity_docs | networking | What is `Android.AndroidAssetPackStatus` in Unity? Explain its purpose and usage. | AndroidAssetPackStatus
enumeration
Description
Values that indicate the status of an Android asset pack.
Unity always returns the status value and the error together in AndroidAssetPackInfo or AndroidAssetPackState objects. Unity returns these objects via callback methods after you call either AndroidAssetPacks.Do... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_21ebb07350b3 | unity_docs | editor | What is `EditorApplication.QueuePlayerLoopUpdate` in Unity? Explain its purpose and usage. | EditorApplication.QueuePlayerLoopUpdate
Declaration
public static void
QueuePlayerLoopUpdate
();
Description
Normally, a player loop update will occur in the editor when the Scene has been modified. This method allows you to queue a player loop update regardless of whether the Scene has been modified.
When the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ee20768cbd58 | unity_docs | scripting | What is `ModelImporter.meshCompression` in Unity? Explain its purpose and usage. | ModelImporter.meshCompression
public
ModelImporterMeshCompression
meshCompression
;
Description
Mesh compression setting.
Compressing meshes saves space in the built game, but more compression
introduces more artifacts in vertex data.
Additional resources:
ModelImporterMeshCompression
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_33e6f7a06edf | unity_docs | editor | What is `CrashReporting.CrashReportingSettings.captureEditorExceptions` in Unity? Explain its purpose and usage. | CrashReportingSettings.captureEditorExceptions
public static bool
captureEditorExceptions
;
Description
This Boolean field will cause the CrashReporting feature in Unity to capture exceptions that occur in the editor while running in Play mode if true, or ignore those errors if false. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fd9784315b28 | unity_docs | scripting | What is `ScriptableObject.OnDisable` in Unity? Explain its purpose and usage. | ScriptableObject.OnDisable()
Description
This function is called when the scriptable object goes out of scope.
OnDisable
is called in the following scenarios:
On loading a scene in the
Hierarchy window
, for any ScriptableObject that is currently loaded in memory but is not referenced in that scene.
On invocat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fa883b1fdbdb | unity_docs | scripting | Show me a Unity code example for 'Package Manager troubleshooting'. | ng or window doesn’t open
The Package Manager window might get moved offscreen or hidden by another window. When this happens, it looks like the Package Manager window failed to open. In this case, you can try to reset the window layout (
Window
>
Layouts
>
Default
) and reopen the Package Manager window again.
If the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_31e0f8c440f4 | unity_docs | animation | Explain 'Differences between package types' in Unity. | Unity’s Package Manager supports two package types:
UPM packages
(Unity Package Manager built-in format).
Asset packages
(.unitypackage
format).
The following table compares the differentiating characteristics of these package types:
Characteristic
UPM packages
Asset packages Format Collection of files and folders, whi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3f50aa8c6d66 | unity_docs | xr | In Unity's 'XR Origin', what is 'XR tracking space' and how does it work? | XR devices choose an origin point in the real world at initialization. The positions and orientations of all tracked entities, such as the user’s headset or hand-held device, XR controllers, hands, and physical objects detected around the user, are reported relative to this chosen point.
Note:
The criteria for choosing... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1b76fd9b2732 | unity_docs | rendering | What is `CustomRenderTextureManager.textureLoaded` in Unity? Explain its purpose and usage. | CustomRenderTextureManager.textureLoaded
Description
Unity raises this event when it loads a CustomRenderTexture.
Use this event to keep track of CustomRenderTexture loading. This is useful if you are writing your own CustomRenderTexture update loop.
Additional resources: Rendering.GraphicsSettings.disableBuiltinCu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_309610ed081d | unity_docs | rendering | What are the parameters of `AssetDatabase.LoadMainAssetAtPath` in Unity? | Returns Object Returns the main asset object at assetPath . Description Obtains the main asset object at assetPath . The main asset is the asset at the root of a hierarchy (such as a Maya file which might contain multiple meshes and GameObjects). All paths are relative to the project folder, for example: Assets/MyTextu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_892e7ee978c6 | unity_docs | rendering | What is `Light.RemoveCommandBuffer` in Unity? Explain its purpose and usage. | Light.RemoveCommandBuffer
Declaration
public void
RemoveCommandBuffer
(
Rendering.LightEvent
evt
,
Rendering.CommandBuffer
buffer
);
Parameters
Parameter
Description
evt
When to execute the command buffer during rendering.
buffer
The buffer to execute.
Description
Remove command buffer from executio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4eb4f634a7ae | unity_docs | rendering | What is `Lightmapping.SetAdditionalBakeDelegate` in Unity? Explain its purpose and usage. | Lightmapping.SetAdditionalBakeDelegate
Declaration
public static void
SetAdditionalBakeDelegate
(
Lightmapping.AdditionalBakeDelegate
del
);
Description
Set a delegate that bakes additional data. This delegates must set its done parameter to true once baking is finished to unlock the baking pipeline. Must be r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_18e865281360 | unity_docs | ui | In Unity's 'Launch and use the Search window', what is 'Press Tab for autocomplete' and how does it work? | For autocomplete suggestions for the current query, press
Tab
.
Tab
works with both the visual query builder and textual queries.
For textual queries,
Tab
shows autocomplete suggestions like filters, tokens, and recent searches.
For the visual query builder:
If your cursor isn’t next to any text,
Tab
shows the availabl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b02818f15c6f | unity_docs | editor | Show me a Unity C# example demonstrating `Editor.HasFrameBounds`. | ds()
Description
Validates whether custom bounds can be calculated for this Editor.
Use this to validate if
Editor.OnGetFrameBounds
should be called for this window. The Scene view calls `HasFrameBounds` and `OnGetFrameBounds` when the Frame action is invoked. The Frame action can be called from anywhere, but it ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_658d166cea3b | unity_docs | scripting | What is `Transform.Translate` in Unity? Explain its purpose and usage. | Transform.Translate
Declaration
public void
Translate
(
Vector3
translation
);
Declaration
public void
Translate
(
Vector3
translation
,
Space
relativeTo
= Space.Self);
Description
Moves the transform in the direction and distance of
translation
.
If
relativeTo
is left out or set to
Space.Self
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2a48b8151aa3 | unity_docs | scripting | What is `SystemLanguage.English` in Unity? Explain its purpose and usage. | SystemLanguage.English
Description
English.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the English language
if (Application.systemLanguage == SystemLanguage.English)
{
//Outputs into console that the system is Engli... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e20fd217673 | unity_docs | animation | What is `Tilemaps.Tilemap.SetTileAnimationFlags` in Unity? Explain its purpose and usage. | Tilemap.SetTileAnimationFlags
Declaration
public void
SetTileAnimationFlags
(
Vector3Int
position
,
Tilemaps.TileAnimationFlags
flags
);
Parameters
Parameter
Description
position
The position of the Tile on the
Tilemap
.
flags
The
TileAnimationFlags
to set onto the
Tile
.
Description
Sets the
Ti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_42fcd48460ab | unity_docs | scripting | What is `SystemInfo.graphicsMultiThreaded` in Unity? Explain its purpose and usage. | SystemInfo.graphicsMultiThreaded
public static bool
graphicsMultiThreaded
;
Description
Is graphics device using multi-threaded rendering (Read Only)?
On many platforms Unity can use multi-threaded rendering, where actual calls to underlying graphics API are
done on a separate thread. Normally you do not have t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec19230fea3b | unity_docs | editor | What is `EditorTools.ToolManager.activeContextChanged` in Unity? Explain its purpose and usage. | ToolManager.activeContextChanged
Parameters
Parameter
Description
value
An event issued after the active
EditorToolContext
changes.
Description
Defines an event handler for when the active
EditorToolContext
changes. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65ee19a7852c | unity_docs | editor | What are the parameters of `GenericMenu.AddItem` in Unity? | Description Add an item to the menu. Additional resources: GenericMenu.AddDisabledItem , GenericMenu.AddSeparator . Declaration public void AddItem ( GUIContent content ,
bool on , GenericMenu.MenuFunction2 func ,
object userData ); Parameters Parameter Description content The GUIContent to add as a menu item. on Speci... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b77a6ea1bff8 | unity_docs | input | What is `Input.imeIsSelected` in Unity? Explain its purpose and usage. | Input.imeIsSelected
public static bool
imeIsSelected
;
Description
Does the user have an IME keyboard input source selected?
Note
: This API is part of the legacy Input Manager. The recommended best practice is that you don't use this API in new projects. For new projects, use the Input System package. To learn... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5840f5e1a635 | unity_docs | scripting | What is `UIElements.UxmlAttributeNames` in Unity? Explain its purpose and usage. | UxmlAttributeNames
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Holds the description data of a UXML attribute.
This is used by the code generator when a control is using
UxmlElementAttribute
and
UxmlAttributeAttribute
.
Properties
Property
Description... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4f8e7ecf96d5 | unity_docs | editor | In Unity's 'UITK Text Settings assets', what is 'Fallback Emoji Text Assets' and how does it work? | Manage the global
fallback font assets
list for this font asset.
Note
: The
local fallback set in the Font Asset Properties
has precedence over the global fallback .
Property Description Text Asset List
Select
+
and
-
to add and remove font slots.
Click the circle icon next to a font to open an Object Picker where you ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c2852abd5b91_doc_7 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Whether to apply the passthrough process.
Signature:
```csharp
public bool ProcessCameraManager
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e6d9b3050bab | unity_docs | rendering | What is `LazyLoadReference_1` in Unity? Explain its purpose and usage. | LazyLoadReference<T0>
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Serializable lazy reference to a UnityEngine.Object contained in an asset file.
Allows an asset to reference another asset but delays loading the referenced asset until it is used, instead of loading it when the ref... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b45cc8c70bda | unity_docs | rendering | Explain 'Root node reference' in Unity. | The
root node
has properties that affect the entire tree, although you can override some properties at the branch or leaf group level.
## Distribution
Property Function Tree Seed
The randomizing seed for the tree. Change the seed to vary the tree’s procedural generation. Note that the seed from the
root node
changes ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_44863acade36_doc_2 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Notification that the resultant transformed point of this Positioner instance has changed.An app may hook to this event in order to respond to a change to a Positioner by accessing theupdated resultant transformed point via Positioner.TryGetECEFLocation or Positioner.TryGetLatLongAltitude.See also PositionerApi.OnPosit... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
gh_84b35345c60d_doc_3 | github | scripting | What does `GetCharacterFromFontAsset` do in this Unity script? Explain its purpose and signature. | Returns the text element (character) for the given unicode value taking into consideration the requested font style and weight.Function searches the source font asset, its list of font assets assigned as alternative typefaces and potentially its fallbacks.The font asset out parameter contains a reference to the font as... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_bf6c65a9da3d | unity_docs | scripting | What is `Experimental.GraphView.GraphView.unserializeAndPaste` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.unserializeAndPaste
public
Experimental.GraphView.GraphView.UnserializeAndPasteDelegate
unserializeAndPaste
;
Description
Callback for unserializing graph elements and adding them to the graph. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e4f314c4aab | unity_docs | ui | What is `UIElements.VisualElement.HasBinding` in Unity? Explain its purpose and usage. | VisualElement.HasBinding
Declaration
public bool
HasBinding
(
UIElements.BindingId
bindingId
);
Parameters
Parameter
Description
bindingId
The binding ID.
Returns
bool
true
if the property has a binding;
false
otherwise.
Description
Allows to know if a target property has a binding associated to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5d4abd1029aa | unity_docs | scripting | Show me a Unity C# example demonstrating `Input.GetTouch`. | ches. If
Input.touchCount
is greater than zero, the
GetTouch
index
sets which screen touch to check.
Touch
returns a
struct
with the screen touch details. Each extra screen touch uses an increasing
Input.touchCount
.
GetTouch
returns a
Touch
struct. Use zero to obtain the first screen touch. As an example... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e35d256aa27 | unity_docs | scripting | What is `InteractionMode.AutomatedAction` in Unity? Explain its purpose and usage. | InteractionMode.AutomatedAction
Description
Use this setting to prevent a method from showing any dialog boxes to the user, and to prevent it recording to the undo history.
You can only use this setting with methods that accept an
InteractionMode
parameter. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4e11726165cf | unity_docs | scripting | What is `UIElements.AlignmentUtils` in Unity? Explain its purpose and usage. | AlignmentUtils
class in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Static class containing utility methods for aligning visual elements.
Static Methods
Method
Description
CeilToPanelPixelSize
Return the next larger value representing a whole number of pixels on the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d2d80290b735 | unity_docs | scripting | Show me a Unity C# example demonstrating `KeyCode.B`. | KeyCode.B
Description
'b' key.
```csharp
//Attach this to a GameObject
//This script tells when the B arrow key is pressed down and when it is released
using UnityEngine;public class Example : MonoBehaviour
{
void Update()
{
//Detect when the B arrow key is pressed down
if (Input.GetKeyDown(KeyCode.B))
Debug.L... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0c795a73d767 | unity_docs | ui | Explain 'GUI Skin (IMGUI System)' in Unity. | GUISkins
are a collection of GUIStyles that can be applied to your GUI. Each Control type has its own Style definition. Skins are intended to allow you to apply style to an entire UI, instead of a single Control by itself.
To create a GUISkin, select
Assets->Create->GUI Skin
from the menubar.
Please Note
: This page re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_be808ee1c4d3 | unity_docs | math | What is `XR.Eyes` in Unity? Explain its purpose and usage. | Eyes
struct in
UnityEngine.XR
/
Implemented in:
UnityEngine.XRModule
Description
Contains eye tracking data from the device at an
XRNode
in the XR input subsystem.
Represents eye tracking data collected by the device. The Eyes type contains eye position, rotation, and data indicating the eye fixation point an... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ba36757189b1 | unity_docs | math | What is `HumanTrait.BoneFromMuscle` in Unity? Explain its purpose and usage. | HumanTrait.BoneFromMuscle
Declaration
public static int
BoneFromMuscle
(int
i
);
Parameters
Parameter
Description
i
Muscle index.
Description
Return the bone to which a particular muscle is connected.
The bone and muscle indices used by this function are the same as those of the
BoneName
and
MuscleName... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_802442989ea0 | unity_docs | scripting | Show me a Unity C# example demonstrating `FilterMode`. | FilterMode
enumeration
Description
Filtering mode for textures. Corresponds to the settings in a
texture inspector
.
Additional resources:
Texture.filterMode
,
texture assets
.
```csharp
//This script changes the filter mode of your Texture you attach when you press the space key in Play Mode. It switches betw... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a227cb8d8f85 | unity_docs | rendering | What is `Rendering.BuiltinRenderTextureType.GBuffer4` in Unity? Explain its purpose and usage. | BuiltinRenderTextureType.GBuffer4
Description
Deferred shading G-buffer #4 (typically occlusion mask for static lights if any).
Built-in deferred shaders put baked direct light occlusion into RGBA channels of this texture on platform that support at least 8 render targets.
Additional resources:
CommandBuffer
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bcf98b95b198 | github | scripting | Write a Unity C# UI script for Hierarchy Context | ```csharp
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
using BehaviourInject.Internal;
namespace BehaviourInject
{
[DisallowMultipleComponent]
public class HierarchyContext : MonoBehaviour
{
[SerializeField]
[HideInInspector]
private int _contextInd... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_ba528ae9e8a8 | unity_docs | rendering | Explain 'Materials tab' in Unity. | You can use this tab to change how Unity deals with materials and textures when importing your model.
When Unity imports a model without any material assigned, it uses the Unity diffuse material. If the model has materials, Unity imports them as subassets.
If your model has textures, you can also extract them into your... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_282a5871d590 | unity_docs | animation | What is `Animations.AnimatorControllerPlayable.GetLayerWeight` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable.GetLayerWeight
Declaration
public float
GetLayerWeight
(int
layerIndex
);
Parameters
Parameter
Description
layerIndex
The layer index.
Returns
float
The layer weight.
Description
Returns the weight of the layer at the specified index. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9aa4cace23e | unity_docs | rendering | What is `ParticleSystem.MinMaxGradient.ctor` in Unity? Explain its purpose and usage. | ParticleSystem.MinMaxGradient Constructor
Declaration
public
ParticleSystem.MinMaxGradient
(
Color
color
);
Parameters
Parameter
Description
color
Constant color.
Description
A single constant color for the entire gradient.
Declaration
public
ParticleSystem.MinMaxGradient
(
Gradient
gradient
);
Pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f94bee5a2c7c | unity_docs | audio | What is `Windows.Speech.DictationRecognizer.InitialSilenceTimeoutSeconds` in Unity? Explain its purpose and usage. | DictationRecognizer.InitialSilenceTimeoutSeconds
public float
InitialSilenceTimeoutSeconds
;
Description
The time length in seconds before dictation recognizer session ends due to lack of audio input in case there was no audio heard in the current session.
The default value is 5 seconds. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9a052738052a | unity_docs | math | What is `GridBrushBase.Select` in Unity? Explain its purpose and usage. | GridBrushBase.Select
Declaration
public void
Select
(
GridLayout
gridLayout
,
GameObject
brushTarget
,
BoundsInt
position
);
Parameters
Parameter
Description
grid
Grid
used for layout.
brushTarget
Targets of paint operation. By default the currently selected GameObject.
position
Area to get selec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_95a6f71cfd9b | unity_docs | scripting | What is `Search.PropertyDatabase.CreatePropertyHash` in Unity? Explain its purpose and usage. | PropertyDatabase.CreatePropertyHash
Declaration
public static
Hash128
CreatePropertyHash
(string
propertyPath
);
Parameters
Parameter
Description
propertyPath
The path or name of a property.
Returns
Hash128
The computed property hash.
Description
Creates a property hash from a property path.
Addit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f8d0e50f452c | unity_docs | editor | What is `EditorGUI.Vector3IntField` in Unity? Explain its purpose and usage. | EditorGUI.Vector3IntField
Declaration
public static
Vector3Int
Vector3IntField
(
Rect
position
,
string
label
,
Vector3Int
value
);
Declaration
public static
Vector3Int
Vector3IntField
(
Rect
position
,
GUIContent
label
,
Vector3Int
value
);
Parameters
Parameter
Description
position
Rect... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_afacb32d2499 | github | scripting | Write a Unity C# script called Raycaster | ```csharp
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
namespace VrBlocks
{
public class Raycaster : GraphicRaycaster
{
protected const float UI_CONTROL_OFFSET = 0.00001f;
protected Vector2 lastKnownPosition;
private static ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eec2d5292723 | unity_docs | scripting | What is `UIElements.Experimental.StyleValues.opacity` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StyleValues.opacity
public float
opacity
;
Description
Specifies the transparency of an element.
The opacity can be between 0.0 and 1.0. The lower value, the more transparent. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_74c6bed9ec0c | unity_docs | editor | Show me a Unity C# example demonstrating `MonoImporter.SetIcon`. | th the imported
MonoScript
. When the value is null, Unity restores the default icon.
Description
Sets a custom icon to associate with the imported
MonoScript
.
MonoScripts can have an associated custom icon. This icon is used in the Scene view, the Inspector, and the Project window.
Additional resources:
MonoImp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b3f0ff4a9747 | unity_docs | networking | What is `Android.AndroidConfiguration.uiModeNight` in Unity? Explain its purpose and usage. | AndroidConfiguration.uiModeNight
public
Android.AndroidUIModeNight
uiModeNight
;
Description
Mirrors the Android property
uiMode
based on the
UI_MODE_NIGHT_MASK
value.
For information about this property, refer to the Android developer documentation on
uiMode
and
UI_MODE_NIGHT_MASK
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93eec2e13924 | unity_docs | scripting | What is `PrefabUtility.IsDefaultOverride` in Unity? Explain its purpose and usage. | PrefabUtility.IsDefaultOverride
Declaration
public static bool
IsDefaultOverride
(
PropertyModification
modification
);
Parameters
Parameter
Description
modification
The modification for the property in question.
Returns
bool
True if the property is a default override.
Description
Returns true if th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b697858ba16b | unity_docs | editor | In Unity's 'AssetBundle and Addressables determinism', what is 'Addressable determinism' and how does it work? | Because the Addressables system is built on top of the AssetBundle API, all the determinism best practices from the previous AssetBundle section apply to Addressables. Addressable builds are deterministic when the build environment and inputs are identical.
The deterministic behavior of Addressables also depends on bot... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_36a018b600dd | unity_docs | scripting | What is `UIElements.HandleDragAndDropArgs.childIndex` in Unity? Explain its purpose and usage. | HandleDragAndDropArgs.childIndex
public int
childIndex
;
Description
The child index under the parentId that the drag-and-drop operation targets. Used only for trees.
Will always be -1 for drag-and-drop operations in list views. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_631338cec933 | unity_docs | rendering | In Unity's 'Working with Heightmaps', what is 'Import and export options' and how does it work? | Property Description Depth
Determines how many bits Unity uses per pixel in the imported or exported heightmap.
• Bit 16: Uses 16 bits (2 bytes)
• Bit 8: Uses 8 bits (1 byte)
Resolution
The texture resolution (width and height) of the imported heightmap.
Byte Order
Determines how Unity orders the bytes for each pixel i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_32d4e9950a0b | unity_docs | scripting | What is `Unity.IntegerTime.RationalTime.FromDouble` in Unity? Explain its purpose and usage. | RationalTime.FromDouble
Declaration
public static
Unity.IntegerTime.RationalTime
FromDouble
(double
t
,
Unity.IntegerTime.RationalTime.TicksPerSecond
ticksPerSecond
);
Parameters
Parameter
Description
t
The duration in seconds.
ticksPerSecond
The rational number representing the number of ticks per se... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a5889bb29b1c_doc_21 | github | scripting | What does `SetGameObject` do in this Unity script? Explain its purpose and signature. | Sets a GameObject at the position in the brush.Position to set the GameObject in the brush.GameObject to set in the brush.
Signature:
```csharp
public void SetGameObject(Vector3Int position, GameObject go)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_a62c382ca7c7 | unity_docs | scripting | What is `AudioSource.PlayScheduled` in Unity? Explain its purpose and usage. | AudioSource.PlayScheduled
Declaration
public void
PlayScheduled
(double
time
);
Parameters
Parameter
Description
time
Time in seconds on the absolute time-line that AudioSettings.dspTime refers to for when the sound should start playing.
Description
Plays the
clip
at a specific time on the absolute time... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8fc12207603e | unity_docs | editor | What is `IMGUI.Controls.ArcHandle.angleHandleDrawFunction` in Unity? Explain its purpose and usage. | ArcHandle.angleHandleDrawFunction
public
Handles.CapFunction
angleHandleDrawFunction
;
Description
The
CapFunction
to use when displaying the angle control handle.
Defaults to
DefaultAngleHandleDrawFunction
for new instances of
ArcHandle
. No angle handle will be drawn if a value of
null
is assigned.
A... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_91e307e446df | unity_docs | networking | Explain 'Use Unity Accelerator on the command line' in Unity. | Unity Accelerator has a large set of command line tools you can use to troubleshoot, configure, and make use of one or more cache servers. For ease of use, it’s best practice to add the location of the
unity-accelerator
executable to your
PATH
. The executable was installed in the path you chose when running the instal... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_57b7b0fbd822 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.GetAssetPathsFromAssetBundleAndAssetName`. | ame
The name of the AssetBundle.
assetName
The name of the asset.
Description
Get the Asset paths for all Assets tagged with assetBundleName and
named assetName.
Get the Asset paths for all Assets tagged with assetBundleName and named
assetName, regardless of extension or path e.g. "Assets/House.prefab",
"Asse... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4a1e04725075_doc_1 | github | scripting | What does `IsNullOrNone` do in this Unity script? Explain its purpose and signature. | Search status is inactive
Signature:
```csharp
public bool IsNullOrNone => string.IsNullOrEmpty(searchText) || searchFilters.Equals(SearchFilter.None);
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_7c7d372b2def | unity_docs | animation | What is `Animations.AnimatorController.SetStateEffectiveMotion` in Unity? Explain its purpose and usage. | AnimatorController.SetStateEffectiveMotion
Declaration
public void
SetStateEffectiveMotion
(
Animations.AnimatorState
state
,
Motion
motion
);
Declaration
public void
SetStateEffectiveMotion
(
Animations.AnimatorState
state
,
Motion
motion
,
int
layerIndex
);
Parameters
Parameter
Description
sta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_46df0f7f1bf8 | unity_docs | scripting | What is `Experimental.GraphView.EdgeControl` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
EdgeControl
class in
UnityEditor.Experimental.GraphView
/
Inherits from:
UIElements.VisualElement
Description
VisualElement that draws the edge lines and detects if mouse is on top of edge.
Static Properties
Property
Descr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_390cba63bc13 | unity_docs | scripting | What is `UIElements.RectField` in Unity? Explain its purpose and usage. | RectField
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.BaseCompositeField_3
/
Implemented in:
UnityEngine.UIElementsModule
Description
A
Rect
field. For more information, refer to
UXML element RectField
.
Static Properties
Property
Description
inputUssClassName
USS class name of inpu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.