id stringlengths 15 22 | source stringclasses 2
values | category stringclasses 12
values | instruction stringlengths 22 180 | response stringlengths 100 46.1k | system stringclasses 5
values |
|---|---|---|---|---|---|
local_man_bf7a6061610d | unity_docs | xr | Explain 'Magic Leap XR Plugin' in Unity. | com.unity.xr.magicleap
## Description
Provides rendering and spatial mapping support for Magic Leap 2.
This package will be deprecated after Unity 6.
(See Documentation for more detailed information.)
## Released for Unity
Package version 7.0.0 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_man_808984c7422f | unity_docs | physics | In Unity's 'Custom scripting symbols', what is 'Custom symbols for the whole project' and how does it work? | You can define custom scripting symbols that apply for the whole project with a
response file
asset as follows:
Name the file
csc.rsp
and place it in the root of your project’s Assets folder.
Define scripting symbols on lines that start with
-define:
, followed by one or more semicolon-separated scripting symbols.
Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9f7e90019bf | unity_docs | rendering | What is `Windows.WebCam.CameraParameters` in Unity? Explain its purpose and usage. | CameraParameters
struct in
UnityEngine.Windows.WebCam
/
Implemented in:
UnityEngine.CoreModule
Description
When calling
PhotoCapture.StartPhotoModeAsync
, you must pass in a CameraParameters object that contains the various settings that the web camera will use.
Properties
Property
Description
cameraResolut... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a96513bb1158 | unity_docs | rendering | In Unity's 'Set the color of a material in the Standard Shader', what is 'Set a texture' and how does it work? | To assign a texture to a material, drag the texture asset from the
Project window
to the Albedo property.
Unity uses the swatch color to tint the texture.
The alpha channel of the texture controls the transparency of the material. Refer to Transparency for more information.
Refer to Textures for more information about ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a6293a49e86e | unity_docs | editor | What are the parameters of `EditorGUILayout.LinkButton` in Unity? | Returns bool true when the user clicks the link. Description Make a clickable link label. The label has an hyperlink style and returns true when clicked. ```csharp
using UnityEditor;
using UnityEngine;class EditorGUILayoutLinkButton : EditorWindow
{
[MenuItem("Examples/EditorGUILayoutLinkButton")]
static void I... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_8bc1324ae0ec | github | scripting | Write a Unity C# XR/VR script for Control Hand | ```csharp
// Copyright (c) 2022 Takahiro Miyaura
// Released under the MIT license
// http://opensource.org/licenses/mit-license.php
using System.Linq;
using UnityEngine;
using UnityEngine.InputSystem;
namespace ReSeul.OpenXRSample
{
public class ControlHand : MonoBehaviour
{
private bool isToggle;
... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_00855d40d4d5 | unity_docs | ui | What is `UIElements.UsageHints` in Unity? Explain its purpose and usage. | UsageHints
enumeration
Description
Offers a set of options that describe the intended usage patterns of a
VisualElement
.
These options serve as guidance for optimizations. You can set multiple
usage hints on an element. For example, if both position and color change, you can set both
DynamicTransform and Dyna... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_932664390668 | unity_docs | math | What is `ArticulationBody.angularVelocity` in Unity? Explain its purpose and usage. | ArticulationBody.angularVelocity
public
Vector3
angularVelocity
;
Description
The angular velocity of the body defined in world space.
Setting a specific angular velocity only affects the root articulation body.
Unit of measurement - radians per second. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c079ccda795d | unity_docs | rendering | In Unity's 'Velocity over Lifetime module reference', what is 'Properties' and how does it work? | For some properties in this section, you can use different modes to set their value. For information on the modes you can use, refer to
Vary Particle System properties over time
.
Property Function Linear X, Y, Z
Linear velocity of particles in the X, Y and Z axes.
Space
Specifies whether the
Linear X, Y, Z
axes refer ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d75bc21c178f | unity_docs | math | What are the parameters of `Mesh.SetBoneWeights` in Unity? | Description Sets the bone weights for the Mesh. Supports up to 255 bone weights per vertex. The bone weights for each vertex must be sorted with the most significant weights first. Zero weights will be ignored. The weights may be stored with less precision than the floating point values passed in, so do not expect to g... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c4cebf03057d | unity_docs | scripting | Give me an overview of the `TerrainLayerInspector` class in Unity. | TerrainLayerInspector
class in
UnityEditor
/
Inherits from:
Editor
Description
The default Inspector class for Terrain Layer.
Call
Editor.CreateEditor
with a TerrainLayer object to construct a TerrainLayerInspector object.
Additional resources:
TerrainLayer
.
Public Methods
Method
Description
ApplyCustom... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_afafcb012b4a | unity_docs | ui | Explain 'UIE-transition-event-example' in Unity. | ## Create a transition event
Version
: 2021.3+
This example demonstrates the lifecycle of a transition event.
## Example overview
The example creates a custom Editor window with a button and color palette. If you click the button, the following appears:
A transition starts to change the color palette from blue to gr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cbfc28c2303f | unity_docs | math | What is `ArrayUtility.LastIndexOf` in Unity? Explain its purpose and usage. | ArrayUtility.LastIndexOf
Declaration
public static int
LastIndexOf
(T[]
array
,
T
value
);
Returns
int
The zero-based index of the element, if found; otherwise -1.
Description
Index of the last element with value
value
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6dcc245d1773 | unity_docs | scripting | Show me a Unity C# example demonstrating `Vector3.Project`. | e infinite line in the direction of
onNormal
that's closest to the point specified by
vector
.
The function returns a zero vector if
onNormal
is almost zero.
onNormal
doesn't need to be a normalized vector.
You can use projection to work out the closest point along a line to a target vector. This information ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_268d4ec42a2c | unity_docs | scripting | Show me a Unity code example for 'Add an Animation Event'. | Use an
Animation Event
to call a function at a specific point in time. This function can be in any script attached to the GameObject but must only accept a single parameter of type float ,
int
,
string
, an object reference, or an AnimationEvent object.
For example, the following script accepts a string. It logs the ti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8ead751ba96d | unity_docs | editor | What is `BuildAssetBundleOptions.DisableLoadAssetByFileName` in Unity? Explain its purpose and usage. | BuildAssetBundleOptions.DisableLoadAssetByFileName
Description
Disables Asset Bundle LoadAsset by file name.
Asset Bundles by default have three ways to look up the same asset: full asset path, asset file name, and asset file name with extension. The full path is serialized into Asset Bundles, while file name and f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7d3254147b5a | unity_docs | scripting | What is `SceneManagement.EditorSceneManager.newSceneCreated` in Unity? Explain its purpose and usage. | EditorSceneManager.newSceneCreated
Description
This event is called after a new Scene has been created.
This can be useful to add your own default GameObjects to a Scene.
Use the setup argument to determine if any standard objects have already been added to the Scene or if the Scene is empty.
Use the mode to determ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0af0c25c9110 | unity_docs | scripting | What is `UIElements.ScrollViewMode.Horizontal` in Unity? Explain its purpose and usage. | ScrollViewMode.Horizontal
Description
Configure
ScrollView
for horizontal scrolling.
Requires elements with the width property explicitly defined. A ScrollView configured with this mode has the
ScrollView.horizontalVariantUssClassName
class in its class list.
If
ScrollView
is set to flex-grow or if it's... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_28b523a24662 | unity_docs | rendering | What is `Rendering.BuiltinShaderDefine.UNITY_UNIFIED_SHADER_PRECISION_MODEL` in Unity? Explain its purpose and usage. | BuiltinShaderDefine.UNITY_UNIFIED_SHADER_PRECISION_MODEL
Description
Unity sets UNITY_UNIFIED_SHADER_PRECISION_MODEL if, in Player Settings, you set
Shader Precision Model
to Unified.
If set, the default sampler precision is full precision on all platforms. In addition, shader type
half
is defined as
min16floa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4e271cdbe692 | unity_docs | scripting | What is `SerializedObject` in Unity? Explain its purpose and usage. | SerializedObject
class in
UnityEditor
Description
SerializedObject and
SerializedProperty
are classes for editing serialized fields on
Unity objects
in a completely generic way. These classes automatically handle dirtying individual serialized fields so they will be processed by the
Undo
system and styled co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d9250fdd7115 | unity_docs | scripting | Explain 'Human Template window' in Unity. | A
Human Template
file (
*.ht
) stores a Humanoid bone mapping for a Model that you
saved on the Avatar window
in a YAML format:
The
Human Template
window displays the contents of Human Template files as standard Unity text boxes.
Each grouping represents an entry in the YAML file, with the name of the bone mapping targ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d73fab263b02 | unity_docs | rendering | What is `U2D.SpriteAtlasExtensions.SetVariantScale` in Unity? Explain its purpose and usage. | SpriteAtlasExtensions.SetVariantScale
Declaration
public static void
SetVariantScale
(
U2D.SpriteAtlas
spriteAtlas
,
float
value
);
Parameters
Parameter
Description
value
Recommended value is [0.1 ~ 0.99].
Description
Set the value used to downscale the master's texture.
While packing a variant
SpriteA... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_88da4f83f1a7 | unity_docs | math | Show me a Unity C# example demonstrating `Gizmos.DrawLineList`. | Description
Draws multiple lines between pairs of points.
This function provides a more efficient way to draw multiple lines than repeatedly calling the
Gizmos.DrawLine
function for each one.
Each pair of points from the
points
span represents the start and end of each line, so Unity draws the first line from
po... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_def871b46bd6 | unity_docs | rendering | What are the parameters of `Material.GetFloat` in Unity? | Description Get a named float value. Additional resources: SetFloat , Materials , ShaderLab documentation , Shader.PropertyToID . ```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Renderer rend = GetComponent<Renderer> ();
rend.material.shader = Shader.Find("Specu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_edf9c199a6ea | unity_docs | rendering | What is `TextureImporterMipFilter` in Unity? Explain its purpose and usage. | TextureImporterMipFilter
enumeration
Description
Mip map filter for
TextureImporter
.
Additional resources:
TextureImporter.mipmapFilter
.
Properties
Property
Description
BoxFilter
Box mipmap filter.
KaiserFilter
Kaiser mipmap filter. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9055363c7f75_doc_5 | github | scripting | What does `AfterWait` do in this Unity script? Explain its purpose and signature. | Starts a coroutine that waits for a specified number of secondsand then calls the specified action.The MonoBehaviour that the coroutine is attached to.The action to call after the wait.The number of seconds to wait.If true, the wait time is real-time, otherwise it is game-time.The coroutine that was started.
Signature... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_03d0c0330042 | unity_docs | scripting | Show me a Unity C# example demonstrating `Handles.FreeMoveHandle`. | ove freely in all directions. Hold down Ctrl (Cmd on macOS) to snap to the grid (see
PositioningGameObjects
). Hold Ctrl-Shift (Cmd-Shift on macOS) to snap the object to any Collider surface under the mouse pointer.
Free Move handle in the Scene View.
Add the following script to your Assets folder as FreeMoveHandleE... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2d12a63db146 | unity_docs | math | What is `Vector2.Perpendicular` in Unity? Explain its purpose and usage. | Vector2.Perpendicular
Declaration
public static
Vector2
Perpendicular
(
Vector2
inDirection
);
Parameters
Parameter
Description
inDirection
The input direction.
Returns
Vector2
The perpendicular direction.
Description
Returns the 2D vector perpendicular to this 2D vector. The result is always rota... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fc7efbfa3ab8 | unity_docs | rendering | Show me a Unity C# example demonstrating `Material.Lerp`. | t values of a material be interpolated from
start
to
end
,
based on
t
.
When
t
is 0, all values are taken from
start
.
When
t
is 1, all values are taken from
end
.
Most often you want the materials that are interpolated between to be the same
(use the same shaders and textures) except for colors and floats.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f232a058db82 | unity_docs | scripting | What is `IMGUI.Controls.MultiColumnHeader.ColumnHeaderClicked` in Unity? Explain its purpose and usage. | MultiColumnHeader.ColumnHeaderClicked
Declaration
protected void
ColumnHeaderClicked
(
IMGUI.Controls.MultiColumnHeaderState.Column
column
,
int
columnIndex
);
Parameters
Parameter
Description
column
Column clicked.
columnIndex
Column index clicked.
Description
Override to customize the behavior when c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e71880e473fd | unity_docs | physics | What is `PhysicsScene2D.OverlapPoint` in Unity? Explain its purpose and usage. | PhysicsScene2D.OverlapPoint
Declaration
public
Collider2D
OverlapPoint
(
Vector2
point
,
int
layerMask
= Physics2D.DefaultRaycastLayers);
Declaration
public
Collider2D
OverlapPoint
(
Vector2
point
,
ContactFilter2D
contactFilter
);
Parameters
Parameter
Description
point
A point in world space... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aa91f0873e82 | unity_docs | editor | What is `PlayerSettings.Android.minSdkVersion` in Unity? Explain its purpose and usage. | PlayerSettings.Android.minSdkVersion
public static
AndroidSdkVersions
minSdkVersion
;
Description
The minimum API level required for your application to run.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class MinSdkVersionSample : MonoBehaviour
{
[MenuItem("Build/MinSdkVers... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9fbf20edee71 | unity_docs | scripting | What is `Video.VideoClip.frameCount` in Unity? Explain its purpose and usage. | VideoClip.frameCount
public ulong
frameCount
;
Description
The length of the video clip in frames. (Read Only).
It’s useful to know the length of a video in frames to ensure any effects you play on a video play within the time frame of the video.
VideoClip
extracts the frame count from the metadata of the fil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a51eb156bda7 | unity_docs | rendering | Show me a Unity C# example demonstrating `ParticleSystem.textureSheetAnimation`. | e numbers 5-8.
Each numbered region represents a frame of the animation, and must be distributed evenly across the texture.
Select a variable below to see script examples. You may want to use this texture on your Particle System with each example, to see how the module works.
Particle System modules do not need to be r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2454ac52e300 | unity_docs | scripting | What is `Rendering.GraphicsSettings.currentRenderPipelineAssetType` in Unity? Explain its purpose and usage. | GraphicsSettings.currentRenderPipelineAssetType
public static Type
currentRenderPipelineAssetType
;
Description
The type of the currently active
RenderPipelineAsset
, or
null
if there's no currently active Asset. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1cb4659272a5 | unity_docs | rendering | In Unity's 'Properties block reference in ShaderLab', what is 'Material property declarations' and how does it work? | All material property declarations follow this basic format:
```
[optional: attribute] name("display text in Inspector", type name) = default value
```
The exact syntax varies by type.
This section contains information on:
Material property declaration syntax by type
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2006bc97517c | unity_docs | physics | Show me a Unity C# example demonstrating `Collider.OnTriggerStay`. | 't necessarily run every frame.
This message is sent to the trigger and the collider that touches the trigger.
Note that trigger events are only sent if one of the colliders also has a rigidbody attached. Trigger events will be sent to disabled MonoBehaviours, to allow enabling Behaviours in response to collisions.
Ad... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_63223fda2a50 | unity_docs | ui | Show me a Unity code example for 'Handle event callbacks and value changes'. | an event twice:
Once during the trickle-down phase.
Once during the bubble-up phase.
By default, a registered callback executes during the target phase and the bubble-up phase. This default behavior ensures that a parent element reacts after its child element.
However, if you want a parent element to react before its c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9cbe04920e08 | unity_docs | scripting | What is `Profiling.HierarchyFrameDataView.GetItemMarkerFlags` in Unity? Explain its purpose and usage. | HierarchyFrameDataView.GetItemMarkerFlags
Declaration
public
Unity.Profiling.LowLevel.MarkerFlags
GetItemMarkerFlags
(int
id
);
Parameters
Parameter
Description
id
Hierarchy item identifier.
Returns
MarkerFlags
Marker usage flags.
Description
Use to retrieve a marker usage flags.
Marker usage flag... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_47f40c01ad9c | unity_docs | rendering | What is `Experimental.Rendering.GraphicsFormatUtility.ComputeMipmapSize` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.ComputeMipmapSize
Declaration
public static uint
ComputeMipmapSize
(int
width
,
int
height
,
Experimental.Rendering.GraphicsFormat
format
);
Declaration
public static uint
ComputeMipmapSize
(int
wi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f13eb8c5ad32 | unity_docs | rendering | What is `U2D.SpriteAtlasAsset.SetIsVariant` in Unity? Explain its purpose and usage. | SpriteAtlasAsset.SetIsVariant
Declaration
public void
SetIsVariant
(bool
value
);
Description
Sets whether this Sprite Atlas is a Variant or not.
A Variant does not repack a new Texture from the packable list. Instead, it duplicates the Master Atlas's packed Texture and downscale it by the SpriteAtlasExtension... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cdefdde71f08 | unity_docs | performance | What is `Unity.Profiling.LowLevel.Unsafe.ProfilerRecorderDescription.NameUtf8` in Unity? Explain its purpose and usage. | ProfilerRecorderDescription.NameUtf8
public byte*
NameUtf8
;
Description
The name of the Profiler metric as a pointer to UTF-8 byte array.
The name points to the unmanaged null-terminated string which is valid for the whole application lifetime. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b9869e664948 | unity_docs | editor | What is `Compilation.ScriptCompilerOptions.RoslynAnalyzerRulesetPath` in Unity? Explain its purpose and usage. | ScriptCompilerOptions.RoslynAnalyzerRulesetPath
public string
RoslynAnalyzerRulesetPath
;
Description
Stores the path to the Roslyn ruleset file.
You can define your own rules on how to handle the various warnings and errors that Roslyn analyzers raise. You must put these rules inside a file with the .ruleset e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7463439fa02f | unity_docs | rendering | What is `Camera.activeTexture` in Unity? Explain its purpose and usage. | Camera.activeTexture
public
RenderTexture
activeTexture
;
Description
Gets the temporary RenderTexture target for this Camera.
The current Camera being rendered applies its image to this temporary render target. The render target is accessible in the Camera's OnPostRender method. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a64d2250eb51 | github | scripting | Write a Unity C# XR/VR script for Human Body Tracker | ```csharp
using System.Collections.Generic;
using System.Text;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
using UnityEngine.XR.ARSubsystems;
namespace UnityEngine.XR.ARFoundation.Samples
{
public class HumanBodyTracker : MonoBehaviour
{
[SerializeField]
[Tooltip("The Skeleton prefab... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_8c50690fcfec | unity_docs | rendering | Show me a Unity C# example demonstrating `Search.FetchPreviewOptions.Large`. | FetchPreviewOptions.Large
Description
Indicates that the preview resolution should be higher than 256x256.
```
static Texture2D FetchPreview(SearchItem item, SearchContext context, Vector2 size, FetchPreviewOptions options)
{
var obj = ObjectFromItem(item);
if (obj == null)
return item.thumbnail;
var assetPath... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_27fd379aa3c9 | unity_docs | scripting | What is `Progress.Cancel` in Unity? Explain its purpose and usage. | Progress.Cancel
Declaration
public static bool
Cancel
(int
id
);
Parameters
Parameter
Description
id
The progress indicator's unique ID.
Returns
bool
True if the associated task is cancelled, false if it cannot be cancelled.
Description
Cancels a runnning progress indicator, and invokes the cancel ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8a3977c10166 | unity_docs | ui | Show me a Unity code example for 'Create a runtime binding with a type converter'. | reate a data source asset that contains the properties you want to bind to. In this example, you create a ScriptableObject asset named ExampleConverterObject that contains a local converter that converts a float to a Color and a
string
.
Create a project in Unity with any template.
In the Assets folder of your project,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bb11a5436393 | unity_docs | ui | Explain 'Configuring how Unity enters Play mode' in Unity. | The ability to test your application by switching from Edit mode to Play mode is one of Unity’s core features. You can use Play mode to run your project directly inside the Editor, through the Play button in the
Toolbar
.
Play mode is intended to provide a realistic preview of how your application is likely to behave f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_93eaf7608dcf | unity_docs | ui | Explain 'Panels' in Unity. | The panel is the parent object of a
visual tree
. It owns the rootVisualElement but itself isn’t a
visual element
. A visual tree must connect to a panel for the visual elements inside a tree to render. All panels belong to either an
Editor Window
or a runtime
UIDocument
. The panel also handles focus control and event... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c87e478288e | unity_docs | editor | What is `AI.NavMeshBuildDebugFlags.Voxels` in Unity? Explain its purpose and usage. | NavMeshBuildDebugFlags.Voxels
Description
The voxels produced by rasterizing the source geometry into walkable and unwalkable areas.
Additional resources:
NavMeshBuildSettings.voxelSize
,
NavMeshBuildSettings.debug
,
NavMeshEditorHelpers.DrawBuildDebug
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c7a672f6b158 | unity_docs | scripting | Explain 'Auto Layout' in Unity. | The
auto layout
system provides ways to place elements in nested layout groups such as horizontal groups, vertical groups, or grids. It also allows elements to automatically be sized according to the contained content.
Topic Description Layout Element
Controls the minimum, preferred, and flexible sizes of a layout elem... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e88aa342a4c2_doc_12 | github | scripting | What does `BlockUser` do in this Unity script? Explain its purpose and signature. | "Block" a user, bidirectionally muting audio/text between that player and the local user.Block state, True is blocked otherwise is unblockChannel nameThe userid to bidirectionally mute or unmute
Signature:
```csharp
public void BlockUser(bool _block, string _channelId, string _userId)
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_f22352fc621d | unity_docs | editor | Show me a Unity C# example demonstrating `UIElements.DropdownMenu.AppendAction`. | The callback to execute when the user selects this item in the menu.
actionStatusCallback
The callback to execute to determine the status of this item.
userData
The object to store in the <b>userData</b> property of the <see cref="DropdownMenuAction" /> item.
Description
Adds an item that executes an action in t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7f49e4510e64 | unity_docs | scripting | What is `Rendering.VertexAttributeFormat.UInt16` in Unity? Explain its purpose and usage. | VertexAttributeFormat.UInt16
Description
16-bit unsigned integer.
This format matches the @ushort@ data type in C#, with values ranging from 0 to 65535.
Additional resources:
Mesh
class,
VertexAttribute
enum,
Mesh.GetVertexAttributeFormat
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_87e37384d3b2 | unity_docs | rendering | What is `MaterialPropertyBlock.GetColor` in Unity? Explain its purpose and usage. | MaterialPropertyBlock.GetColor
Declaration
public
Color
GetColor
(string
name
);
Declaration
public
Color
GetColor
(int
nameID
);
Parameters
Parameter
Description
nameID
The name ID of the property retrieved by
Shader.PropertyToID
.
name
The name of the property.
Description
Get a color from th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_5c4414378937 | github | scripting | Write a Unity C# script called Angular Resizing Elements Manager | ```csharp
using System;
using System.Collections.Generic;
using System.Linq;
using CoreLibrary;
using UIToolkitXRAdapter.AngularResizing.DefaultElements;
using UIToolkitXRAdapter.AngularResizing.FontHeightOnlyTextElements;
using UIToolkitXRAdapter.XRAdapter;
using UnityEngine;
using UnityEngine.UIElements;
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d0aec584edf5 | unity_docs | networking | What is `Profiling.Profiler.maxUsedMemory` in Unity? Explain its purpose and usage. | Profiler.maxUsedMemory
public static int
maxUsedMemory
;
Description
Sets the maximum amount of memory that Profiler uses for buffering data. This property is expressed in bytes.
When Profiler is enabled, it collects data continuously and either saves the data to a file or sends it to the Editor.
Depending on d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_62438e95dc69 | unity_docs | scripting | What is `Animations.AnimatorJobExtensions.BindSceneProperty` in Unity? Explain its purpose and usage. | AnimatorJobExtensions.BindSceneProperty
Declaration
public static
Animations.PropertySceneHandle
BindSceneProperty
(
Animator
animator
,
Transform
transform
,
Type
type
,
string
property
);
Declaration
public static
Animations.PropertySceneHandle
BindSceneProperty
(
Animator
animator
,
Transform
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7f309ff8e54c | unity_docs | scripting | Explain 'VFX Project Settings' in Unity. | The VFX tab in the
Project Settings
window controls settings relevant to the Visual Effect Graph.
This tab is only visible if you install the Visual Effect Graph package. For information on how to install the Visual Effect Graph, see the
packages documentation
.
For information on the properties in this tab, see the Vi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bd14fa1d6d14 | github | scripting | Write a Unity C# UI script for Button Component | ```csharp
using UnityEngine;
using UnityEngine.UI;
namespace GI.UnityToolkit.Components.UI
{
[RequireComponent(typeof(Button))]
public abstract class ButtonComponent : MonoBehaviour
{
protected Button Button { get; private set; }
protected void Awake()
{
Button = GetCom... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_6961c68fea30 | unity_docs | scripting | Show me a Unity C# example demonstrating `Random.InitState`. | e
Random
for more information on this) but if you want to randomize it later on, you can use
Random.InitState((int)DateTime.Now.Ticks)
.
The seed cannot be retrieved once set - the pseudorandomization algorithm stores its internal state in a more complex set of numbers. However, this state can be loaded and stored v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6efc1e18dd78 | unity_docs | physics | What is `RigidbodyType2D.Dynamic` in Unity? Explain its purpose and usage. | RigidbodyType2D.Dynamic
Description
Sets the
Rigidbody2D
to have dynamic behaviour.
Dynamic behaviour causes the
Rigidbody2D
to react to gravity and applied forces including contacts with other dynamic or
Kinematic
Rigidbody2D
.
This type of
Rigidbody2D
should be moved using forces and never repositioned e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_775bf781f268_doc_0 | github | scripting | What does `OnEnable` do in this Unity script? Explain its purpose and signature. | A Unity event function that is called when the script component has been enabled.
Signature:
```csharp
protected virtual void OnEnable()
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_b90f188a0268 | unity_docs | scripting | What is `GUISkin.horizontalScrollbarThumb` in Unity? Explain its purpose and usage. | GUISkin.horizontalScrollbarThumb
public
GUIStyle
horizontalScrollbarThumb
;
Description
Style used by default for the thumb that is dragged in
GUI.HorizontalScrollbar
controls.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Modifies only the horizontal scrollbar thumb of the current... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e5deaaaa0be1 | unity_docs | input | What is `IMGUI.Controls.TreeViewSelectionOptions` in Unity? Explain its purpose and usage. | TreeViewSelectionOptions
enumeration
Description
Enum used by the
TreeView.SetSelection
method.
Properties
Property
Description
None
If this flag is passed to TreeView.SetSelection no extra logic is be performed after setting selection.
FireSelectionChanged
If this flag is passed to TreeView.SetSelection the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4a884d2ce320 | unity_docs | scripting | What is `Rendering.RenderingLayersLimitSettings.maxRenderingLayersForPipeline` in Unity? Explain its purpose and usage. | RenderingLayersLimitSettings.maxRenderingLayersForPipeline
protected int
maxRenderingLayersForPipeline
;
Description
Define a maximum number of the supported Rendering Layers.
The number should be between 1 and 32. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cd815e316d85 | unity_docs | scripting | Give me an overview of the `DrawGizmo` class in Unity. | DrawGizmo
class in
UnityEditor
Description
The DrawGizmo attribute allows you to supply a gizmo renderer for any
Component
.
The renderer function must be static, and take two parameters: the object
for which the gizmo is being drawn, and a
GizmoType
parameter which indicates the context in which the gizmo is... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ddb45c6d420e | unity_docs | physics | What is `Collider2D.errorState` in Unity? Explain its purpose and usage. | Collider2D.errorState
public
ColliderErrorState2D
errorState
;
Description
The error state that indicates the state of the physics shapes the 2D Collider tried to create. (Read Only)
The 2D Collider can sometimes encounter an issue when creating the physics shapes which it represents. This can either be that ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8be26b21cfe6 | unity_docs | physics | In Unity's 'Android symbols', what is 'Debugging symbols' and how does it work? | A debugging symbols file contains full debugging information and a symbol table section. Use it to:
Resolve stack traces and to debug applications that you have source code available for.
Attach a native debugger to the application and debug the code.
Note:
If debugging symbols aren’t available, Unity places a
public s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b93009828ed1 | unity_docs | rendering | What is `QualitySettings.streamingMipmapsMemoryBudget` in Unity? Explain its purpose and usage. | QualitySettings.streamingMipmapsMemoryBudget
public static float
streamingMipmapsMemoryBudget
;
Description
The total amount of memory (in megabytes, or in bytes, depending on your platform) to be used by streaming and non-streaming textures.
Non-streaming textures will always be loaded at the largest mipmap l... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c29bb8be71d0 | unity_docs | ui | What is `EditorGUI.LogarithmicIntSlider` in Unity? Explain its purpose and usage. | EditorGUI.LogarithmicIntSlider
Declaration
public static int
LogarithmicIntSlider
(
Rect
position
,
string
label
,
int
sliderValue
,
int
leftValue
,
int
rightValue
,
int
logbase
,
int
textFieldMin
,
int
textFieldMax
);
Declaration
public static int
LogarithmicIntSlider
(
Rect
position
,
GUIContent
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3a6797ae7ec1 | unity_docs | editor | Give me an overview of the `SemanticMergeMode` class in Unity. | SemanticMergeMode
enumeration
Description
Behavior of semantic merge.
How the semantic merge of Scene and Prefab assets should behave.
Properties
Property
Description
Off
Disable use of semantic merging. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ef9246c5be15 | unity_docs | scripting | Give me an overview of the `HorizontalWrapMode` class in Unity. | HorizontalWrapMode
enumeration
Description
Wrapping modes for text that reaches the horizontal boundary.
Properties
Property
Description
Wrap
Text will word-wrap when reaching the horizontal boundary.
Overflow
Text can exceed the horizontal boundary. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a58df020e2ac | unity_docs | scripting | What is `AndroidJNI.PopLocalFrame` in Unity? Explain its purpose and usage. | AndroidJNI.PopLocalFrame
Declaration
public static IntPtr
PopLocalFrame
(IntPtr
ptr
);
Description
Pops off the current local reference frame, frees all the local references, and returns a local reference in the previous local reference frame for the given
result
object.
Additional resources:
Java Native In... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bdfadc67aae0 | unity_docs | rendering | Explain 'Line Renderer component reference' in Unity. | Explore properties and settings for the
Line Renderer
component reference, to configure and render a line between points in 3D space.
Page Description Scene Tools panel reference
Explore the properties for the Scene Tools
panel.
Line Renderer properties reference
Explore the properties for the
Line Renderer
properties. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_103a12bda9fb | unity_docs | rendering | What are the parameters of `ParticleSystemRenderer.EnableVertexStreams` in Unity? | Description Enable a set of vertex Shader streams on the Particle System renderer. Additional resources: ParticleSystemRenderer.DisableVertexStreams, ParticleSystem.SetCustomParticleData . ```csharp
using UnityEngine;
using UnityEditor;
using System.Collections.Generic;[RequireComponent(typeof(ParticleSystem))]
public ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e374901b0b4 | unity_docs | animation | What is `AnimationCurve.EaseInOut` in Unity? Explain its purpose and usage. | AnimationCurve.EaseInOut
Declaration
public static
AnimationCurve
EaseInOut
(float
timeStart
,
float
valueStart
,
float
timeEnd
,
float
valueEnd
);
Parameters
Parameter
Description
timeStart
The start time for the ease curve.
valueStart
The start value for the ease curve.
timeEnd
The end time for th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_42d0995543af | unity_docs | physics | What is `GameObject.CompareTag` in Unity? Explain its purpose and usage. | GameObject.CompareTag
Declaration
public bool
CompareTag
(string
tag
);
Parameters
Parameter
Description
tag
The tag to check for on the GameObject.
Returns
bool
true
if the GameObject has the given tag,
false
otherwise.
Description
Checks if the specified tag is attached to the GameObject.
The e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_65ce7486968f | unity_docs | rendering | In Unity's 'Self-Illuminated Parallax Specular', what is 'Self-Illuminated Properties' and how does it work? | Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shader allows you to define bright and dark parts of the object. The alpha channel of a secondary texture will define areas of the object that “emit” light by themselves, even when no light is shining on it. In the alpha channel, black is zer... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6ae031f5ee3a | unity_docs | performance | Show me a Unity C# example demonstrating `Unity.Profiling.ProfilerFlowEventType.Next`. | ProfilerFlowEventType.Next
Description
Use for the flow continuation point.
An example of a flow start point is job scheduling. For instance,
IJobExtensions.Schedule
generates an implicit
Begin
Profiler flow event and
IJob.Execute
generates an implicit
Next
event.
```csharp
using System;
using System.Threa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1219688d501b | unity_docs | rendering | Explain 'Addressables for Android' in Unity. | com.unity.addressables.android
## Description
The Addressables for Android package is designed to work in conjunction with the Addressables package to support Play Asset Delivery and provides tools to pack Addressables groups into Android asset packs. This way you can take full advantage of asset pack based dynamic d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_97778d04b8bb | unity_docs | physics | Show me a Unity C# example demonstrating `PhysicsShape2D.vertexStartIndex`. | PhysicsShape2D.vertexStartIndex
public int
vertexStartIndex
;
Description
The start index for the geometry of this shape within the
PhysicsShapeGroup2D
.
Multiple
PhysicsShape2D
in a
PhysicsShapeGroup2D
are represented as a single list of vertices. This index is the start of this shape within that list.
Ad... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_57e701eaa8a8 | unity_docs | rendering | What are the parameters of `ComputeShader.SetRayTracingAccelerationStructure` in Unity? | Description Sets a RayTracingAccelerationStructure to be used for Inline Ray Tracing (Ray Queries). Use SystemInfo.supportsInlineRayTracing to check at runtime if Inline Ray Tracing is supported by the system. In compute shaders, ray queries can be used to perform acceleration structure traversal and geometry intersect... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3335e2823bbf | github | scripting | Write a Unity C# UI script for Screen Clicked Unity Event | ```csharp
using System;
using RMC.Mini.View;
using RMC.Mini.Samples.CountUp.WithMini.Mini.Controller.Commands;
using RMC.Mini.Samples.CountUp.WithMini.Mini.Model;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;
namespace RMC.Mini.Samples.CountUp.WithMini.Mini.View
{
// Namespace Properties ----... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_fb6a92cb2c28 | unity_docs | editor | Explain 'Grid and snap shortcuts' in Unity. | Use these default Editor shortcuts to perform actions on the grid.
To change these default keyboard shortcuts, use the
Shortcuts Manager
.
Action
Default shortcut
Increase Grid Size
Ctrl
+
]
(macOS:
Command
+
]
)
Decrease Grid Size
Ctrl
+
[
(macOS:
Command
+
[
)
Push to Grid (Align Selection to Grid)
Ctrl
+
\
(macOS:
C... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_be37d0c04450 | unity_docs | editor | What are the parameters of `SceneManagement.EditorSceneManager.OpenPreviewScene` in Unity? | Returns Scene The created preview Scene. Description Opens a Scene Asset in a preview Scene. You can use this function for tooling that needs to access GameObjects but where the scene should not be displayed in the Hierarchy.
Make sure to call ClosePreviewScene to prevent leaking scenes. Additional resources: NewPrevie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2ac8ecc043d0 | unity_docs | rendering | Explain 'Skybox Shader Material Inspector window reference' in Unity. | Explore the properties of the Skybox Shader Material Inspector
windows.
Page Description 6 Sided Skybox Shader Material Inspector Window reference
Reference for the 6 Sided Skybox Shader.
Cubemap Skybox Shader Material Inspector Window reference
Reference for the Cubemap Skybox Shader.
Panoramic Skybox Shader Material ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d7810133f8c | unity_docs | rendering | What is `Rendering.RenderTargetBlendState.writeMask` in Unity? Explain its purpose and usage. | RenderTargetBlendState.writeMask
public
Rendering.ColorWriteMask
writeMask
;
Description
Specifies which color components will get written into the target framebuffer.
Additional resources:
ShaderLab: Blending
,
ColorWriteMask
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bfc8cf523856 | unity_docs | scripting | What is `SerializedObject.targetObject` in Unity? Explain its purpose and usage. | SerializedObject.targetObject
public Object
targetObject
;
Description
The inspected object (Read Only).
When multi-object editing, the targetObject property will just return the first of the edited objects.
To get all the objects, use the
targetObjects
property instead. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_033e4a9b6b18 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.B5G6R5_UNormPack16` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.B5G6R5_UNormPack16
Description
A three-component, 16-bit packed unsigned normalized format that has a 5-bit B component in bits 11..15, a 6-bit G component in bits 5..10, and a 5-bit R component in bits 0..4. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4746d8299a59 | unity_docs | networking | What is `Android.AndroidOrientation.Landscape` in Unity? Explain its purpose and usage. | AndroidOrientation.Landscape
Description
Mirrors the Android property value
ORIENTATION_LANDSCAPE
.
For information about the property value, refer to the Android developer documentation on
ORIENTATION_LANDSCAPE
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d7f227eb4e7 | unity_docs | scripting | What is `UIElements.CallbackEventHandler.RegisterCallback` in Unity? Explain its purpose and usage. | CallbackEventHandler.RegisterCallback
Declaration
public void
RegisterCallback
(EventCallback<TEventType>
callback
,
UIElements.TrickleDown
useTrickleDown
);
Parameters
Parameter
Description
callback
The event handler to add.
useTrickleDown
By default, this callback is called during the BubbleUp phase. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b6fbe7ce51c6 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.NoiseModule.octaveScale`. | ParticleSystem.NoiseModule.octaveScale
public float
octaveScale
;
Description
When combining each octave, zoom in by this amount.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleClass : MonoBehaviour
{
private ParticleSystem ps;
public floa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c91c17bd6cc3 | unity_docs | scripting | Explain 'Offline documentation' in Unity. | You can download the Unity Documentation as a zip file for offline use. To download the current version of the Unity Documentation, click the link below.
Download: Offline Unity Documentation
(Size: about 300MB)
The zip file contains the most up-to-date version of the
Unity Manual and Unity Scripting API
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_221ba07ccbc3 | unity_docs | math | What are the parameters of `LowLevelPhysics.ImmediatePhysics.GenerateContacts` in Unity? | Returns int Returns the total number of contact points that were generated. Description Generates the contact points for all the given pairs of shapes. Stores the resulting contacts in the ImmediateContact array, and the number of contacts per each pair in the `outContactCounts` array. This code sample defines how many... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a7dc23d0e664 | unity_docs | physics | What is `ArticulationBody.SetJointForces` in Unity? Explain its purpose and usage. | ArticulationBody.SetJointForces
Declaration
public void
SetJointForces
(List<float>
forces
);
Parameters
Parameter
Description
forces
Supplied list of floats used to set the joint forces.
Description
Assigns articulation body joint forces for the entire hierarchy of bodies.
This sets joint forces in the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b7018aa08fb3 | unity_docs | rendering | Explain 'Customize the global cache' in Unity. | The Package Manager maintains a
global cache
for compressed package contents and registry metadata.
The global cache is separate from the cache that the Package Manager maintains for asset packages. For information about the
asset package
cache, refer to
Customize the asset package cache location
.
By default, the Pack... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_dcd025c62afb_doc_12 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Gets a value indicating whether the user can click the add new input button.
Signature:
```csharp
protected virtual bool CanAddNewInput
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ff7fc0ca5d95 | unity_docs | physics | What is `Toolbars.EditorToolbarButton.ctor` in Unity? Explain its purpose and usage. | EditorToolbarButton Constructor
Declaration
public
EditorToolbarButton
();
Declaration
public
EditorToolbarButton
(
Unity.Android.Gradle.Manifest.Action
clickEvent
);
Declaration
public
EditorToolbarButton
(string
text
,
Unity.Android.Gradle.Manifest.Action
clickEvent
);
Declaration
public
EditorTo... | 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.