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 |
|---|---|---|---|---|---|
gh_5b5c28087cfd | github | scripting | Write a Unity C# UI script for Right Controller | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class RightController : MonoBehaviour
{
public GameObject pointerPrefab;
private VrBlocks.Controller controller;
private VrBlocks.Pointer uiPointer;
private GameObject pointer;
void Start()
{
... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_03bf56faf316 | unity_docs | editor | In Unity's 'Leaderboards', what is 'Compatible with Unity' and how does it work? | These package versions are available in Unity version 6000.0:
Documentation location:
State
Versions available:
com.unity.services.leaderboards@2.3 released 2.3.0, 2.3.3
com.unity.services.leaderboards@2.2 released 2.2.1 | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_deba791ad30f | unity_docs | animation | Explain 'CPU Usage Profiler module introduction' in Unity. | Get an overview of where your application spends time with the CPU Profiler module.
The CPU Usage Profiler module provides an overview of areas where your application spends time, such as on rendering, its scripts , and animation. It displays this information in a chart at the top of the window. You can select individu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d01770348e17 | unity_docs | animation | What is `Animations.AimConstraint.SetSource` in Unity? Explain its purpose and usage. | AimConstraint.SetSource
Declaration
public void
SetSource
(int
index
,
Animations.ConstraintSource
source
);
Parameters
Parameter
Description
index
The index of the source to set.
source
The source object and its weight.
Description
Sets a source at a specified index.
Throws ArgumentOutOfRangeExcepti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_59d9fa33ceb7 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.InheritVelocityModule.enabled`. | ParticleSystem.InheritVelocityModule.enabled
public bool
enabled
;
Description
Specifies whether the InheritVelocityModule is enabled or disabled.
Additional resources:
ParticleSystem.inheritVelocity
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public cla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ef388812fdd1 | unity_docs | physics | What is `Rendering.CommandBuffer.ResolveAntiAliasedSurface` in Unity? Explain its purpose and usage. | CommandBuffer.ResolveAntiAliasedSurface
Declaration
public void
ResolveAntiAliasedSurface
(
RenderTexture
rt
,
RenderTexture
target
);
Parameters
Parameter
Description
rt
The antialiased render texture to resolve.
target
The render texture to resolve into. If set, the target render texture must have th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c4f54939f530 | unity_docs | rendering | What is `TextureImporterSettings.ignoreMipmapLimit` in Unity? Explain its purpose and usage. | TextureImporterSettings.ignoreMipmapLimit
public bool
ignoreMipmapLimit
;
Description
Enable this flag for textures that should ignore mipmap limit settings.
This has no effect if the
textureShape
is not
Texture2D
or
Texture2DArray
. Also, this has no effect on textures without mipmaps. For additional info... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2dd404ea3bad | unity_docs | rendering | Show me a Unity C# example demonstrating `EditorWindow.OnLostFocus`. | EditorWindow.OnLostFocus()
Description
Called when the window loses keyboard focus.
Additional resources:
OnFocus
.
Restores normal view when you lose focus on this window.
```csharp
// Simple script that lets you preview your main camera in
// Orthographic view when selected.
using UnityEngine;
using UnityEdit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d4c7e7f7028f | unity_docs | scripting | What is `Progress.Item.SetRemainingTime` in Unity? Explain its purpose and usage. | Progress.Item.SetRemainingTime
Declaration
public void
SetRemainingTime
(long
seconds
);
Parameters
Parameter
Description
seconds
The progress indicator's remaining time, in seconds.
Description
Sets the progress indicator's remaining time, in seconds.
When you call this function, the system sets the prog... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b2e5522b1bcf | unity_docs | scripting | What is `QualitySettings.asyncUploadBufferSize` in Unity? Explain its purpose and usage. | QualitySettings.asyncUploadBufferSize
public static int
asyncUploadBufferSize
;
Description
Sets the ring buffer size used for asynchronous texture and mesh data uploads.
The
asyncUploadBufferSize
property determines the size of the ring buffer used for asynchronous texture and mesh uploads in Unity. The min... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_29ae912e9e4f | unity_docs | editor | What is `AssetDatabase.IsConnectedToCacheServer` in Unity? Explain its purpose and usage. | AssetDatabase.IsConnectedToCacheServer
Declaration
public static bool
IsConnectedToCacheServer
();
Returns
bool
Returns true when Editor is connected to the Cache Server. Returns false otherwise.
Description
Checks connection status of the Cache Server.
```csharp
using UnityEngine;
using UnityEditor;publi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1fe546f4a14f | unity_docs | math | What is `Vector3Int.Min` in Unity? Explain its purpose and usage. | Vector3Int.Min
Declaration
public static
Vector3Int
Min
(
Vector3Int
lhs
,
Vector3Int
rhs
);
Description
Returns a vector that is made from the smallest components of two vectors.
Additional resources:
Max
function. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c992132a40ec | unity_docs | scripting | What is `Rendering.BatchDrawCommandIndirect.meshID` in Unity? Explain its purpose and usage. | BatchDrawCommandIndirect.meshID
public
Rendering.BatchMeshID
meshID
;
Description
Identifies which
Mesh
to use to render the instances in this draw command.
If the Mesh contains sub-meshes, use
BatchDrawCommand.submeshIndex
to specify which sub-mesh to use. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cb43fb086f96 | unity_docs | rendering | What is `ComputeShader.IsKeywordEnabled` in Unity? Explain its purpose and usage. | ComputeShader.IsKeywordEnabled
Declaration
public bool
IsKeywordEnabled
(ref
Rendering.LocalKeyword
keyword
);
Declaration
public bool
IsKeywordEnabled
(string
keyword
);
Parameters
Parameter
Description
keyword
The
LocalKeyword
to check.
keyword
The name of the
LocalKeyword
to check.
Returns
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cbdafa06f9d2 | unity_docs | scripting | What is `IMGUI.Controls.TreeView.ctor` in Unity? Explain its purpose and usage. | TreeView Constructor
Declaration
public
TreeView
(
IMGUI.Controls.TreeViewState
state
);
Declaration
public
TreeView
(
IMGUI.Controls.TreeViewState
state
,
IMGUI.Controls.MultiColumnHeader
multiColumnHeader
);
Parameters
Parameter
Description
state
TreeView state (expanded items, selection etc.)
m... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ae3b6bd6d92e | unity_docs | scripting | Explain 'Activity requirements and compatibility' in Unity. | Activity was originally the only application entry point that Unity supported and because of this it’s very stable in the majority of scenarios and is compatible with the majority of Unity features.
## Plug-in compatibility
If you use Activity, your application player loop runs on a Java thread. This means that you c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_905a5ada1318 | unity_docs | ui | In Unity's 'Import and preview video clips', what is 'View the source information of your video clip' and how does it work? | To view the source information of your video clip in Unity:
Select the video clip to open the Inspector window.
Go to the preview pane at the bottom of the Inspector window.
Click the name of the video clip in the top-left corner of the preview pane.
Select
Source Info
.
After you select
Source Info
, you can view info... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f30efdca6b7 | unity_docs | editor | Show me a Unity C# example demonstrating `Search.ObjectIndexer.IndexWord`. | e will also store an exact match entry for this word.
scoreModifier
Modified to apply to the base match score for a specific word.
Description
Adds a new word coming from a specific document to the index. The word will be added with multiple variations allowing partial search.
The following example indexes a word ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a16b4bf6c6e5 | unity_docs | scripting | What is `Android.AndroidProjectFilesModifierContext.AddDirectoryAsGuidToCopy` in Unity? Explain its purpose and usage. | AndroidProjectFilesModifierContext.AddDirectoryAsGuidToCopy
Parameters
Parameter
Description
guid
The GUID of a directory in your Unity project.
destination
The path to place the directory copy. This is relative to the Gradle project root.
includePattern
A Regex filter to include files. Default value is 'null... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fa4f65359d08 | unity_docs | rendering | Explain 'Occlusion Culling window reference' in Unity. | Open the Occlusion Culling window by navigating to the top menu and selecting
Window
>
Rendering
>
Occlusion Culling
.
The Occlusion Culling window has 3 tabs:
Object
,
Bake
, and
Visualization
. In addition to this, when both the Occlusion Culling window and the Scene view are visible, the Occlusion Culling popup is v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_48d887a7381f | unity_docs | scripting | Show me a Unity C# example demonstrating `SystemLanguage.Indonesian`. | SystemLanguage.Indonesian
Description
Indonesian.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Indonesian language
if (Application.systemLanguage == SystemLanguage.Indonesian)
{
//Outputs into console that the sys... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f5bcf7e2d08 | unity_docs | editor | What is `PrefabUtility.GetCorrespondingObjectFromSourceAtPath` in Unity? Explain its purpose and usage. | PrefabUtility.GetCorrespondingObjectFromSourceAtPath
Declaration
public static TObject
GetCorrespondingObjectFromSourceAtPath
(TObject
componentOrGameObject
,
string
assetPath
);
Parameters
Parameter
Description
componentOrGameObject
The object to find the corresponding object from.
assetPath
The asset pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7f039646246b | unity_docs | math | What is `PopupWindowContent.GetWindowSize` in Unity? Explain its purpose and usage. | PopupWindowContent.GetWindowSize
Declaration
public
Vector2
GetWindowSize
();
Returns
Vector2
The size of the Popup window.
Description
The size of the popup window.
Implement this method only when not using
PopupWindowContent.CreateGUI
to provide the content of the popup.
Additional resources:
Popup... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45704ba4253b | unity_docs | math | What is `SceneView.LookAt` in Unity? Explain its purpose and usage. | SceneView.LookAt
Declaration
public void
LookAt
(
Vector3
point
);
Declaration
public void
LookAt
(
Vector3
point
,
Quaternion
direction
);
Declaration
public void
LookAt
(
Vector3
point
,
Quaternion
direction
,
float
newSize
);
Declaration
public void
LookAt
(
Vector3
point
,
Quaternion
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3086daaa7a64 | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchSelectorAttribute`. | SearchSelectorAttribute
class in
UnityEditor.Search
Description
Search selector attribute used to define how a custom value can be selected from a search item.
Here's an example to select the number of line of code of text assets.
> select{p: *.cs, @path, @loc}.
```
[SearchSelector("loc", provider: "asset")]
sta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fa1003733fee | unity_docs | rendering | In Unity's 'Search assets with the Project search provider', what is 'Query examples' and how does it work? | Query example Description p: t=Texture width>=4096
Find all textures bigger than 4K.
p: t=Material shader=Assets/Personal/Shaders/PBR_StandardSand.shadergraph
Find all materials using the PBR_StandardSand
shader
.
p: t=Material ref=Assets/Personal/Shaders/3DNoise_T.psd
Find all materials using the 3DNoise_T texture.
p:... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0550acb381da | unity_docs | physics | What is `OverlapCapsuleCommand` in Unity? Explain its purpose and usage. | OverlapCapsuleCommand
struct in
UnityEngine
/
Implemented in:
UnityEngine.PhysicsModule
Description
Struct used to set up an overlap capsule command to be performed asynchronously during a job.
When you use this struct to schedule a batch of overlap capsule commands, the commands are performed asynchronously. T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8984f23ece84 | unity_docs | physics | What is `Tilemaps.Tilemap.SetColliderType` in Unity? Explain its purpose and usage. | Tilemap.SetColliderType
Declaration
public void
SetColliderType
(
Vector3Int
position
,
Tilemaps.Tile.ColliderType
colliderType
);
Parameters
Parameter
Description
position
Position of the Tile on the
Tilemap
.
colliderType
Collider type to set the
Tile
to at the XYZ coordinate.
Description
Sets t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_165ed6023f2e | unity_docs | physics | What is `SimulationMode.Script` in Unity? Explain its purpose and usage. | SimulationMode.Script
Description
Use this enumeration to instruct Unity to execute the physics simulation manually when you call
Physics.Simulate
.
Executing the physics simulation in a script provides full control over when the simulation runs and the duration of simulation. Use this mode to emulate both
Simula... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8a610f7f147e | unity_docs | math | Show me a Unity C# example demonstrating `Mesh.normals`. | Mesh.normals
public Vector3[]
normals
;
Description
The normals of the Mesh.
If the Mesh contains no normals, an empty array is returned.
```csharp
// Rotate the normals by speed every frameusing UnityEngine;public class ExampleClass : MonoBehaviour
{
float speed = 100.0f; // Update is called once per frame
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_37778b8afba2 | unity_docs | scripting | What is `UIElements.MultiColumnListView.sortingMode` in Unity? Explain its purpose and usage. | MultiColumnListView.sortingMode
public
UIElements.ColumnSortingMode
sortingMode
;
Description
Indicates how to sort columns. To enable sorting, set it to
ColumnSortingMode.Default
or
ColumnSortingMode.Custom
.
The
Default
mode uses the sorting algorithm provided by
MultiColumnController
, acting on ind... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_784a8fdadf8b_doc_23 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Defines whether the meshes generated at runtime should be uploaded to the GPU and discarded from RAM. Only applied for meshes with collision disabled.
Signature:
```csharp
public bool UploadMeshesToGPU;
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_1ed99d66300b | unity_docs | scripting | Give me an overview of the `ObjectChangeKind` class in Unity. | ObjectChangeKind
enumeration
Description
This enumeration describes the different kind of changes that can be tracked in an
ObjectChangeEventStream
. Each event has a corresponding type in
ObjectChangeEvents
.
```csharp
using UnityEditor;
using UnityEngine;[InitializeOnLoad]
public class ObjectChangeEventsExampl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ec61f1a280e6 | unity_docs | rendering | In Unity's 'Tab', what is 'Add an icon to a Tab' and how does it work? | You can add an icon to your Tab to make it more visually appealing. Icons can be image assets that exist in your project such as a Texture,
Render Texture
,
Sprite
, or Vector. For information on how to reference an image asset, refer to
Assets
.
Do one of the following to add an icon to a Tab with UI Builder:
From the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_08957353ba3a | unity_docs | rendering | In Unity's 'Set the blending mode in a shader', what is 'Common blend types' and how does it work? | Here is the syntax for the most common blend types:
```
Blend SrcAlpha OneMinusSrcAlpha // Traditional transparency
Blend One OneMinusSrcAlpha // Premultiplied transparency
Blend One One // Additive
Blend OneMinusDstColor One // Soft additive
Blend DstColor Zero // Multiplicative
Blend DstColor SrcColor // 2x multiplic... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8726ad2a8f2c | unity_docs | rendering | Show me a Unity C# example demonstrating `ParticleSystem.subEmitters`. | blic
ParticleSystem.SubEmittersModule
subEmitters
;
Description
Script interface for the SubEmittersModule of a Particle System.
The triggering of the child particle emission is linked to events such as the birth, death and collision of particles in the parent system.
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_eb98cf8c577c | unity_docs | scripting | What is `Mesh.GetVertexAttribute` in Unity? Explain its purpose and usage. | Mesh.GetVertexAttribute
Declaration
public
Rendering.VertexAttributeDescriptor
GetVertexAttribute
(int
index
);
Parameters
Parameter
Description
index
The vertex attribute index (0 to
vertexAttributeCount
-1).
Returns
VertexAttributeDescriptor
Information about the vertex attribute.
Description
R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4cc4b75e7d7f | unity_docs | scripting | Give me an overview of the `AssetDatabase` class in Unity. | AssetDatabase
class in
UnityEditor
Description
An Interface for accessing assets and performing operations on assets.
Static Properties
Property
Description
ActiveRefreshImportMode
Gets the refresh import mode currently in use by the asset database.
DesiredWorkerCount
The desired number of processes to use wh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d23c0e321426 | unity_docs | rendering | Explain 'Create samples for packages' in Unity. | Starting with Unity Editor version 2019.1, you can add samples to a package. A sample might be a piece of example code, some shaders and textures, some animation, or any other files that you can usually find under the project’s Assets folder.
When you open the Package Manager window and select a package containing samp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e8967acd0822 | unity_docs | editor | What is `AssetModificationProcessor.OnWillSaveAssets` in Unity? Explain its purpose and usage. | AssetModificationProcessor.OnWillSaveAssets(string[])
Description
This is called by Unity when it is about to write serialized assets or Scene files to disk.
If it is implemented, it allows you to override which files are written by returning an array
containing a subset of the pathnames which have been passed by U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d27f3c1a785a | unity_docs | editor | What is `iOS.Xcode.PBXProject.AddFileToBuildWithFlags` in Unity? Explain its purpose and usage. | PBXProject.AddFileToBuildWithFlags
Declaration
public void
AddFileToBuildWithFlags
(string
targetGuid
,
string
fileGuid
,
string
compileFlags
);
Parameters
Parameter
Description
targetGuid
The GUID of the target, such as the one returned by
TargetGuidByName
.
fileGuid
The file GUID returned by
AddFile
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_abb4a4af626f | unity_docs | scripting | What is `Experimental.Rendering.GraphicsStateCollection.LoadFromFile` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsStateCollection.LoadFromFile
Declaration
public bool
LoadFromFile
(string
filePath
);
Parameters
Parameter
Description
filePath
Location of the GraphicsStateCollection file.
Returns
bool
Returns true if the co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_370a65759f1a | unity_docs | scripting | What is `Screen.autorotateToLandscapeLeft` in Unity? Explain its purpose and usage. | Screen.autorotateToLandscapeLeft
public static bool
autorotateToLandscapeLeft
;
Description
Enables auto-rotation to landscape left.
This property is used when
orientation
is set to
AutoRotation
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6b945cbccb82_doc_6 | github | scripting | What does `systemGestureState` do in this Unity script? Explain its purpose and signature. | The state of the system gesture.
Signature:
```csharp
public IReadOnlyBindableVariable<SystemGestureState> systemGestureState => m_SystemGestureState;
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_f90ecb982476 | unity_docs | scripting | What are the parameters of `MonoImporter.GetDefaultReference` in Unity? | Returns Object The Unity object to use as a default value for the given reference field. Description Gets the default value for a reference field in the imported MonoScript . Additional resources: MonoImporter.SetDefaultReferences . ```csharp
using UnityEngine;
using UnityEditor;class Example
{
[MenuItem("Examples/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d632e76b692f | unity_docs | physics | What is `SpherecastCommand.ScheduleBatch` in Unity? Explain its purpose and usage. | SpherecastCommand.ScheduleBatch
Declaration
public static
Unity.Jobs.JobHandle
ScheduleBatch
(NativeArray<SpherecastCommand>
commands
,
NativeArray<RaycastHit>
results
,
int
minCommandsPerJob
,
int
maxHits
,
Unity.Jobs.JobHandle
dependsOn
);
Parameters
Parameter
Description
commands
A NativeArray of ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dd30e21a6fc0 | unity_docs | rendering | Show me a Unity C# example demonstrating `ParticleSystem.SetCustomParticleData`. | g the Particle System update. If you want to provide your own data using this function, disable the Custom Data module.
However, if you want to modify the data that the Custom Data module generates:
1. Use
ParticleSystem.GetCustomParticleData
to get the particle data.
2. Modify the particle data.
3. Use
SetCustomPar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fd312a3fc320 | unity_docs | performance | What is `Rendering.AttachmentIndexArray.ctor` in Unity? Explain its purpose and usage. | AttachmentIndexArray Constructor
Declaration
public
AttachmentIndexArray
(int
numAttachments
);
Declaration
public
AttachmentIndexArray
(int[]
attachments
);
Declaration
public
AttachmentIndexArray
(NativeArray<int>
attachments
);
Parameters
Parameter
Description
numAttachments
Number of indices to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bd5969e828d3_doc_9 | github | scripting | What does `ViewportToGeographicPoint` do in this Unity script? Explain its purpose and signature. | Transforms the supplied viewport space coordinates into LatLongAltitude geographical coordinates, using the supplied camera (if specified) or the camera previously set via SetControlledCamera if not.The viewport-space coordinates to transform to geographical coordinates.The camera for which to perform the transform. If... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_e97a053ac64a | unity_docs | scripting | What is `RectTransform.sendChildDimensionsChange` in Unity? Explain its purpose and usage. | RectTransform.sendChildDimensionsChange
public bool
sendChildDimensionsChange
;
Description
Whether the RectTransform notifies components when a child RectTransform changes dimensions.
If true, this RectTransform calls
MonoBehaviour.OnChildRectTransformDimensionsChange
on all components attached to the same G... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae470819ffd7 | unity_docs | editor | What are the parameters of `QualitySettings.TryIncludePlatformAt` in Unity? | Returns bool If errors were found. Description [Editor Only] Includes a platform to be supported by the Quality Level. ```csharp
public void IncludeQualityLevelForPlatform(int qualityLevelToExclude, BuildTarget platformToExclude)
{
var activeBuildTargetGroup = BuildPipeline.GetBuildTargetGroup(platformToExclude);
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6476711f1d7e | unity_docs | rendering | What is `Rendering.MetadataValue` in Unity? Explain its purpose and usage. | MetadataValue
struct in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
Contains a single metadata value for a batch.
A metadata value is a uint32 value tied to a DOTS-instanced property. Unity passes this metadata to the shader.
Properties
Property
Description
NameID
The name ID ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fb061ce13dde | unity_docs | networking | Explain 'Multiplayer Play Mode' in Unity. | com.unity.multiplayer.playmode
## Description
Multiplayer Play Mode is a feature that enables multiple editor instances to be opened simultaneously on the same development device.
## Released for Unity
Package version 1.6.3 is released for Unity Editor version 6000.0. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9dc76387a238 | unity_docs | input | What is `UIElements.ScrollView.NestedInteractionKind` in Unity? Explain its purpose and usage. | NestedInteractionKind
enumeration
Description
Options for controlling how nested
ScrollView
handles scrolling when reaching
the limits of the scrollable area.
Properties
Property
Description
Default
Automatically selects the behavior according to the context in which the UI runs. For touch input, typica... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_ba69483bff2c_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The View handles user interface and user input
Signature:
```csharp
public class RightView: MonoBehaviour, IView
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_cfd77865abca | unity_docs | scripting | What is `Rendering.PIX.EndGPUCapture` in Unity? Explain its purpose and usage. | PIX.EndGPUCapture
Declaration
public static void
EndGPUCapture
();
Description
Ends the current GPU frame capture in PIX. If not running via PIX, or as a development build, then it has no effect.
```csharp
using UnityEngine;
using UnityEngine.Rendering;public class PixControl : MonoBehaviour
{
public int frame... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_821ee4534e9c | unity_docs | scripting | Show me a Unity C# example demonstrating `SceneView.CameraSettings`. | CameraSettings
class in
UnityEditor
Description
Use this class to set
SceneView
Camera properties.
```csharp
// Create a folder (right click in the Assets directory, click Create>Folder)
// and name it Editor if one doesn't exist already. Create a new C# script called CustomSettings
// and place it in that fold... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_40428efc7a05 | unity_docs | scripting | What is `MacFullscreenMode` in Unity? Explain its purpose and usage. | MacFullscreenMode
enumeration
Description
Mac fullscreen mode.
This defines how fullscreen mode is handled on macOS Standalones.
Properties
Property
Description
FullscreenWindow
Fullscreen window.
FullscreenWindowWithDockAndMenuBar
Fullscreen window with Dock and Menu bar. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_32a9711d1c6c | unity_docs | rendering | What is `TextureImporter.mipmapLimitGroupName` in Unity? Explain its purpose and usage. | TextureImporter.mipmapLimitGroupName
public string
mipmapLimitGroupName
;
Description
Name of the texture mipmap limit group to which this texture belongs.
Has no effect if the
textureShape
is not
Texture2D
or
Texture2DArray
. Also, has no effect on textures without mipmaps. For additional information, se... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_09e3cc100133 | unity_docs | scripting | What is `SortingLayer.GetLayerValueFromID` in Unity? Explain its purpose and usage. | SortingLayer.GetLayerValueFromID
Declaration
public static int
GetLayerValueFromID
(int
id
);
Parameters
Parameter
Description
id
The unique value of the sorting layer as returned by any renderer's sortingLayerID property.
Returns
int
The final sorting value of the layer relative to other layers.
Desc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_158810dafa2a | unity_docs | scripting | What is `Presets.Preset.UpdateProperties` in Unity? Explain its purpose and usage. | Preset.UpdateProperties
Declaration
public bool
UpdateProperties
(
Object
source
);
Parameters
Parameter
Description
source
Used by the Preset to get its new serialized values.
Returns
bool
Returns true if the Preset was updated, false otherwise.
Description
Updates this Preset's properties from the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_11bd7ccf9b28 | unity_docs | scripting | In Unity's 'Deploy a QNX project', what is 'Example' and how does it work? | export UNITY_QNX_WINDOW_CLASS_LIST=main,fullscreen_overlay
This assigns properties to windows in the following order:
main
window properties to the first window (the SDL window with ID 1)
fullscreen_overlay
window properties to the second window | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b77debeb7bd8 | unity_docs | editor | What is `Tool` in Unity? Explain its purpose and usage. | Tool
enumeration
Description
Which tool is active in the editor.
Properties
Property
Description
View
The view tool is active - Use Tools.viewTool to find out which view tool we're talking about.
Move
The move tool is active.
Rotate
The rotate tool is active.
Scale
The scale tool is active.
Rect
The rect to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7aaaffd1e446 | unity_docs | physics | What is `PhysicsShapeType2D.Capsule` in Unity? Explain its purpose and usage. | PhysicsShapeType2D.Capsule
Description
Use a capsule shape to interpret the
PhysicsShape2D
geometry.
A capsule geometry type is comprised of two vertices in the
PhysicsShape2D
and a
PhysicsShape2D.radius
. The two vertices represent the centers of the two ends of a capsule shape with the radius defining the ci... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_42edc8960904 | unity_docs | performance | What is `Mesh.MeshData.SetVertexBufferParams` in Unity? Explain its purpose and usage. | Mesh.MeshData.SetVertexBufferParams
Declaration
public void
SetVertexBufferParams
(int
vertexCount
,
params VertexAttributeDescriptor[]
attributes
);
Declaration
public void
SetVertexBufferParams
(int
vertexCount
,
NativeArray<VertexAttributeDescriptor>
attributes
);
Parameters
Parameter
Description
v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a962f746d4de | unity_docs | rendering | What is `Rendering.CommandBuffer.SetKeyword` in Unity? Explain its purpose and usage. | CommandBuffer.SetKeyword
Declaration
public void
SetKeyword
(ref
Rendering.GlobalKeyword
keyword
,
bool
value
);
Declaration
public void
SetKeyword
(
Material
material
,
ref
Rendering.LocalKeyword
keyword
,
bool
value
);
Declaration
public void
SetKeyword
(
ComputeShader
computeShader
,
ref
Rend... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c0c9aee088ce | unity_docs | xr | What are the parameters of `Search.SearchService.GetAction` in Unity? | Returns SearchAction The matching action. Description Returns the search action for a given search provider and search action ID. ```csharp
using System.Linq;
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
static class Example_SearchService_GetAction
{
[MenuItem("Examples/SearchService/GetAction")... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e359b260c1a7 | unity_docs | scripting | What is `PrimitiveType.Sphere` in Unity? Explain its purpose and usage. | PrimitiveType.Sphere
Description
A sphere primitive.
Additional resources:
GameObject.CreatePrimitive
.
```csharp
using UnityEngine;
using System.Collections;// Creates a sphere primitivepublic class ExampleClass : MonoBehaviour
{
void Start()
{
GameObject sphere = GameObject.CreatePrimitive(PrimitiveType.Sphe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d3025a37ff1 | unity_docs | animation | What is `AnimationEvent.animatorStateInfo` in Unity? Explain its purpose and usage. | AnimationEvent.animatorStateInfo
public
AnimatorStateInfo
animatorStateInfo
;
Description
The animator state info related to this event (Read Only).
Additional resources:
AnimatorStateInfo
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_090688fcc74b | unity_docs | physics | What is `Tilemaps.TilemapCollider2D` in Unity? Explain its purpose and usage. | TilemapCollider2D
class in
UnityEngine.Tilemaps
/
Inherits from:
Collider2D
/
Implemented in:
UnityEngine.TilemapModule
Description
Collider for 2D physics representing shapes defined by the corresponding
Tilemap
.
Additional resources:
BoxCollider2D
,
CircleCollider2D
,
EdgeCollider2D
,
PolygonCollider2... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_18d1141d157c | unity_docs | math | Show me a Unity C# example demonstrating `Vector3.OrthoNormalize`. | t can be applied to a mesh by scaling up on one axis while scaling down
proportionally on the other two. This means that once the first axis vector is specified, it doesn't
greatly matter what the other two are as long as they are normalized and orthogonal. OrthoNormalize
can be used to ensure the first vector is norma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e43558011d09 | unity_docs | ui | What is `UIElements.BackgroundSize` in Unity? Explain its purpose and usage. | BackgroundSize
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Script interface for
VisualElement
background-size style property IStyle.BackgroundSize. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_60a2e62a31d7 | unity_docs | physics | Show me a Unity code example for 'Advanced Text Generator'. | roject and
create a dynamic font asset
from it.
## In UI Builder
To use Advanced Text Generator in UI Builder, do the following:
Select the
visual element
that you want to apply to.
In the Inspector panel, select
Inlined Styles
>
Text
.
From the
Text Generator Type
dropdown, select
Advanced
.
## In USS
To use Advan... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cafe7a5c3164 | unity_docs | editor | What is `IMGUI.Controls.TreeView.CanStartDragArgs` in Unity? Explain its purpose and usage. | CanStartDragArgs
struct in
UnityEditor.IMGUI.Controls
Description
Method arguments for the
CanStartDrag
virtual method.
Properties
Property
Description
draggedItem
Item about to be dragged.
draggedItemIDs
The multi-selection about to be dragged. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_fbe6e936c2da | github | scripting | Write a Unity C# XR/VR script for Viewer Startup | ```csharp
// SPDX-License-Identifier: MIT
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using GaussianSplatting.Runtime;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.XR;
[DefaultExecutionOrder(-1000)]
public sealed class ViewerStartup... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aa7a4b461f5e | unity_docs | physics | What are the parameters of `Rigidbody2D.MovePosition` in Unity? | Description Moves the rigidbody to position . Moves the rigidbody to the specified position by calculating the appropriate linear velocity required to move the rigidbody to that position during the next physics update. During the move, neither gravity or linearDamping will affect the body. This causes the object to r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_574c6762d964 | unity_docs | animation | What is `Animations.AnimatorControllerPlayable.PlayInFixedTime` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable.PlayInFixedTime
Declaration
public void
PlayInFixedTime
(string
stateName
,
int
layer
= -1,
float
fixedTime
= float.NegativeInfinity);
Declaration
public void
PlayInFixedTime
(int
stateNameHash
,
int
layer
= -1,
float
fixedTime
= float.NegativeInfinity);
Parameters
Parame... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c8272d4ccd91 | unity_docs | scripting | What is `BuildPlayerOptions.assetBundleManifestPath` in Unity? Explain its purpose and usage. | BuildPlayerOptions.assetBundleManifestPath
public string
assetBundleManifestPath
;
Description
The path to an manifest file describing all of the asset bundles used in the build (optional).
When you call
BuildPipeline.BuildAssetBundles
to create your AssetBundles, Unity will also generate a manifest file with... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2eafe08b4b71 | unity_docs | rendering | Show me a Unity C# example demonstrating `Renderer.isVisible`. | ion
Is this renderer visible in any camera? (Read Only)
Note that the object is considered visible when it needs to be rendered in the Scene. For example, it
might not actually be visible by any camera but still need to be rendered for shadows.
When running in the editor, the Scene view cameras will also cause this v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3bbe4c062dc3 | github | scripting | Write a Unity C# MonoBehaviour script called Process Installer Base | ```csharp
using UnityEngine;
using VContainer;
using VContainer.Unity;
namespace AntiMonoBehaviour.Processes.Installers
{
public abstract class ProcessInstallerBase<TProcess> : ScriptableObject, IInstaller
where TProcess : ProcessBase
{
public virtual void Install(IContainerBuilder builder)
... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_069a9231adc3 | unity_docs | performance | What are the parameters of `Profiling.Profiler.EmitFrameMetaData` in Unity? | Description Write metadata associated with the current frame to the Profiler stream. Use EmitFrameMetaData to write arbitrary binary data to the profiler stream. Data must contain only blittable types. ```csharp
using System;
using System.Diagnostics;
using Unity.Collections;
using UnityEngine;
using UnityEngine.Profil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4cf086da1a9c | unity_docs | scripting | What is `GUI.EndGroup` in Unity? Explain its purpose and usage. | GUI.EndGroup
Declaration
public static void
EndGroup
();
Description
End a group.
Should be attached with
GUI.BeginGroup
.
Additional resources:
BeginGroup
.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void OnGUI()
{
// Constrain all drawing to be with... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_af1d1cd90fe1 | unity_docs | xr | What is `UserAuthorization.WebCam` in Unity? Explain its purpose and usage. | UserAuthorization.WebCam
Description
Request permission to use any video input sources attached to the device.
You need to ask permission for access to the camera on iOS and Web platforms.
You can project the feed of webcams, integrated cameras, and external cameras onto a Texture, GameObject or RawImage in your a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5a923c6d8294 | unity_docs | xr | What is `Compilation.CompilationPipeline` in Unity? Explain its purpose and usage. | CompilationPipeline
class in
UnityEditor.Compilation
Description
Methods and properties for script compilation pipeline.
Static Properties
Property
Description
codeOptimization
Current code optimization mode.
Static Methods
Method
Description
AssemblyDefinitionReferenceGUIDToGUID
Converts an assembly defin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4ce2a55542e3 | unity_docs | physics | Show me a Unity code example for 'Create custom binding types'. | sult method to inform the binding system if a binding object needs to be updated on the next cycle.
## Example
This section provides an example to demonstrate how to create a custom binding type and set up the binding in UI Builder, UXML, and C#.
The following example creates a custom binding type that displays the c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2118ef0559cf | unity_docs | scripting | What is `UIElements.RectIntField` in Unity? Explain its purpose and usage. | RectIntField
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.BaseCompositeField_3
/
Implemented in:
UnityEngine.UIElementsModule
Description
A
RectInt
field. For more information, refer to
UXML element RectIntField
.
Static Properties
Property
Description
inputUssClassName
USS class nam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a71eaebafcaf | unity_docs | editor | What is `iOS.Xcode.PBXProject.AddFileToBuildSection` in Unity? Explain its purpose and usage. | PBXProject.AddFileToBuildSection
Declaration
public void
AddFileToBuildSection
(string
targetGuid
,
string
sectionGuid
,
string
fileGuid
);
Parameters
Parameter
Description
targetGuid
The GUID of the target, such as the one returned by
TargetGuidByName
.
sectionGuid
The GUID of the section to add the fi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9ed72ee528e0 | unity_docs | rendering | What is `ParticleSystemRenderer.GetActiveVertexStreams` in Unity? Explain its purpose and usage. | ParticleSystemRenderer.GetActiveVertexStreams
Declaration
public void
GetActiveVertexStreams
(List<ParticleSystemVertexStream>
streams
);
Parameters
Parameter
Description
streams
The array of streams to populate.
Description
Queries which Vertex Shader streams are enabled on the
ParticleSystemRenderer
.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0ec75985998a | unity_docs | physics | What is `HingeJoint2D` in Unity? Explain its purpose and usage. | HingeJoint2D
class in
UnityEngine
/
Inherits from:
AnchoredJoint2D
/
Implemented in:
UnityEngine.Physics2DModule
Description
Joint that allows a Rigidbody2D object to rotate around a point in space or a point on another object.
Additional resources:
DistanceJoint2D
,
SliderJoint2D
,
SpringJoint2D
,
JointA... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6c98da148d9d | unity_docs | physics | What are the parameters of `Collider2D.OnTriggerEnter2D` in Unity? | Description Sent when another object enters a trigger collider attached to this object (2D physics only). Further information about the other collider is reported in the Collider2D parameter passed during the call. Trigger events will be sent to disabled MonoBehaviour s, to allow enabling Behaviour s in response to col... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c1548c5b00f | unity_docs | xr | What is `Compilation.CompilationPipeline.RequestScriptCompilation` in Unity? Explain its purpose and usage. | CompilationPipeline.RequestScriptCompilation
Declaration
public static void
RequestScriptCompilation
();
Declaration
public static void
RequestScriptCompilation
(
Compilation.RequestScriptCompilationOptions
options
);
Parameters
Parameter
Description
options
Optional parameter to specify whether the Edi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_348a8140aaf3 | unity_docs | scripting | Explain 'Managing update and execution order' in Unity. | Unity runtime applications run in a loop, where the engine repeatedly processes input, updates game state, and renders frames. This is commonly called the game or Player loop. Traditional component-based Unity projects use MonoBehaviour script components to hook into the Player loop through a series of built-in callbac... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cfef0749e115 | unity_docs | math | What is `AndroidJNI.CallLongMethod` in Unity? Explain its purpose and usage. | AndroidJNI.CallLongMethod
Declaration
public static long
CallLongMethod
(IntPtr
obj
,
IntPtr
methodID
,
jvalue[]
args
);
Description
Calls a Java instance method defined by
methodID
, optionally passing an array of arguments (
args
) to the method.
Additional resources:
Java Native Interface Specification ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_21c051ee4fef | unity_docs | physics | What is `Joint2D.GetReactionForce` in Unity? Explain its purpose and usage. | Joint2D.GetReactionForce
Declaration
public
Vector2
GetReactionForce
(float
timeStep
);
Parameters
Parameter
Description
timeStep
The time to calculate the reaction force for.
Returns
Vector2
The reaction force of the joint in the specified
timeStep
.
Description
Gets the reaction force of the joi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bf47f1d9b0bf | unity_docs | physics | What is `ArticulationBody.AddRelativeForce` in Unity? Explain its purpose and usage. | ArticulationBody.AddRelativeForce
Declaration
public void
AddRelativeForce
(
Vector3
force
,
ForceMode
mode
= ForceMode.Force);
Parameters
Parameter
Description
force
The force vector in local coordinates.
mode
The type of force to apply.
Description
Applies a
force
to the Articulation Body, rela... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fe631f4dd8e8 | unity_docs | scripting | Give me an overview of the `WebGLDebugSymbolMode` class in Unity. | WebGLDebugSymbolMode
enumeration
Description
An enum containing different modes for debug symbols.
This enum is used within the WebGL platform to define how debug symbols are added to the build.
Properties
Property
Description
Off
No debug symbols are added to the build.
External
Debug symbols are stored in a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad8f3dbb35a4 | unity_docs | editor | What are the parameters of `PrefabUtility.ReplacePrefabAssetOfPrefabInstance` in Unity? | Description Replace the Prefab Asset for a Prefab instance that exists in a Scene or for a nested Prefab instance inside another Prefab. This function will keep the Prefab instance root position, rotation and scale in the Scene but merge the contents from the new Prefab Asset while, by default, maintaining as many over... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_91050c59bde9 | unity_docs | animation | What is `Animations.BoundProperty.Equals` in Unity? Explain its purpose and usage. | BoundProperty.Equals
Declaration
public bool
Equals
(object
compare
);
Parameters
Parameter
Description
compare
The BoundProperty object to compare.
Returns
bool
Returns True if the Index and Version of this BoundProperty matches the specified BoundProperty object. Returns False otherwise.
Description... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_40931e364a7f | unity_docs | audio | What is `AudioCurveRendering` in Unity? Explain its purpose and usage. | AudioCurveRendering
class in
UnityEditor
Description
Antialiased curve rendering functionality used by audio tools in the editor.
Static Methods
Method
Description
DrawCurve
Renders a thin curve determined by the curve evaluation function. The solid color of the curve is set by the curveColor argument.
DrawFi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2fd25359554d | unity_docs | rendering | What are the parameters of `EditorUtility.SaveFilePanel` in Unity? | Returns string A string path to the saved file if the dialog was canceled or the save failed, it returns an empty string. Description Displays the "save file" dialog and returns the selected path name. This function displays a dialog that prompts the user for a path to save an asset to. It does not create the file or p... | 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.