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_a1b3ecd4d6d3 | unity_docs | scripting | Show me a Unity C# example demonstrating `SystemLanguage.Hebrew`. | SystemLanguage.Hebrew
Description
Hebrew.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Hebrew language
if (Application.systemLanguage == SystemLanguage.Hebrew)
{
//Outputs into console that the system is Hebrew
D... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e733374bdcbb | github | scripting | Write a Unity C# UI script for Customize Character View | ```csharp
using System;
using RMC.Mini.View;
using RMC.Mini.Samples.Configurator.Mini.Controller;
using RMC.Mini.Samples.Configurator.Mini.Model;
using RMC.Mini.Samples.Configurator.Mini.Model.Data;
using RMC.Mini.Samples.Configurator.Standard.Gameplay;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UIE... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_d3fb322a8baf | unity_docs | scripting | What is `Mesh.skinWeightBufferLayout` in Unity? Explain its purpose and usage. | Mesh.skinWeightBufferLayout
public
SkinWeights
skinWeightBufferLayout
;
Description
The dimension of data in the bone weight buffer.
This value describes the layout of data in the mesh's bone weight buffer. It depends on how many bones that affect each vertex in the mesh.
```csharp
using UnityEngine;
public... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ce74f29ef060 | unity_docs | physics | Show me a Unity code example for 'Troubleshooting custom control library compilation'. | , run the UI Toolkit source generator (
Unity.UIToolkit.SourceGenerator.dll
) during the DLL compilation process.
Find the source generator file in your Unity installation. It’s typically located at:
<Unity Installation Path>\Data\Tools\Unity.SourceGenerators\Unity.UIToolkit.SourceGenerator.dll
.
Add the source generat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_70c7da73e48c | unity_docs | physics | What is `UIElements.Button.ctor` in Unity? Explain its purpose and usage. | Button Constructor
Declaration
public
Button
();
Description
Constructs a Button.
Declaration
public
Button
(
UIElements.Background
iconImage
,
Unity.Android.Gradle.Manifest.Action
clickEvent
);
Parameters
Parameter
Description
iconImage
The image value that will be rendered as an icon.
clickEv... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6b15cbfc48f4 | unity_docs | scripting | What are the parameters of `Object.FindAnyObjectByType` in Unity? | Returns T Returns an arbitrary active loaded object that matches the specified type. If no object matches the specified type, returns null. Description Retrieves any active loaded object of Type type . Object.FindAnyObjectByType doesn't return Assets (for example meshes, textures, or prefabs), or inactive objects. It a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d9001e60be33 | unity_docs | physics | What is `Collision.contacts` in Unity? Explain its purpose and usage. | Collision.contacts
public ContactPoint[]
contacts
;
Description
The contact points generated by the physics engine. You should avoid using this as it produces memory garbage. Use
GetContact
or
GetContacts
instead.
Every contact contains a contact point, normal and the two colliders that collided (see
Conta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3eebacac85ff | unity_docs | rendering | Explain 'ShaderLab: legacy fog' in Unity. | Note
: The ShaderLab functionality on this page is legacy, and is documented for backwards compatibility only. If your shader source file includes HLSL code, Unity ignores these commands completely. If your shader source file does not include HLSL code, Unity compiles these commands into regular shader programs on impo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_27fd0dafc165_doc_0 | github | scripting | What does `DebugMessage` do in this Unity script? Explain its purpose and signature. | Send debug information to Unity console based on DebugType and DebugLevel
Signature:
```csharp
public static void DebugMessage(LogType mType, string message)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_f8abfccdafc7 | unity_docs | scripting | Explain 'Visual Effect component' in Unity. | The Visual Effect component contains basic controls to configure an instance of a Visual Effect in a
Scene
.
This component only works when you install the Visual Effect Graph package. For information on how to install the Visual Effect Graph, see the
packages documentation
.
For information on how to use the Visual Ef... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_baa06acba560 | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.SearchViewFlags.DisableBuilderModeToggle`. | SearchViewFlags.DisableBuilderModeToggle
Description
This flag disables the ability to switch between text mode and builder mode.
This flag is not set by default. When it is set, the Search Picker window will not be able to switch between text mode and builder mode, no matter what mode it is already in.
```csharp
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b2841eadf47b | unity_docs | math | Show me a Unity C# example demonstrating `Mathf.Floor`. | Mathf.Floor
Declaration
public static float
Floor
(float
f
);
Description
Returns the largest integer smaller than or equal to
f
.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void Example()
{
Debug.Log(Mathf.Floor(10.0F)); // Prints 10
Debug.Log(Mathf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fbb72c2fe3ec | unity_docs | scripting | Show me a Unity code example for 'HelpBox'. | A HelpBox displays a message to the user. You can set the type of message to display, such as a warning or an error. You can also set the message to display as rich text.
## Create a HelpBox
You can create a HelpBox with UXML and C#. The following C# example creates a HelpBox with the message “Help text” and the info... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c5cda8a16039 | unity_docs | math | What is `Vector4.normalized` in Unity? Explain its purpose and usage. | Vector4.normalized
public
Vector4
normalized
;
Description
Returns a normalized vector based on the current vector. The normalized vector has a
magnitude
of 1 and is in the same direction as the current vector. Returns a zero vector If the current vector is too small to be normalized.
Note that this does no... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_35412402b753 | unity_docs | rendering | Explain 'Lighting Settings Asset Inspector window reference' in Unity. | When you view the Lighting Settings Asset in the Inspector or the Lighting window, the properties that you can view or edit are divided into the following sections:
Realtime Lighting
Mixed Lighting
For information about
Lightmapping Settings
section of the Lighting Settings Asset, refer to
Lightmapping settings in the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0240e3c3e0a0 | unity_docs | editor | Explain 'Create looping transitions' in Unity. | Version: 2022.1+
This example demonstrates how to leverage the TransitionEndEvent to create transitions that loop.
## Example overview
This example demonstrates two looping animations:
Yo-yo: The loop starts from state A to state B with transition, and then return back to state A with transition.
A-to-B: The loop sta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_142c24cd17e1 | unity_docs | rendering | What is `Rendering.CullingResults.GetShadowCasterBounds` in Unity? Explain its purpose and usage. | CullingResults.GetShadowCasterBounds
Declaration
public bool
GetShadowCasterBounds
(int
lightIndex
,
out
Bounds
outBounds
);
Parameters
Parameter
Description
lightIndex
The index of the shadow-casting light.
outBounds
The bounds to be computed.
Returns
bool
True if the light affects at least one sha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6eb09b037d7a | unity_docs | scripting | What is `AndroidJNI.GetObjectClass` in Unity? Explain its purpose and usage. | AndroidJNI.GetObjectClass
Declaration
public static IntPtr
GetObjectClass
(IntPtr
obj
);
Description
Returns the class of an object.
Additional resources:
Java Native Interface Specification (Oracle) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_91c9a77d0b4e | unity_docs | performance | What is `Profiling.RawFrameDataView.invalidSampleIndex` in Unity? Explain its purpose and usage. | RawFrameDataView.invalidSampleIndex
public static int
invalidSampleIndex
;
Description
This constant defines a sample index that does not match any valid Profiler Sample.
If any Profiler API returns a sample index matching this value, no matching sample exists. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_492f354b812c_doc_64 | github | scripting | What does `SetLocalScale` do in this Unity script? Explain its purpose and signature. | ローカル座標におけるスケーリング値を設定します
Signature:
```csharp
public void SetLocalScale( float x, float y, float z )
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_76466e6448dc | unity_docs | ui | In Unity's 'ScrollView', what is 'Scroll bar mode and visibility' and how does it work? | To set the scroll mode of the scroll bar movement in UI Builder, in the Inspector window of the ScrollView, select one of the following options for
Mode
:
Vertical (default)
Horizontal
Vertical and Horizontal
To set the visibility of the scroll bar in UI Builder, in the Inspector window of the ScrollView, select one of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_584c6f57730f | unity_docs | scripting | What is `Search.SearchExpressionContext.Break` in Unity? Explain its purpose and usage. | SearchExpressionContext.Break
Declaration
public void
Break
();
Description
Break the evaluation of a
SearchExpression
meaning items won't be yielded anymore.
```csharp
[SearchExpressionEvaluator(SearchExpressionType.Iterable | SearchExpressionType.Variadic)]
[SearchExpressionEvaluatorSignatureOverload(Search... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f1ddec57ce7c | unity_docs | rendering | In Unity's 'Single-pass instanced rendering and custom shaders', what is 'Update the vertex output attributes struct' and how does it work? | Add UNITY_VERTEX_OUTPUT_STEREO macro to the v2f output struct.
Example:
```
struct v2f
{
float2 uv : TEXCOORD0;
float4 vertex : SV_POSITION;
UNITY_VERTEX_OUTPUT_STEREO //Insert
};
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_86d916d591ee | unity_docs | scripting | What are the parameters of `GameObject.GetComponentInParent` in Unity? | Returns T A Component of the matching type T , otherwise null if no matching Component is found. Description Retrieves a reference to a component of type T on the specified GameObject, or any parent of the GameObject. This method checks the GameObject on which it is called first, then recurses upwards through each pare... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_06c06573d0a3 | unity_docs | scripting | What is `MPE.ChannelClient.Close` in Unity? Explain its purpose and usage. | ChannelClient.Close
Declaration
public void
Close
();
Declaration
public static void
Close
(string
channelName
);
Parameters
Parameter
Description
channelName
The name of the channel to close.
Description
Closes the
ChannelClient
. This closes the WebSocket client but not the Channel in the
ChannelSe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4401ac0455c4 | unity_docs | math | What is `PackageManager.PackageInfo.GetAllRegisteredPackages` in Unity? Explain its purpose and usage. | PackageInfo.GetAllRegisteredPackages
Declaration
public static PackageInfo[]
GetAllRegisteredPackages
();
Returns
PackageInfo[]
The array of
PackageInfo
instances describing each package.
Description
Retrieves information about all packages that are currently loaded. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e6de46d69986 | unity_docs | rendering | What are the parameters of `SceneViewCameraWindow.additionalSettingsGui` in Unity? | Description Subscribe to this event to receive a callback when the SceneViewCameraWindow.OnGUI function is called. ```csharp
using UnityEditor;
using UnityEngine;[InitializeOnLoad]
static class AdditionalCameraSettings
{
static AdditionalCameraSettings()
{
SceneViewCameraWindow.additionalSettingsGui += ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_056aa5b50f1b | unity_docs | scripting | What is `Experimental.GraphView.EdgeManipulator.OnKeyDown` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
EdgeManipulator.OnKeyDown
Declaration
protected void
OnKeyDown
(
UIElements.KeyDownEvent
evt
);
Parameters
Parameter
Description
evt
The event.
Description
Handle key down event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_182dc9939ab2 | github | scripting | Write a Unity Editor script for Search Inspector Cache | ```csharp
using FieldSearch.Helpers.Cache.Data;
using FieldSearch.Settings.Base;
using System.Collections.Concurrent;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using UnityEditor;
using UnityEngine;
namespace FieldSearch.Helpers.Cache
{
/// <summary>
/// SearchCache inspector controll... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_ddc74c4a0207 | unity_docs | scripting | What is `AndroidJNI.SetStaticLongField` in Unity? Explain its purpose and usage. | AndroidJNI.SetStaticLongField
Declaration
public static void
SetStaticLongField
(IntPtr
clazz
,
IntPtr
fieldID
,
long
val
);
Description
Sets the value of a static field in the specified object.
Additional resources:
Java Native Interface Specification (Oracle) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b30c8b4a9659 | unity_docs | rendering | What is `Terrain.materialTemplate` in Unity? Explain its purpose and usage. | Terrain.materialTemplate
public
Material
materialTemplate
;
Description
The custom material Unity uses to render the Terrain.
You can use this property to give the Terrain a custom material to render with.
Unity doesn't make a copy of the custom material internally, so modifying
materialTemplate
will affe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7be10d29d4a2 | unity_docs | scripting | What is `IMGUI.Controls.TreeView.CanStartDragArgs.draggedItemIDs` in Unity? Explain its purpose and usage. | TreeView.CanStartDragArgs.draggedItemIDs
public IList<int>
draggedItemIDs
;
Description
The multi-selection about to be dragged.
If the user is about to drag a multi-selection this is the entire list of
TreeViewItem.id
that are about to be dragged, including the ::draggedItem.
Additional resources: FindRows. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5764bc13c6be | unity_docs | scripting | What is `TerrainLayer` in Unity? Explain its purpose and usage. | TerrainLayer
class in
UnityEngine
/
Inherits from:
Object
/
Implemented in:
UnityEngine.TerrainModule
Description
Description of a terrain layer.
Properties
Property
Description
diffuseRemapMax
A Vector4 value specifying the maximum RGBA value that the diffuse texture maps to when the value of the channel... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d95101dd0bfc | unity_docs | rendering | What is `ParticleSystem.isPlaying` in Unity? Explain its purpose and usage. | ParticleSystem.isPlaying
public bool
isPlaying
;
Description
Determines whether the Particle System is playing.
isPlaying
is
true
from when the Particle System begins to play until its last live particle dies.
isPlaying
is
false
when the Particle System is no longer spawning particles and is not simulat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89cfeda6c5e0 | unity_docs | animation | What is `Animator.GetNextAnimatorClipInfoCount` in Unity? Explain its purpose and usage. | Animator.GetNextAnimatorClipInfoCount
Declaration
public int
GetNextAnimatorClipInfoCount
(int
layerIndex
);
Parameters
Parameter
Description
layerIndex
The layer index.
Returns
int
The number of
AnimatorClipInfo
in the next state.
Description
Returns the number of
AnimatorClipInfo
in the next s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8789999d0c11 | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.Android.targetSdkVersion`. | PlayerSettings.Android.targetSdkVersion
public static
AndroidSdkVersions
targetSdkVersion
;
Description
The target API level of your application.
This value must be higher than or equal to minSdkVersion.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class TargetSdkVersionSam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0dab945fbfa5 | unity_docs | scripting | What is `Serialization.ManagedReferenceUtility.RefIdUnknown` in Unity? Explain its purpose and usage. | ManagedReferenceUtility.RefIdUnknown
public static long
RefIdUnknown
;
Description
Special value, -1, used when the managed reference Id for an object is unknown, for example if
GetManagedReferenceIdForObject
is called with invalid arguments. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a614dbdf81f8 | unity_docs | networking | What is `Android.AndroidNavigation` in Unity? Explain its purpose and usage. | AndroidNavigation
enumeration
Description
Options to indicate the type of navigation methods used on the device.
Additional resources:
AndroidConfiguration.navigation
Properties
Property
Description
Undefined
Mirrors the Android property value NAVIGATION_UNDEFINED.
NoNav
Mirrors the Android property value NA... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4acd2cc9b715 | unity_docs | scripting | What is `Accessibility.AccessibilityHierarchy.InsertNode` in Unity? Explain its purpose and usage. | AccessibilityHierarchy.InsertNode
Declaration
public
Accessibility.AccessibilityNode
InsertNode
(int
childIndex
,
string
label
,
Accessibility.AccessibilityNode
parent
);
Parameters
Parameter
Description
childIndex
A zero-based index for positioning the inserted node in the parent's children list,
or ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1f8824028968 | unity_docs | math | What is `LowLevel.PlayerLoopSystem.subSystemList` in Unity? Explain its purpose and usage. | PlayerLoopSystem.subSystemList
public PlayerLoopSystem[]
subSystemList
;
Description
An array of sub-systems, each of which is also a PlayerLoopSystem, which run as part of this system in the Player loop. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fc2edc0e5257 | unity_docs | math | Show me a Unity C# example demonstrating `Search.QueryEngine_1.AddFilter`. | okens. This list contains the supported operator tokens. Use null or an empty list to indicate that all operators are supported.
Description
Adds a new custom filter.
<TData>: The type of the data that is filtered by the
QueryEngine
.
<TFilter>: The type of the data that is compared by the filter.
Use this overload... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0ad92ba2e592 | unity_docs | ui | What is `UIElements.VisualElement.ContainsPoint` in Unity? Explain its purpose and usage. | VisualElement.ContainsPoint
Declaration
public bool
ContainsPoint
(
Vector2
localPoint
);
Parameters
Parameter
Description
localPoint
The point in the local space of the element.
Returns
bool
Returns true if the point is contained within the element's layout. Otherwise, returns false.
Description
C... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ecfe09973a3e | unity_docs | editor | What are the parameters of `AssetImporters.AssetImportContext.DependsOnArtifact` in Unity? | Description Setup artifact dependency to an asset. An artifact dependency is a dependency where an Asset depends on the import result (known as an artifact) of another Asset. If you change an Asset that has been marked as a dependency, all Assets which depend on it will also get reimported (after the dependency has bee... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0b1e750f5c34 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.CopyObjectAddressToPtr` in Unity? Explain its purpose and usage. | UnsafeUtility.CopyObjectAddressToPtr
Declaration
public static void
CopyObjectAddressToPtr
(object
target
,
void*
dstPtr
);
Description
Assigns an object reference to a struct or pinned class.
Additional resources:
UnsafeUtility.PinGCObjectAndGetAddress
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_31174a1a9453 | unity_docs | physics | Explain 'Terrain colliders' in Unity. | The Terrain collider
builds a collider that matches the geometry of the Terrain it is attached to. It is the best and most accurate collider type for Terrains.
Topic Description Introduction to Terrain colliders
Overview of the
Terrain collider
and how it works.
Terrain collider component reference
Reference page for t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dc255dbe52e2 | unity_docs | rendering | In Unity's 'Support for proprietary model file formats', what is 'Importing objects from Autodesk® Maya®' and how does it work? | Unity imports Autodesk® Maya® files (.mb
and.ma
) through the FBX format, supporting the following:
All nodes with position, rotation and scale; pivot points and names are also imported
Meshes with vertex colors, normals and up to 2 UV sets
Materials with texture and diffuse color; multiple materials per mesh Animation... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_41ef3171abe6 | unity_docs | animation | What is `Time.captureDeltaTime` in Unity? Explain its purpose and usage. | Time.captureDeltaTime
public static float
captureDeltaTime
;
Description
Slows your application’s playback time to allow Unity to save screenshots in between frames.
If this property has a non-zero value then
Time.time
increases at an interval of captureDeltaTime (scaled by
Time.timeScale
) regardless of
re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c2d20bf45f5d | unity_docs | physics | Show me a Unity C# example demonstrating `PhysicsShapeGroup2D.Clear`. | PhysicsShapeGroup2D.Clear
Declaration
public void
Clear
();
Description
Clears all the vertices and shapes from the PhysicsShapeGroup.
This call clears the lists used to store both vertices and shapes but retains the current shape group capacity (effectively creating an empty shape group).
```csharp
using Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e7a8dc4ebd59 | unity_docs | scripting | In Unity's 'Clock management with the Video Player component', what is 'Game time' and how does it work? | Game time is set in the Time module. You can access it using C# through
Time.time
. When you use game time, also known as scaled game time, Unity follows the Time Scale value set in the Time window. You can also modify the Time Scale value using C# through
Time.timeScale
. However, if the capture frame rate or capture ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f2016dde1f45 | unity_docs | audio | Explain 'Understanding video files' in Unity. | Video files are more accurately described as “containers”. This is because they can contain not only the video itself but also additional tracks including audio, subtitles, and further video footage. There can also be more than one of each type of track in a container, for example:
Multiple points of view
Stereo or 5.1... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9e05afe3e32d | unity_docs | scripting | What is `ImageEffectAfterScale` in Unity? Explain its purpose and usage. | ImageEffectAfterScale
class in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Any Image Effect with this attribute will be rendered after Dynamic Resolution stage.
If you wish your image effect to be applied after the Dynamic Resolution has scaled back up add this attribute. The effect will be... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c87d7aff9092 | unity_docs | rendering | What is `ShaderGUI.OnMaterialPreviewGUI` in Unity? Explain its purpose and usage. | ShaderGUI.OnMaterialPreviewGUI
Declaration
public void
OnMaterialPreviewGUI
(
MaterialEditor
materialEditor
,
Rect
r
,
GUIStyle
background
);
Parameters
Parameter
Description
materialEditor
The MaterialEditor that are calling this method (the 'owner').
r
Preview rect.
background
Style for the back... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b99d50747bbc | unity_docs | ui | What is `GUILayout.EndHorizontal` in Unity? Explain its purpose and usage. | GUILayout.EndHorizontal
Declaration
public static void
EndHorizontal
();
Description
Close a group started with BeginHorizontal.
Horizontal Layout.
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void OnGUI()
{
GUILayout.BeginHorizontal("box"); GUILayout.Button("I'm the first button... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7179622a979 | unity_docs | scripting | Show me a Unity C# example demonstrating `AvatarBuilder.BuildGenericAvatar`. | tring
rootMotionTransformName
);
Parameters
Parameter
Description
go
Root object of your transform hierarchy.
rootMotionTransformName
Transform name of the root motion transform. If empty no root motion is defined and you must take care of avatar movement yourself.
Description
Create a new generic avatar.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fb36bef3107a | unity_docs | rendering | Explain 'Shadow mapping' in Unity. | Unity performs shadow mapping to render real-time shadows.
## How shadow mapping works
Shadow mapping is the process of creating shadow textures called shadow maps. Unity generates a shadow map from the perspective of a light in a similar way to how a camera generates a depth texture. If you consider a camera at the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a3321cbcc9ba | unity_docs | scripting | Show me a Unity C# example demonstrating `RigidbodyConstraints`. | RigidbodyConstraints
enumeration
Description
Use these flags to constrain motion of Rigidbodies.
Additional resources:
Rigidbody.constraints
. This enables you to freeze positions and rotations on all axes.
```csharp
//This example shows how RigidbodyConstraints is used to freeze the position and rotation of a R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_500183cf63dd | unity_docs | editor | In Unity's 'Create a command file to set environment variables and open applications', what is 'Before you begin' and how does it work? | Decide which environment variables you need to set, and include only the required environment variables:
If your environment doesn’t support automatic proxy configuration, set the HTTP_PROXY and HTTPS_PROXY environment variables to identify your web proxy. For more information, refer to
Use environment variables to ide... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_191e0eb888bf | unity_docs | physics | In Unity's 'Character Controller component reference', what is 'Fine-tuning your character' and how does it work? | You can modify the Height and Radius to fit your Character’s
mesh
. It is recommended to always use around 2 meters for a human-like character. You can also modify the Center of the capsule in case your pivot point is not at the exact center of the Character.
Step Offset
can affect this too, make sure that this value i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c2a417b30c6c | unity_docs | networking | What is `Networking.PlayerConnection.IConnectionState` in Unity? Explain its purpose and usage. | IConnectionState
interface in
UnityEngine.Networking.PlayerConnection
Description
The state of an Editor-to-Player or Editor-to-Editor connection to be used in
PlayerConnectionGUI.ConnectionTargetSelectionDropdown
or
PlayerConnectionGUILayout.ConnectionTargetSelectionDropdown
.
The interface inherits from IDis... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4eb206569997 | unity_docs | rendering | In Unity's 'Bumped Specular', what is 'Creating Normal maps' and how does it work? | You can import normal maps created outside of Unity, or you can import a regular grayscale image and convert it to a Normal Map from within Unity. (This page refers to a legacy shader which has been superseded by the
Standard Shader
, but you can learn more about how to use
Normal Maps in the Standard Shader
) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_91d83669d78c | unity_docs | rendering | Explain 'Particle System optimization in the Built-In Render Pipeline' in Unity. | Resources for using GPU instancing to improve the performance of your particle systems.
Property Function Apply GPU instancing for a Particle System
Activate and apply GPU instancing, which renders Mesh particles instead of billboard particles to improve performance.
Example of Particle System GPU Instancing in a Surfa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1e822d6831b | unity_docs | scripting | What is `Search.QueryEngine_1.validateFilters` in Unity? Explain its purpose and usage. | QueryEngine<T0>.validateFilters
public bool
validateFilters
;
Description
Get or set if the engine must validate filters when parsing the query. Defaults to true.
See
QueryValidationOptions.validateFilters
for a complete example. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9d7b59e4768b | unity_docs | rendering | Explain 'USS color keywords' in Unity. | The following table lists all the supported color keywords, their RGB hex values, and the sample colors.
Keyword
RGB hex value Sample aliceblue
#f0f8ff
antiquewhite
#faebd7
aqua
#00ffff
aquamarine
#7fffd4
azure
#f0ffff
beige
#f5f5dc
bisque
#ffe4c4
black
#000000
blanchedalmond
#ffebcd
blue
#0000ff
blueviolet
#8a2be2
bro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f8eb2a5657a | unity_docs | animation | Give me an overview of the `HumanPose` class in Unity. | HumanPose
struct in
UnityEngine
/
Implemented in:
UnityEngine.AnimationModule
Description
Retargetable humanoid pose.
Represents a humanoid pose that is completely abstracted from any skeleton rig.
Additional resources:
HumanPoseHandler
.
Properties
Property
Description
bodyPosition
The human body position... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_215fdba920f0 | unity_docs | editor | What is `Help.BrowseURL` in Unity? Explain its purpose and usage. | Help.BrowseURL
Declaration
public static void
BrowseURL
(string
url
);
Description
Open
url
in the default web browser.
Editor Window that lets you load docs for any Selected GameObject.
```csharp
using UnityEngine;
using UnityEditor;// EditorScript that quickly searchs for a help page
// of the selected Ob... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_738d8e9315ef | unity_docs | editor | In Unity's 'Create a custom Editor window with C# script', what is 'Create a list of sprites' and how does it work? | To present a list of sprites, the example uses AssetDatabase to find all sprites in a project. For the sprite browser, add a TwoPaneSplitView to split the available window space into two panes: one that is fixed-size and one that is flexibly sized. When you resize the window, the flexible pane resizes while the fixed-s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_49a33fae7c87 | unity_docs | scripting | Show me a Unity C# example demonstrating `LODGroup.SetLODs`. | LODGroup.SetLODs
Declaration
public void
SetLODs
(LOD[]
lods
);
Parameters
Parameter
Description
lods
The LODs to use for this group.
Description
Set the LODs for the LOD group. This will remove any existing LODs configured on the LODGroup.
```csharp
using UnityEngine;
using System.Collections;public cla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6d35fdd4ff23 | unity_docs | rendering | What is `ParticleSystem.CustomDataModule.GetVectorComponentCount` in Unity? Explain its purpose and usage. | ParticleSystem.CustomDataModule.GetVectorComponentCount
Declaration
public int
GetVectorComponentCount
(
ParticleSystemCustomData
stream
);
Parameters
Parameter
Description
stream
The name of the custom data stream to retrieve the curve from.
Returns
int
The number of curves.
Description
Query how ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9c5ee3aecf2b | unity_docs | scripting | What is `FrameTiming.frameStartTimestamp` in Unity? Explain its purpose and usage. | FrameTiming.frameStartTimestamp
public ulong
frameStartTimestamp
;
Description
This is the CPU clock time of the time when the frame was started.
Use
FrameTimingManager.GetCpuTimerFrequency
to convert timestamps to seconds.
```csharp
using UnityEngine;class Example
{
static readonly double k_CpuTimerFrequen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e202a49cfca8 | unity_docs | scripting | What is `Playables.ScriptPlayable_1` in Unity? Explain its purpose and usage. | ScriptPlayable<T0>
struct in
UnityEngine.Playables
/
Implemented in:
UnityEngine.CoreModule
Implements interfaces:
IPlayable
Description
A
IPlayable
implementation that contains a
PlayableBehaviour
for the
PlayableGraph
.
PlayableBehaviour
can be used to write custom Playable that implement their own Pre... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e5bd76ecf91d | unity_docs | math | What is `Plane.ctor` in Unity? Explain its purpose and usage. | Plane Constructor
Declaration
public
Plane
(
Vector3
inNormal
,
Vector3
inPoint
);
Description
Creates a plane.
Resulting plane has normal
inNormal
and goes through a point
inPoint
.
inNormal
must be a normalized vector.
Declaration
public
Plane
(
Vector3
inNormal
,
float
d
);
Description
Crea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dce81cc2f234 | unity_docs | editor | What is `QualitySettings.GetRenderPipelineAssetsForPlatform` in Unity? Explain its purpose and usage. | QualitySettings.GetRenderPipelineAssetsForPlatform
Declaration
public static void
GetRenderPipelineAssetsForPlatform
(string
buildTargetGroupName
,
out HashSet<T>
uniqueRenderPipelineAssets
);
Parameters
Parameter
Description
buildTargetGroupName
The platform to obtain the Render Pipeline Assets.
uniqueRe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b08522f38f6a | unity_docs | rendering | What is `ParticleSystem.SizeOverLifetimeModule.xMultiplier` in Unity? Explain its purpose and usage. | ParticleSystem.SizeOverLifetimeModule.xMultiplier
public float
xMultiplier
;
Description
Size multiplier along the x-axis.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall size multiplier.
```csharp
using UnityEngine;
using System.Collections;[Re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4ccc9da341b1 | unity_docs | rendering | What is `Rendering.SupportedRenderingFeatures.editableMaterialRenderQueue` in Unity? Explain its purpose and usage. | SupportedRenderingFeatures.editableMaterialRenderQueue
public bool
editableMaterialRenderQueue
;
Description
Determines whether the Scriptable Render Pipeline will override the default Material’s Render Queue settings and, if true, hides the Render Queue property in the Inspector. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_758ac3ee1813 | unity_docs | rendering | Show me a Unity code example for 'Add Light Probe Proxy Volume support to a custom shader in the Built-In Render Pipeline'. | The following is an example of a particle shader
using the ShadeSHPerPixel function.
```
Shader "Particles/AdditiveLPPV" {
Properties {
_MainTex ("Particle Texture", 2D) = "white" {}
_TintColor ("Tint Color", Color) = (0.5,0.5,0.5,0.5)
}
Category {
Tags { "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"=... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7980032d4220 | unity_docs | editor | Explain 'Dedicated Server AssetBundles' in Unity. | You can apply the Dedicated Server optimizations to AssetBundles starting in Unity Editor version
2023.1.0a21
. You can build an AssetBundle through scripting. Refer to the section on AssetBundle for more information on building AssetBundles in general.
To build an AssetBundle to undergo the same Dedicated Server optim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_902b27455a02 | unity_docs | rendering | What is `SystemInfo.SupportsTextureFormat` in Unity? Explain its purpose and usage. | SystemInfo.SupportsTextureFormat
Declaration
public static bool
SupportsTextureFormat
(
TextureFormat
format
);
Parameters
Parameter
Description
format
The
TextureFormat
format to look up.
Returns
bool
True if the format is supported.
Description
Is texture format supported on this device?
It is ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bcd54cc40c6b | unity_docs | math | What is `Rendering.RayTracingGeometryInstanceConfig.mask` in Unity? Explain its purpose and usage. | RayTracingGeometryInstanceConfig.mask
public uint
mask
;
Description
The ray tracing instance mask.
During acceleration structure traversal, the GPU accepts or rejects geometry based on the instance mask and InstanceInclusionMask specified when you call the
TraceRay
HLSL function, or when you execute ray quer... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ab78ff58411c | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.AddPublicHeaderToBuild`. | rget, such as the one returned by
TargetGuidByName
.
fileGuid
The file GUID returned by
AddFile
or
AddFolderReference
.
Description
Configures a file for building for the given native target as a public header.
In projects containing multiple native targets, you can configure a file to build in all, some, or, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d4f624c1bc7e | unity_docs | physics | Show me a Unity C# example demonstrating `ArticulationBody.GetAccumulatedForce`. | or3
GetAccumulatedForce
(float
step
= Time.fixedDeltaTime);
Parameters
Parameter
Description
step
The timestep of the next physics simulation.
Returns
Vector3
Accumulated force expressed in
ForceMode.Force
.
Description
Returns the force that the
ArticulationBody
has accumulated before the simulat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3bf05895dcca | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.SearchAction.enabled`. | SearchAction.enabled
public Func<IReadOnlyCollection<SearchItem>,bool>
enabled
;
Description
Callback used to check if the action is enabled based on the current context.
```
new SearchAction("scene", "toggle_cast_shadows", new GUIContent("Toggle Cast Shadows", null, "Toggle Cast Shadows on a Mesh"))
{
// Only... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad10b1e34bc8 | unity_docs | rendering | Give me an overview of the `ParticleSystemShapeMultiModeValue` class in Unity. | ParticleSystemShapeMultiModeValue
enumeration
Description
The mode used to generate new points in a shape.
Properties
Property
Description
Random
Generate points randomly. (Default)
Loop
Animate the emission point around the shape.
PingPong
Animate the emission point around the shape, alternating between cloc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2d79ce5e3666 | unity_docs | scripting | What is `Experimental.GraphView.GraphView.FramePrev` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.FramePrev
Declaration
public
Experimental.GraphView.EventPropagation
FramePrev
();
Declaration
public
Experimental.GraphView.EventPropagation
FramePrev
(Func<GraphElement,bool>
predicate
);
Parameters
Param... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_69662221452f | unity_docs | scripting | What is `SceneManagement.SceneManager.MoveGameObjectToScene` in Unity? Explain its purpose and usage. | SceneManager.MoveGameObjectToScene
Declaration
public static void
MoveGameObjectToScene
(
GameObject
go
,
SceneManagement.Scene
scene
);
Parameters
Parameter
Description
go
GameObject to move.
scene
Scene to move into.
Description
Move a GameObject from its current Scene to a new Scene.
You can only... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0a82d3000db7 | unity_docs | editor | Show me a Unity C# example demonstrating `VersionControl.VersionControlAttribute.ctor`. | VersionControlAttribute Constructor
Declaration
public
VersionControlAttribute
(string
name
,
string
displayName
);
Parameters
Parameter
Description
name
Version control system name.
displayName
Version control system display name.
Description
Constructs VersionControlAttribute.
Display name is optiona... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3371d7df42dc | unity_docs | scripting | What is `CustomYieldInstruction.keepWaiting` in Unity? Explain its purpose and usage. | CustomYieldInstruction.keepWaiting
public bool
keepWaiting
;
Description
Indicates if coroutine should be kept suspended.
To keep coroutine suspended, return
true
. To let coroutine proceed with execution, return
false
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d726dd8d12ac | unity_docs | physics | Show me a Unity C# example demonstrating `MonoBehaviour.IsInvoking`. | MonoBehaviour.IsInvoking
Declaration
public bool
IsInvoking
(string
methodName
);
Description
Is any invoke on
methodName
pending?
```csharp
using UnityEngine;
using System.Collections.Generic;// Instantiates a projectile two seconds after the spacebar was pressed.
// LaunchProjectile is called when a previ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_353ded892370 | unity_docs | input | Show me a Unity code example for 'Create a custom control'. | r application.
After you have created a custom control, you can style it with USS and add logic to handle events in C#.
## Create and use a custom control
To create a custom control, do the following:
Add the UxmlElement attribute to the custom control class definition.
Declare the custom control class as a partial c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ef7806fca78 | unity_docs | scripting | Give me an overview of the `RigidbodyConstraints` class in Unity. | RigidbodyConstraints
enumeration
Description
Use these flags to constrain motion of Rigidbodies.
Additional resources:
Rigidbody.constraints
. This enables you to freeze positions and rotations on all axes.
```csharp
//This example shows how RigidbodyConstraints is used to freeze the position and rotation of a R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d0898fe4b2b | unity_docs | scripting | What is `Resources.InstanceIDIsValid` in Unity? Explain its purpose and usage. | Resources.InstanceIDIsValid
Declaration
public static bool
InstanceIDIsValid
(int
instanceId
);
Parameters
Parameter
Description
instanceID
ID of an Object.
Description
Returns true if the given instance ID corresponds to a valid Object in memory. The Object could have been deleted or not loaded into memor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_76657a1906e7 | unity_docs | editor | What is `iOS.Xcode.PBXProject.TargetGuidByName` in Unity? Explain its purpose and usage. | PBXProject.TargetGuidByName
Declaration
public string
TargetGuidByName
(string
name
);
Parameters
Parameter
Description
name
The name of the native target.
Returns
string
The GUID identifying the native target.
Description
Returns the GUID of the native target with the given name.
Note
: To retrieve... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9aada41b3564 | unity_docs | editor | In Unity's 'Create your own overlay', what is 'Understand EditorToolbarElement' and how does it work? | A toolbar element can contain text, an icon, or a combination of both.
Use
EditorToolbarElement(Identifier, EditorWindowType)
to register toolbar elements to use in ToolbarOverlay implementations.
You can inherit from any VisualElement type and create styling yourself, but toolbar elements require specific styling. It ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d36ad400cae | unity_docs | scripting | What is `Rendering.VirtualTexturing.GPUCacheSetting` in Unity? Explain its purpose and usage. | Virtual Texturing is experimental and not ready for production use. The feature and documentation might be changed or removed in the future.
GPUCacheSetting
struct in
UnityEngine.Rendering.VirtualTexturing
/
Implemented in:
UnityEngine.VirtualTexturingModule
Description
Settings for a virtual texturing GPU cach... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7f9402f4e9f4 | unity_docs | rendering | What is `ParticleSystemRenderer.velocityScale` in Unity? Explain its purpose and usage. | ParticleSystemRenderer.velocityScale
public float
velocityScale
;
Description
Specifies how much particles stretch depending on their velocity.
Use this to make particles get longer as their speed increases.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a25c21329a6e | unity_docs | scripting | What is `MPE.ProcessService.ReadParameter` in Unity? Explain its purpose and usage. | ProcessService.ReadParameter
Declaration
public static string
ReadParameter
(string
paramName
);
Parameters
Parameter
Description
paramName
Specific name of a command line parameter.
Returns
string
The parameter value. If empty, the parameter wasn't used on the command line.
Description
A utility fun... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b46ec9d4e49a | unity_docs | scripting | What is `UIElements.IEventHandler.HasTrickleDownHandlers` in Unity? Explain its purpose and usage. | IEventHandler.HasTrickleDownHandlers
Declaration
public bool
HasTrickleDownHandlers
();
Returns
bool
True if the object already has event handlers for the TrickleDown phase.
Description
Returns true if event handlers, for the event propagation TrickleDown phase, are attached to this object. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_94be208b834a | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchIndexer.GetDocument`. | SearchIndexer.GetDocument
Declaration
public
Search.SearchDocument
GetDocument
(int
index
);
Parameters
Parameter
Description
index
Valid index of the document to access.
Returns
SearchDocument
Indexed search document.
Description
Returns a search document by its index.
```csharp
using UnityEditor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d89d41dc34b7 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.RemoveBuildConfig`. | configuration.
Description
Removes all build configurations with the given name from 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 function do... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6887b9b44c6e | unity_docs | rendering | Explain '2D and 3D mode settings' in Unity. | When creating a new Project, you can specify whether to start the Unity Editor in 2D mode or 3D mode. However, you also have the option of switching the Editor between 2D mode and 3D mode at any time. You can read more about
the difference between 2D and 3D Projects here
. This page provides information about how to sw... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_00cdb324b99a | unity_docs | scripting | What is `Unity.Profiling.DebugScreenCapture` in Unity? Explain its purpose and usage. | DebugScreenCapture
struct in
Unity.Profiling
/
Implemented in:
UnityEngine.CoreModule
Description
A raw data representation of a screenshot.
The representation is populated by the Profiling API internals with data about the correlating screenshot. You can use this type to extract the screenshot data.
Propertie... | 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.