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_d712a1c01671 | unity_docs | physics | What is `MPE.ChannelService` in Unity? Explain its purpose and usage. | ChannelService
class in
UnityEditor.MPE
Description
The ChannelService encapsulates a WebSocket server running in Unity.
The ChannelService allows you to create new communication channels. A channel matches the route of the URL connecting to the ChannelService. For example, "127.0.0.1:9292/<channelName>"
The Chan... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5b72683986e8 | unity_docs | physics | What is `PhysicsMaterialCombine2D` in Unity? Explain its purpose and usage. | PhysicsMaterialCombine2D
enumeration
Description
Describes how
PhysicsMaterial2D
friction and bounciness are combined when two
Collider2D
come into contact.
When two
Collider2D
come into contact, each might has its own
PhysicsMaterial2D
assigned, and each with its own
PhysicsMaterial2D.friction
and
Phys... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c67b6fff85ce | github | scripting | Write a Unity C# script called Mapping Meta Data | ```csharp
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Bhaptics.SDK2
{
[Serializable]
internal class Device
{
public bool paired;
public string deviceName;
public int position;
public bool connected;
public string address... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_d28d5616c03d | unity_docs | rendering | Show me a Unity C# example demonstrating `PlayerSettings.Android`. | Android
class in
UnityEditor
Description
Android specific Player settings.
Use these settings to configure how Unity builds and displays your final application for the Android platform.
```csharp
using UnityEngine;
using UnityEditor;public class AndroidPlayerSettingsSamples : MonoBehaviour
{
[MenuItem("Tools/S... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_abb353beb025 | unity_docs | networking | Explain 'Set up your Node.js server configuration for Web builds' in Unity. | Create a Node.js server configuration file that lets your Node.js server work with your Unity Web build.
Node.js is an open-source runtime environment that lets you execute JavaScript code on the server side. In Unity, you can use a Node.js app to serve your Unity Web build.
For more information about Node.js and how t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d5f9d370f872_doc_14 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Stores the locomotion provider for continuous turning.
Signature:
```csharp
public ContinuousTurnProviderBase continuousTurnProvider
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_37b1ff2e91c5 | unity_docs | xr | In Unity's 'Unity XR Input', what is 'Accessing input devices by characteristics' and how does it work? | Device characteristics describe what a device is capable of, or what it’s used for (for example, whether it is head-mounted). The InputDeviceCharacteristics is a series of flags you can add to your code to search for devices that fit a certain specification. You can filter devices by the following characteristics:
Devi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_988a7dbda3b3 | unity_docs | scripting | What is `UIElements.BindingId` in Unity? Explain its purpose and usage. | BindingId
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Defines a binding property that serves as an identifier for the binding system.
Static Properties
Property
Description
Invalid
Returns an invalid binding property.
Constructors
Constructor
Descript... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7db878345368 | unity_docs | scripting | What is `DefaultAsset` in Unity? Explain its purpose and usage. | DefaultAsset
class in
UnityEditor
/
Inherits from:
Object
Description
DefaultAsset is used for assets that do not have a specific type (yet).
Search for
t:DefaultAsset
in the project browser to see which assets are of that type.
Inherited Members
Properties Property Description
hideFlags
Should the object ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_33d5575fb5fe | unity_docs | editor | What is `Search.QueryEngine_1.AddOperator` in Unity? Explain its purpose and usage. | QueryEngine<T0>.AddOperator
Declaration
public void
AddOperator
(string
op
);
Parameters
Parameter
Description
op
The operator identifier.
Description
Adds a custom filter operator.
```csharp
using System;
using System.Collections.Generic;
using System.Linq;
using UnityEditor;
using UnityEditor.Search;
us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bc8752737290 | unity_docs | physics | Show me a Unity code example for 'Articulation Body component reference'. | to the target.
Force limit
The maximum amount of force or torque this drive can produce.
Target
The target value this drive aims to reach.
Target velocity
The target velocity this drive aims to reach.
## Joint drive effect
Any drive is an implicit 1D spring that aims to bring the current drive parameters to the targe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89c4ef3d51a2 | unity_docs | scripting | What is `UIElements.IMixedValueSupport` in Unity? Explain its purpose and usage. | IMixedValueSupport
interface in
UnityEngine.UIElements
Description
An interface that allows value fields to visually represent a mixed value.
A mixed value refers to a situation where a value field is editing more than one value at a time.
For example, when selecting multiple objects and editing the selectio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d2866ac0070d | unity_docs | editor | What are the parameters of `Handles.DrawAAConvexPolygon` in Unity? | Description Draw anti-aliased convex polygon specified with point array. ```csharp
using UnityEditor;
using UnityEngine;
public class ArrowDrawer : MonoBehaviour
{
public void DrawArrow(Color color, float arrowThickness, float lineThickness, float shorten, Vector3 start, Vector3 end)
{
var length = (en... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_894f45db0391 | github | scripting | Write a Unity C# XR/VR script for Benchmark04 | ```csharp
using UnityEngine;
using System.Collections;
namespace TMPro.Examples
{
public class Benchmark04 : MonoBehaviour
{
public int SpawnType = 0;
public int MinPointSize = 12;
public int MaxPointSize = 64;
public int Steps = 4;
private Transform m_Transform... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_73c14997709d | unity_docs | scripting | What is `Search.StringView.IndexOf` in Unity? Explain its purpose and usage. | StringView.IndexOf
Declaration
public int
IndexOf
(stringView
other
,
stringComparison
sc
);
Parameters
Parameter
Description
other
A
StringView
.
sc
A string comparision option.
Returns
int
The first index where the
StringView
is found, otherwise -1.
Description
Returns the index of the first ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_40d98ec109c1 | unity_docs | rendering | Explain 'iOS build settings reference' in Unity. | Use the iOS build settings to configure and build your application for iOS devices. The iOS build settings are part of the
Platform Settings
section of the
Build Profiles
window.
Property Description Run in Xcode
Select the Xcode version to open your project with. You can choose the
Latest version
or select a specific ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f982510605ff | unity_docs | editor | Show me a Unity C# example demonstrating `ScriptableWizard.helpString`. | ScriptableWizard.helpString
public string
helpString
;
Description
Allows you to set the help text of the wizard.
Additional resources:
ScriptableWizard.OnWizardUpdate
Help string on a ScriptableWizard window.
```csharp
// Creates a simple Wizard window and prints the HelpString
// in the Wizard window.using... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6992212b541d | unity_docs | editor | Show me a Unity code example for 'Pointer events'. | e the example in action, do the following:
Under
Assets > Scripts > Editor
, create a new UXML file called PointerEventsTestWindow.uxml
Copy the UXML code from below into it Under Assets > Scripts > Editor
, create a new C# file called PointerEventsTestWindow.cs
Copy a code sample into the C# script.
From the Editor To... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bbbf6d389756 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.MainModule.startSizeYMultiplier`. | ParticleSystem.MainModule.startSizeYMultiplier
public float
startSizeYMultiplier
;
Description
A multiplier for
ParticleSystem.MainModule.startSizeY
.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall size multiplier.
```csharp
using UnityEngine;... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_38a1f4c3f074 | unity_docs | scripting | Show me a Unity C# example demonstrating `ReflectionProbe.cullingMask`. | ReflectionProbe.cullingMask
public int
cullingMask
;
Description
This is used to render parts of the reflecion probe's surrounding selectively.
If the
GameObject
's
layerMask
AND the probe's
cullingMask
is zero then the game object will be invisible from this probe.
See
Layers
for more information.
```... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_483649570d1b | unity_docs | scripting | Explain 'FAQ for input and event systems with UI Toolkit' in Unity. | This page includes frequently asked questions for using the
event system
and the input system with UI Toolkit.
How do I know if the mouse is over a visual element from a runtime panel?
How can I remap basic UI actions?
How can I change what element is focused next when using directional navigation?
Is it possible to ge... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6468a14696fa | unity_docs | physics | What is `Collision2D.GetContact` in Unity? Explain its purpose and usage. | Collision2D.GetContact
Declaration
public
ContactPoint2D
GetContact
(int
index
);
Parameters
Parameter
Description
index
The index of the contact to retrieve.
Returns
ContactPoint2D
The contact at the specified
index
.
Description
Gets the contact point at the specified
index
.
You can retrieve ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b95b8c122f51 | unity_docs | physics | Give me an overview of the `PhysicsSceneExtensions` class in Unity. | PhysicsSceneExtensions
class in
UnityEngine
/
Implemented in:
UnityEngine.PhysicsModule
Description
Scene extensions to access the underlying physics scene.
Static Methods
Method
Description
GetPhysicsScene
An extension method that returns the 3D physics Scene from the Scene. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_01c3a534b423 | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.Android.androidTVCompatibility`. | PlayerSettings.Android.androidTVCompatibility
public static bool
androidTVCompatibility
;
Description
Provide a build that is Android TV compatible.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class AndroidTVCompatibilitySample : MonoBehaviour
{
[MenuItem("Build/AndroidTV Co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1ed980f2f85e | unity_docs | input | What is `Touch.rawPosition` in Unity? Explain its purpose and usage. | Touch.rawPosition
public
Vector2
rawPosition
;
Description
The first position of the touch contact in screen space pixel coordinates.
Raw position returns the original position of a touch contact and doesn't change as the touch is dragged. If you need the current position of the touch see
Touch.position
.
Th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ef07936972f4 | unity_docs | rendering | What is `Experimental.GlobalIllumination.DiscLight.indirectColor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
DiscLight.indirectColor
public
Experimental.GlobalIllumination.LinearColor
indirectColor
;
Description
The indirect light color. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b3a88a54b6c8 | unity_docs | scripting | What is `Experimental.GraphView.StackNode.DragPerform` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StackNode.DragPerform
Declaration
public bool
DragPerform
(
UIElements.DragPerformEvent
evt
,
IEnumerable<ISelectable>
selection
,
Experimental.GraphView.IDropTarget
dropTarget
,
Experimental.GraphView.ISelection
dragSou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5bf6b25392a0 | unity_docs | rendering | Show me a Unity C# example demonstrating `ParticleSystemRenderer.lengthScale`. | ale
public float
lengthScale
;
Description
How much are the particles stretched in their direction of motion, defined as the length of the particle compared to its width.
This determines the base length of particles when they don't move. A value of 1 is neutral, causing no stretching or squashing. Use this with... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5d243773132b | unity_docs | rendering | What is `Rendering.RayTracingAccelerationStructure.Settings.ctor` in Unity? Explain its purpose and usage. | RayTracingAccelerationStructure.Settings Constructor
Declaration
public
RayTracingAccelerationStructure.Settings
(
Rendering.RayTracingAccelerationStructure.ManagementMode
sceneManagementMode
,
Rendering.RayTracingAccelerationStructure.RayTracingModeMask
rayTracingModeMask
,
int
layerMask
);
Parameters
Par... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f2da02f49f1d | unity_docs | editor | What is `iOS.Xcode.PBXProject.SetBuildPropertyForConfig` in Unity? Explain its purpose and usage. | PBXProject.SetBuildPropertyForConfig
Declaration
public void
SetBuildPropertyForConfig
(string
configGuid
,
string
name
,
string
value
);
Declaration
public void
SetBuildPropertyForConfig
(IEnumerable<string>
configGuids
,
string
name
,
string
value
);
Parameters
Parameter
Description
configGuid
The... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8022d3f6bdd6 | unity_docs | rendering | What are the parameters of `Shader.SetGlobalTexture` in Unity? | Description Sets a global texture property for all shaders. Global properties are used if a shader needs them but the material does
not have them defined (for example, if the shader does not expose them
in Properties block). Usually this is used if you have a set of custom shaders that all use
the same "global" texture... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_48c4611fcd21 | unity_docs | math | Show me a Unity C# example demonstrating `Search.QueryEngine_1.SetDefaultParamFilter`. | string,string,string,string,bool>
handler
);
Parameters
Parameter
Description
handler
Callback used to handle the function filter. Takes an object of type TData, the filter identifier, the parameter, the operator, and the filter value, and returns a boolean indicating if the filter passed or not.
Description
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f0fe1685995 | unity_docs | rendering | What is `Video.VideoPlayer.frame` in Unity? Explain its purpose and usage. | VideoPlayer.frame
public long
frame
;
Description
The frame index of the currently available frame in
VideoPlayer.texture
.
The frame index is 0 for the first frame of the clip, 1 for the second frame, and so on. A frame index of -1 indicates that no valid frame is available.
Note:
On WebGL, because the frame... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b9df9053b306 | unity_docs | scripting | What is `Unity.Collections.NativeSlice_1.GetEnumerator` in Unity? Explain its purpose and usage. | NativeSlice<T0>.GetEnumerator
Declaration
public Enumerator<T>
GetEnumerator
();
Returns
Enumerator<T>
An enumerator that can iterate through the elements of a NativeSlice.
Description
Gets an enumerator to iterate through the elements of a
NativeSlice<T0>
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c89fe02664ef | unity_docs | rendering | In Unity's 'Scene templates introduction', what is 'Templates and scene dependencies' and how does it work? | When you create a scene template, you can specify whether Unity clones or references its dependencies (the assets it includes) when you create a new scene from it.
To specify which assets Unity clones for a specific template,
edit the template’s properties
.
A typical template might contain a mix of cloned and referenc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7197aa67407a | github | scripting | Write a Unity C# script called Clamped Float Value Source | ```csharp
using System;
using UnityEngine;
using Attributes;
namespace Examples
{
public interface IFloatValueProvider
{
float GetValue();
}
[Serializable]
public class ClampedFloatValueSource : IFloatValueProvider
{
[SerializeReference,SelectableImpl] private IFloatValueProv... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
gh_fea987311999 | github | scripting | Write a Unity C# script called Avatar | ```csharp
using System;
using System.Collections.Generic;
using shadcnui.GUIComponents.Core.Base;
using shadcnui.GUIComponents.Core.Styling;
using shadcnui.GUIComponents.Core.Utils;
using UnityEngine;
#if IL2CPP_MELONLOADER_PRE57
using UnhollowerBaseLib;
#endif
namespace shadcnui.GUIComponents.Display
{
public cla... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_ec41154ee1cc | unity_docs | rendering | What is `LightTransport.PostProcessing.IProbePostProcessor.WindowSphericalHarmonicsL2` in Unity? Explain its purpose and usage. | IProbePostProcessor.WindowSphericalHarmonicsL2
Declaration
public bool
WindowSphericalHarmonicsL2
(
LightTransport.IDeviceContext
context
,
BufferSlice<SphericalHarmonicsL2>
shIn
,
BufferSlice<SphericalHarmonicsL2>
shOut
,
int
probeCount
);
Parameters
Parameter
Description
context
Device context.
shIn
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82e0b1474387 | unity_docs | scripting | What are the parameters of `AI.NavMeshAgent.ActivateCurrentOffMeshLink` in Unity? | Description Enables or disables the current off-mesh link. This function activates or deactivates the off-mesh link
where the agent is currently waiting. This is useful for
granting access to newly discovered areas of the game world or
simulating the creation or removal of an obstacle to an area. ```csharp
using UnityE... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3648f15bcb6b | unity_docs | networking | What is `Android.AndroidConfiguration` in Unity? Explain its purpose and usage. | AndroidConfiguration
class in
UnityEngine.Android
/
Implemented in:
UnityEngine.AndroidJNIModule
Description
Use this class to retrieve device specific configuration information.
Additional resources:
AndroidApplication.currentConfiguration
.
Properties
Property
Description
colorModeHdr
Mirrors the Android... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dc0879932a3a | unity_docs | editor | What is `AssetImporters.AssetImporterEditor.extraDataTarget` in Unity? Explain its purpose and usage. | AssetImporterEditor.extraDataTarget
protected Object
extraDataTarget
;
Description
The extra data object associated with the
Editor.target
.
This object is only created when
extraDataType
is provided. This object has to be initialized inside
InitializeExtraDataInstance
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4c19e5b82101 | unity_docs | input | What is `UIElements.TextInputBaseField_1.verticalScrollerVisibility` in Unity? Explain its purpose and usage. | TextInputBaseField<T0>.verticalScrollerVisibility
public
UIElements.ScrollerVisibility
verticalScrollerVisibility
;
Description
Option for controlling the visibility of the vertical scroll bar in the TextInputBaseField_1. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_57ce58221072 | unity_docs | physics | In Unity's 'Force 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 X, Y, Z
Force applied to each particle in the X, Y and Z axes.
Space
Selects whether the force is applied in local or worl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_14848c11e702 | unity_docs | input | What is `Experimental.GraphView.ContentDragger.OnMouseMove` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ContentDragger.OnMouseMove
Declaration
protected void
OnMouseMove
(
UIElements.MouseMoveEvent
e
);
Parameters
Parameter
Description
e
The event.
Description
Called on mouse move event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_72c215d9fa5d | unity_docs | rendering | What is `Rendering.ShaderKeywordSet.IsEnabled` in Unity? Explain its purpose and usage. | ShaderKeywordSet.IsEnabled
Declaration
public bool
IsEnabled
(
Rendering.ShaderKeyword
keyword
);
Declaration
public bool
IsEnabled
(
Rendering.GlobalKeyword
keyword
);
Declaration
public bool
IsEnabled
(
Rendering.LocalKeyword
keyword
);
Description
Check whether a specific shader keyword is enabl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_afb62fac2641 | unity_docs | rendering | In Unity's 'Shader object fundamentals', what is 'Assets' and how does it work? | You can create Shader objects in two ways. Each has its own type of asset:
You can
write code
to create a
shader asset
, which is a text file with the.shader
extension.
You can use
Shader Graph
to create a Shader Graph asset.
Whichever way you create your Shader object, Unity represents the results in the same way inte... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3806432072c8 | unity_docs | scripting | What is `UIElements.TwoPaneSplitView.ctor` in Unity? Explain its purpose and usage. | TwoPaneSplitView Constructor
Declaration
public
TwoPaneSplitView
(int
fixedPaneIndex
,
float
fixedPaneStartDimension
,
UIElements.TwoPaneSplitViewOrientation
orientation
);
Parameters
Parameter
Description
fixedPaneIndex
0 for setting first child as the fixed pane, 1 for the second child element.
fixedP... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_612f5910823f | unity_docs | editor | What are the parameters of `EditorGUILayout.BeginFadeGroup` in Unity? | Returns bool If the group is visible or not. Description Begins a group that can be be hidden/shown and the transition will be animated. Fade Group ```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.AnimatedValues;public class MyWindow : EditorWindow
{
AnimBool m_ShowExtraFields;
string m_String;... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_36a0e4d1f45a | unity_docs | rendering | Show me a Unity C# example demonstrating `AssetDatabase.RemoveObjectFromAsset`. | AssetDatabase.RemoveObjectFromAsset
Declaration
public static void
RemoveObjectFromAsset
(
Object
objectToRemove
);
Parameters
Parameter
Description
objectToRemove
Object to remove.
Description
Removes object from its asset (Additional resources:
AssetDatabase.AddObjectToAsset
).
```csharp
using System.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dbfce0c1f5be | unity_docs | editor | In Unity's 'Manage your license through the command line', what is 'macOS example 1' and how does it work? | The following example activates a named user license without activating its serial key:
```
/Applications/Unity/Hub/Editor/2022.2.0b4/Unity.app/Contents/MacOS/Unity -quit -batchmode -serial -username 'name@example.com' -password 'XXXXXXXXXXXXX'
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_13b0b1838cef | unity_docs | scripting | Explain 'Import a native plug-in for Android' in Unity. | This page describes how to import a
native plug-in for Android
into your Unity Project.
Copy the
plug-in
to your Unity Project’s Assets folder.
Select the plug-in in Unity and view it in the
Inspector
.
In the
Select platforms for plugin
section, select
Android
.
In the
Platform settings
section, set CPU to the CPU arc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_12079d3b471a | unity_docs | input | Explain 'GameActivity requirements and compatibility' in Unity. | Refer to the following system requirements and compatibility information before using the GameActivity application entry point in your Unity Android project.
## Unity and GameActivity library version compatibility
The following table lists the recommended GameActivity library version for each Unity version.
Unity ver... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_06cb695b3e0a | unity_docs | editor | In Unity's 'Search performance trackers', what is 'Query syntax' and how does it work? | Provider token:
perf:
Query example: Searches the performance trackers for an
Add Component Window
action with a sample count of over
1000
.
```
perf: count>1000 AddComponent
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3cfaf0616411 | unity_docs | editor | What is `EditorGUILayout.BoundsField` in Unity? Explain its purpose and usage. | EditorGUILayout.BoundsField
Declaration
public static
Bounds
BoundsField
(
Bounds
value
,
params GUILayoutOption[]
options
);
Declaration
public static
Bounds
BoundsField
(string
label
,
Bounds
value
,
params GUILayoutOption[]
options
);
Declaration
public static
Bounds
BoundsField
(
GUIContent... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d7b95e0db7f0 | unity_docs | scripting | What is `SystemInfo.processorFrequency` in Unity? Explain its purpose and usage. | SystemInfo.processorFrequency
public static int
processorFrequency
;
Description
The processor frequency of the device in MHz (Read Only).
Returns the nominal CPU frequency in MHz, or zero if unknown. The actual CPU frequency might vary depending on device's current load and power conditions, especially on low-... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3189e8885870 | unity_docs | scripting | What is `Experimental.GraphView.GraphViewToolWindow.OnEnable` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphViewToolWindow.OnEnable
Declaration
protected void
OnEnable
();
Description
Base implementation of the Unity OnEnable event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_551e3b372ce2 | unity_docs | animation | What is `Animator.IsInTransition` in Unity? Explain its purpose and usage. | Animator.IsInTransition
Declaration
public bool
IsInTransition
(int
layerIndex
);
Parameters
Parameter
Description
layerIndex
The layer index.
Returns
bool
True if there is a transition on the given layer, false otherwise.
Description
Returns true if there is a transition on the given layer, false o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_054a90dc1212 | unity_docs | networking | What is `Android.AndroidOrientation` in Unity? Explain its purpose and usage. | AndroidOrientation
enumeration
Description
Options to indicate the orientation of the screen.
Additional resources:
AndroidConfiguration.orientation
Properties
Property
Description
Undefined
Mirrors the Android property value ORIENTATION_UNDEFINED.
Portrait
Mirrors the Android property value ORIENTATION_PORT... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5bdd83486cd5 | unity_docs | physics | In Unity's 'Introduction to collision', what is 'Collider shapes' and how does it work? | Collider components are available in different shape configurations. There are three main shape types for colliders:
Primitive colliders
are built-in simple shapes that you can attach to your GameObject and scale to approximately the same size and shape. You can also combine several primitive collider shapes to create
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2b6e78af907a | unity_docs | rendering | In Unity's 'Set up a panoramic video as a skybox', what is 'Check the video’s resolution' and how does it work? | You can check the video resolution to confirm what content type the video has using the following steps:
Click on the video.
In the Inspector , click on the video’s name.
Select
Source Info
.
Check the Pixels value.
Equirectangular videos have 2:1 or 1:1 ratios.
Cubemap videos have 1:6, 3:4, 4:3, or 6:1 ratios. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9c828b8df1cb | unity_docs | math | What is `Mathf.GammaToLinearSpace` in Unity? Explain its purpose and usage. | Mathf.GammaToLinearSpace
Declaration
public static float
GammaToLinearSpace
(float
value
);
Description
Converts the given value from gamma (sRGB) to linear color space.
Additional resources:
Linear and Gamma rendering
,
ColorSpace
,
LinearToGammaSpace
,
Color.linear
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d4ef1346e229 | unity_docs | rendering | What is `MobileTextureSubtarget` in Unity? Explain its purpose and usage. | MobileTextureSubtarget
enumeration
Description
Compressed texture format for target build platform.
Additional resources:
EditorUserBuildSettings.androidBuildSubtarget
.
Properties
Property
Description
Generic
Don't override texture compression.
DXT
S3 texture compression. Supported on devices with NVidia Te... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68576023ec72 | unity_docs | rendering | What is `CubemapArray.ctor` in Unity? Explain its purpose and usage. | CubemapArray Constructor
Declaration
public
CubemapArray
(int
width
,
int
cubemapCount
,
TextureFormat
textureFormat
,
bool
mipChain
);
Declaration
public
CubemapArray
(int
width
,
int
cubemapCount
,
TextureFormat
textureFormat
,
bool
mipChain
,
bool
linear
= false,
bool
createUninitialized
= fa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5235e299a8d0 | unity_docs | physics | What is `MonoBehaviour.OnParticleCollision` in Unity? Explain its purpose and usage. | MonoBehaviour.OnParticleCollision(GameObject)
Description
OnParticleCollision is called when a particle hits a Collider.
This can be used to apply damage to a GameObject when hit by particles.
This message is sent to scripts attached to Particle Systems and to the
Collider
that was hit.
When
OnParticleCollision... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6590e5699976 | unity_docs | rendering | What is `Experimental.Rendering.GraphicsStateCollection.ContainsVariant` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsStateCollection.ContainsVariant
Declaration
public bool
ContainsVariant
(
Shader
shader
,
Rendering.PassIdentifier
passId
,
LocalKeyword[]
keywords
);
Parameters
Parameter
Description
shader
Shader used in th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cba2ce3d7c12 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.MainModule.startSizeXMultiplier`. | ParticleSystem.MainModule.startSizeXMultiplier
public float
startSizeXMultiplier
;
Description
A multiplier for
ParticleSystem.MainModule.startSizeX
.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall size multiplier.
```csharp
using UnityEngine;... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_15a44be7a2d9 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.NativeSliceUnsafeUtility.ConvertExistingDataToNativeSlice` in Unity? Explain its purpose and usage. | NativeSliceUnsafeUtility.ConvertExistingDataToNativeSlice
Declaration
public static NativeSlice<T>
ConvertExistingDataToNativeSlice
(void*
dataPointer
,
int
stride
,
int
length
);
Parameters
Parameter
Description
length
Number of elements in the data set.
dataPointer
Memory pointer to the data.
stride
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ab2a4167a053 | unity_docs | scripting | What is `Playables.ScriptPlayableOutput` in Unity? Explain its purpose and usage. | ScriptPlayableOutput
struct in
UnityEngine.Playables
/
Implemented in:
UnityEngine.CoreModule
Implements interfaces:
IPlayableOutput
Description
A
IPlayableOutput
implementation that contains a script output for the a
PlayableGraph
.
A branch of a
PlayableGraph
must be connected to an output to be evaluat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e50cce38652e | github | scripting | Write a Unity C# MonoBehaviour script called Child Test8 | ```csharp
using UnityEngine;
public class ChildTest8 : MonoBehaviourExtended, ITest
{
[ChildComponent(Optional = true)]
private Inventory inventory;
private void Start()
{
if (!Test())
{
Debug.LogError("Test failed: " + this);
}
}
public bool Test()
{
... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_995e0172a960 | unity_docs | scripting | What is `DrivenTransformProperties` in Unity? Explain its purpose and usage. | DrivenTransformProperties
enumeration
Description
An enumeration of transform properties that can be driven on a RectTransform by an object.
Additional resources:
RectTransform.reapplyDrivenProperties
.
Properties
Property
Description
None
Deselects all driven properties.
All
Selects all driven properties.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_69b30e93a950 | unity_docs | rendering | What is `Media.MediaEncoder` in Unity? Explain its purpose and usage. | MediaEncoder
class in
UnityEditor.Media
Description
Encodes images and audio samples into an audio or movie file.
Constructing an instance of this class creates an encoder that will create an audio, video or audio/video file with the specified tracks in it.
Call the AddFrame() and AddSamples() methods alternately... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65effa8c6f75 | unity_docs | rendering | What is `Rendering.RenderPipelineAsset.defaultSpeedTree9Shader` in Unity? Explain its purpose and usage. | RenderPipelineAsset.defaultSpeedTree9Shader
public
Shader
defaultSpeedTree9Shader
;
Description
Return the default SpeedTree v9
Shader
for this pipeline.
This shader will be used during the import process of SpeedTree v9 assets. If
null
is returned, the default "Nature/SpeedTree9" will be used. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_906114130e39 | unity_docs | scripting | What is `WSA.SecondaryTileData.lockScreenBadgeLogo` in Unity? Explain its purpose and usage. | SecondaryTileData.lockScreenBadgeLogo
public string
lockScreenBadgeLogo
;
Description
Uri to logo, shown for secondary tile on lock screen.
Only used if lockScreenDisplayBadgeAndTileText is true. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c1dacb393277 | unity_docs | editor | What is `Unity.Profiling.LowLevel.MarkerFlags` in Unity? Explain its purpose and usage. | MarkerFlags
enumeration
Description
Profiler marker usage flags.
Use to specify marker usage or availability information.
```csharp
using System.Collections.Generic;
using Unity.Profiling.LowLevel;
using Unity.Profiling.LowLevel.Unsafe;public class Example
{
public static unsafe void WriteAllNonDevelopmentStatsT... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6c5bbffcfde8 | unity_docs | rendering | What is `Renderer.ResetLocalBounds` in Unity? Explain its purpose and usage. | Renderer.ResetLocalBounds
Declaration
public void
ResetLocalBounds
();
Description
Reset custom local space bounds.
After you have set up custom local space bounding volume override with
localBounds
,
you can remove it with
ResetLocalBounds
. This makes the renderer use default local space
bounding volume. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_36d5347562e6 | unity_docs | rendering | What is `ParticleSystemCustomDataMode` in Unity? Explain its purpose and usage. | ParticleSystemCustomDataMode
enumeration
Description
Which mode CustomDataModule uses to generate its data.
Properties
Property
Description
Disabled
Don't generate any data.
Vector
Generate data using MinMaxCurve.
Color
Generate data using MinMaxGradient. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5a2a3285f49c | unity_docs | animation | What is `AnimationMode.InAnimationMode` in Unity? Explain its purpose and usage. | AnimationMode.InAnimationMode
Declaration
public static bool
InAnimationMode
();
Declaration
public static bool
InAnimationMode
(
AnimationModeDriver
driver
);
Parameters
Parameter
Description
driver
An
AnimationModeDriver
object that tests if
AnimationMode
has been locked specifically for this driv... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b96b1b8e1ff8 | unity_docs | xr | In Unity's 'AssetBundle platform considerations', what is 'Android specifics' and how does it work? | To distribute AssetBundle content for the Android platform, you have the following options:
Build AssetBundles into the StreamingAssets folder
.
Package AssetBundles into custom asset packs.
Deploy AssetBundles through a CDN.
The option you choose depends on the requirements of your project. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d3bee3489e0a | unity_docs | scripting | What is `WindZoneMode.Directional` in Unity? Explain its purpose and usage. | WindZoneMode.Directional
Description
Wind zone affects the entire Scene in one direction.
```csharp
// Creates a Directional Wind Zone that blows wind up.
using UnityEngine;public class ExampleScript : MonoBehaviour
{
void Start()
{
var wind = gameObject.AddComponent<WindZone>();
wind.mode = WindZoneMode.Direct... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9fd2bed85eed | github | scripting | Write a Unity C# XR/VR script for AR Face Manager Info | ```csharp
using System.Linq;
using UnityEngine;
using UnityEngine.XR.ARFoundation;
[RequireComponent(typeof(ARFaceManager))]
public class ARFaceManagerInfo : MonoBehaviour
{
private ARFaceManager faceManager;
private void Awake()
{
faceManager = GetComponent<ARFaceManager>();
}
private vo... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_241811086e6d | unity_docs | physics | What is `FixedJoint` in Unity? Explain its purpose and usage. | FixedJoint
class in
UnityEngine
/
Inherits from:
Joint
/
Implemented in:
UnityEngine.PhysicsModule
Description
The Fixed joint groups together 2 rigidbodies, making them stick together in their bound position.
Additional resources:
CharacterJoint
,
HingeJoint
,
SpringJoint
,
ConfigurableJoint
.
Inherite... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c6295a100cf1 | unity_docs | rendering | In Unity's 'Self-Illuminated Normal mapped 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_7e0e26c3bda0 | unity_docs | scripting | What is `Terrain.SetNeighbors` in Unity? Explain its purpose and usage. | Terrain.SetNeighbors
Declaration
public void
SetNeighbors
(
Terrain
left
,
Terrain
top
,
Terrain
right
,
Terrain
bottom
);
Parameters
Parameter
Description
left
The Terrain tile to the left is in the negative X direction.
top
The Terrain tile to the top is in the positive Z direction.
right
The... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2066e884c020 | unity_docs | animation | What is `FingerDof.LastFingerDof` in Unity? Explain its purpose and usage. | FingerDof.LastFingerDof
Description
The last value of the
FingerDof
enum.
This value can be used in
for
loops.
```csharp
using UnityEngine;using UnityEngine.Animations;public class ExampleClass : MonoBehaviour
{
void Start()
{
for (int i = 0; i < (int)FingerDof.LastFingerDof; ++i)
{
var handle = new Muscl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_719afa2a0486 | unity_docs | animation | What is `AssetImporters.LightDescription` in Unity? Explain its purpose and usage. | LightDescription
class in
UnityEditor.AssetImporters
Description
Represents light information from an imported file.
Constructors
Constructor
Description
LightDescription
Initializes and returns an instance of LightDescription.
Public Methods
Method
Description
Dispose
Disposes of the LightDescription inst... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7ffbf6cce94d | unity_docs | scripting | What is `SubsystemManager.GetSubsystems` in Unity? Explain its purpose and usage. | SubsystemManager.GetSubsystems
Declaration
public static void
GetSubsystems
(List<T>
subsystems
);
Parameters
Parameter
Description
subsystems
Active subsystems.
Description
Returns active Subsystems of a specific instance type. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d021e7ded020 | unity_docs | rendering | What is `DynamicGI.indirectScale` in Unity? Explain its purpose and usage. | DynamicGI.indirectScale
public static float
indirectScale
;
Description
Allows for scaling the contribution coming from real-time & baked lightmaps.
Note: this value can be set in the Lighting Window UI and it is serialized, that is not the case for other properties in this class. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_31216125bd1f | unity_docs | math | What is `Rendering.VertexAttribute.Tangent` in Unity? Explain its purpose and usage. | VertexAttribute.Tangent
Description
Vertex tangent.
Tangents usually use
Vector4
format. Vector4 uses four 32-bit floats; 16 bytes in total.
This vertex attribute maps to
TANGENT
Semantic in the HLSL shading language.
Additional resources:
Mesh.HasVertexAttribute
,
Mesh.SetTangents
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_003b14299552 | unity_docs | performance | What is `Unity.Jobs.LowLevel.Unsafe.JobProducerTypeAttribute.ctor` in Unity? Explain its purpose and usage. | JobProducerTypeAttribute Constructor
Declaration
public
JobProducerTypeAttribute
(Type
producerType
);
Parameters
Parameter
Description
producerType
The type containing a static
Execute
method which the job system invokes.
Description
Indicates which type is the JobProducerType.
The job system and the B... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ef06b07dce89 | unity_docs | animation | Show me a Unity C# example demonstrating `BodyDof.LastBodyDof`. | BodyDof.LastBodyDof
Description
The last value of the
BodyDof
enum.
This value can be used in
for
loops.
```csharp
using UnityEngine;using UnityEngine.Animations;public class ExampleClass : MonoBehaviour
{
void Start()
{
for (int i = 0; i < (int)BodyDof.LastBodyDof; ++i)
{
var handle = new MuscleHandle((B... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2b5764762c4e | unity_docs | rendering | In Unity's 'Modify source assets from code', what is 'Permanent modification' and how does it work? | Important
: The method presented here modifies actual source asset files used within Unity. You can’t undo these modifications. Use them with caution.
To avoid the material resetting on exiting Play mode, you can use
Renderer.sharedMaterial
. The sharedMaterial property returns the actual asset used by the renderer.
Th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_111814fd60b1 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.RGBA_DXT3_UNorm` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.RGBA_DXT3_UNorm
Description
A four-component, block-compressed format (also known as BC2) where each 128-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized RGBA texel data with the first 64 b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68b071290763 | unity_docs | scripting | Give me an overview of the `ModelImporterHumanoidOversampling` class in Unity. | ModelImporterHumanoidOversampling
enumeration
Description
Humanoid Oversampling available multipliers.
Properties
Property
Description
X1
Default Humanoid Oversampling multiplier = 1 which is equivalent to no oversampling.
X2
Humanoid Oversampling samples at 2 times the sampling rate found in the imported file... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3d46ce4abcd4 | unity_docs | scripting | What is `UIElements.BaseVerticalCollectionView.selectionType` in Unity? Explain its purpose and usage. | BaseVerticalCollectionView.selectionType
public
UIElements.SelectionType
selectionType
;
Description
Controls the selection type.
The default value is
SelectionType.Single
.
When you set the collection view to disable selections, any current selection is cleared. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b6b2d33b73b6 | unity_docs | physics | What is `Collider2D.GetContacts` in Unity? Explain its purpose and usage. | Collider2D.GetContacts
Declaration
public int
GetContacts
(ContactPoint2D[]
contacts
);
Parameters
Parameter
Description
contacts
An array of
ContactPoint2D
used to receive the results.
Returns
int
Returns the number of contacts placed in the
contacts
array.
Description
Retrieves all contact poin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_57a3b0fdb788 | unity_docs | physics | What is `Rigidbody2D.SlideMovement.selectedCollider` in Unity? Explain its purpose and usage. | Rigidbody2D.SlideMovement.selectedCollider
public
Collider2D
selectedCollider
;
Description
The specific
Collider2D
attached to this
Rigidbody2D
to be used to detect contacts.
Can be used to select a specific
Collider2D
attached to this
Rigidbody2D
to be used to detect contacts. If this is selected th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45e26bb7df57 | unity_docs | scripting | What is `UIElements.DataSourceContext` in Unity? Explain its purpose and usage. | DataSourceContext
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Contains information about the data source and data source path of a binding.
Properties
Property
Description
dataSource
The resolved data source.
dataSourcePath
The resolved data source pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2b3949c13eb4 | unity_docs | scripting | Show me a Unity C# example demonstrating `MonoBehaviour.StartCoroutine`. | ull
, results in the execution coming back on a later frame, unless the coroutine is stopped or has completed. If the coroutine runs to completion without yielding (for example, if the
yield
statement is unreachable),
StartCoroutine
returns
null
.
To stop a coroutine, use
MonoBehaviour.StopCoroutine
or
MonoBeha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3427e0b89168 | unity_docs | scripting | What is `PlayerSettings.SetNormalMapEncoding` in Unity? Explain its purpose and usage. | PlayerSettings.SetNormalMapEncoding
Declaration
public static void
SetNormalMapEncoding
(
Build.NamedBuildTarget
buildTarget
,
NormalMapEncoding
encoding
);
Obsolete
Use SetNormalMapEncoding(NamedBuildTarget buildTarget, NormalMapEncoding encoding) instead.
Declaration
public static void
SetNormalMapEnc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_807e7459642f | unity_docs | rendering | What is `Rendering.BatchRendererGroup.GetRegisteredMesh` in Unity? Explain its purpose and usage. | BatchRendererGroup.GetRegisteredMesh
Declaration
public
Mesh
GetRegisteredMesh
(
Rendering.BatchMeshID
mesh
);
Parameters
Parameter
Description
mesh
BatchRendererGroup Mesh ID.
Returns
Mesh
Unity Mesh.
Description
Returns the previously registered Mesh associated with this MeshID. | 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.