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_c615ae1b25ff | unity_docs | rendering | What is `RaycastHit.lightmapCoord` in Unity? Explain its purpose and usage. | RaycastHit.lightmapCoord
public
Vector2
lightmapCoord
;
Description
The uv lightmap coordinate at the impact point.
This can be used for sampling the lightmap and setting the sampled color value as the material color of a moving object
to make it roughly match the baked lighting. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6458c783bc4c | unity_docs | rendering | In Unity's 'Post-processing', what is 'Additional resources and examples' and how does it work? | 👥
Community
:
Join the conversation on Unity Discussions for Graphics
📖
E-Book
:
Introduction to the Universal Render Pipeline for advanced creators (Unity 6 edition)
📺
Video
:
20 advanced 2D shader effects - part 1
📺
Video
:
20 advanced 2D shader effects - part 2
📺
Video
:
Introduction to the Render Graph in Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f2448a8a3215 | unity_docs | rendering | What are the parameters of `SpeedTreeImporter.SearchAndRemapMaterials` in Unity? | Returns bool Returns true if any materials have been remapped, otherwise false. Description Search the project for matching materials and use them instead of the internal materials. Unity follows specific naming conventions when importing SpeedTree materials. This allows Unity to search for matching material assets by ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9dc129b15ef4 | unity_docs | math | What is `Tilemaps.Tilemap.BoxFill` in Unity? Explain its purpose and usage. | Tilemap.BoxFill
Declaration
public void
BoxFill
(
Vector3Int
position
,
Tilemaps.TileBase
tile
,
int
startX
,
int
startY
,
int
endX
,
int
endY
);
Parameters
Parameter
Description
position
Position of the
Tile
on the
Tilemap
.
tile
Tile
to place.
startX
The minimum X coordinate limit to fill t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e9a89c4e6daf | unity_docs | scripting | What is `Unity.Hierarchy.HierarchyNodeTypeHandlerBase.Dispose` in Unity? Explain its purpose and usage. | HierarchyNodeTypeHandlerBase.Dispose(bool)
Parameters
Parameter
Description
disposing
Returns true if called from Dispose, false otherwise.
Description
Disposes this hierarchy node type handler to free up resources in the derived class.
Obsolete
The IDisposable interface is obsolete and no longer has any ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d12a0d36259 | unity_docs | rendering | What is `ParticleSystemMeshDistribution` in Unity? Explain its purpose and usage. | ParticleSystemMeshDistribution
enumeration
Description
Sets which method Unity uses to randomly assign Meshes to particles.
The
ParticleSystemRenderer
uses this to determine how often to randomly select each Mesh.
Properties
Property
Description
UniformRandom
Use a uniform random value to give each Mesh an e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_79411bacbfcf | unity_docs | scripting | In Unity's 'Create a car with Wheel colliders', what is 'Prepare the project' and how does it work? | To follow these instructions, you need:
A new empty scene
The demo car model (download:
car.fbx
), imported into the open project
A ground surface for the car to travel across.
To create a ground surface:
Create a plane GameObject and rename it
Ground
. This plane is the ground that the car drives on.
Set its position ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65432d8e9dd9 | unity_docs | animation | What is `Animations.ParentConstraint.SetSource` in Unity? Explain its purpose and usage. | ParentConstraint.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 ArgumentOutOfRangeExce... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4fc754128564 | unity_docs | rendering | In Unity's 'Video Clip Importer reference', what is 'Codec options' and how does it work? | Set Codec to one of the following options:
Property Description Auto
Choose the best video codec for the target platform automatically.
H264
Choose the MPEG–4 Advanced Video Coding (AVC) video codec, supported by hardware on most platforms.
H265
Choose the MPEG-H Part 2, or High Efficiency Video Coding (HEVC), video co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9e40c3f61d66 | unity_docs | editor | What is `EditorGUIUtility.SetIconForObject` in Unity? Explain its purpose and usage. | EditorGUIUtility.SetIconForObject
Declaration
public static void
SetIconForObject
(
Object
obj
,
Texture2D
icon
);
Parameters
Parameter
Description
obj
The
GameObject
or
MonoScript
to associate the icon with.
icon
The custom icon to associate with the
GameObject
or
MonoScript
. When this value i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a136de33cba1 | unity_docs | scripting | What is `IMGUI.Controls.TreeView.FindItem` in Unity? Explain its purpose and usage. | TreeView.FindItem
Declaration
protected
IMGUI.Controls.TreeViewItem
FindItem
(int
id
,
IMGUI.Controls.TreeViewItem
searchFromThisItem
);
Parameters
Parameter
Description
id
Find the TreeViewItem with this ID.
searchFromThisItem
Sets the search to start from an item. Use 'rootItem' to search the entire... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b3fc6651471f | unity_docs | rendering | What is `XR.XRDevice` in Unity? Explain its purpose and usage. | XRDevice
class in
UnityEngine.XR
/
Implemented in:
UnityEngine.VRModule
Description
Contains all functionality related to a XR device.
Static Properties
Property
Description
fovZoomFactor
Zooms the XR projection.
refreshRate
Refresh rate of the display in Hertz.
Static Methods
Method
Description
Disable... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b9e27f838f35 | unity_docs | scripting | What is `AndroidDeviceFilterData.driverVersionString` in Unity? Explain its purpose and usage. | AndroidDeviceFilterData.driverVersionString
public string
driverVersionString
;
Description
Vulkan device driver version.
Enter the version number in either of the following formats:
MajorVersion.MinorVersion.PatchVersion
where
MinorVersion
and
PatchVersion
are optional. For example,
0.676.0
.
Hexadecim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ef0b8d642ee3 | unity_docs | rendering | Explain 'Search assets with the Project search provider' in Unity. | Use the Project search provider to search all assets in your project.
## Query syntax
Provider token:
p:
(for Project )
## Query examples
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 ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_412713a870f0 | unity_docs | physics | In Unity's 'Get started with Unity', what is 'Install the Unity Editor' and how does it work? | The main way to download and install the Unity Editor is through the
Unity Hub
.
For more information on the different ways of installing Unity, refer to
Install Unity
.
Once you have installed the Editor, familiarize yourself with the
Editor interface
. It contains all the windows you need to manage and create gamepla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a741cdc23f2a | unity_docs | performance | Explain 'Adding profiling information to your code introduction' in Unity. | By default, the
Profiler window
displays information about Unity’s native code. It uses
built-in profiler markers
to organize and divide up the performance data it collects.
You can add
profiler markers
to your own code to make timings spent in these areas visible in the Profiler window with the ProfilerMarker API
.
Yo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_194fa796d878 | unity_docs | math | What is `HandleUtility.DistancePointToLineSegment` in Unity? Explain its purpose and usage. | HandleUtility.DistancePointToLineSegment
Declaration
public static float
DistancePointToLineSegment
(
Vector2
p
,
Vector2
a
,
Vector2
b
);
Description
Distance from a point
p
in 2d to a line segment defined by two points
a
and
b
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8bc67bf05e2f | unity_docs | rendering | What is `Rendering.RayTracingAccelerationStructure.UpdateInstanceID` in Unity? Explain its purpose and usage. | RayTracingAccelerationStructure.UpdateInstanceID
Declaration
public void
UpdateInstanceID
(
Renderer
renderer
,
uint
instanceID
);
Parameters
Parameter
Description
renderer
The Renderer associated with the ray tracing instance.
instanceID
The new instance ID.
Description
Updates the instance ID of a ra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1587a28bc98d | unity_docs | physics | What is `ColliderDistance2D.isOverlapped` in Unity? Explain its purpose and usage. | ColliderDistance2D.isOverlapped
public bool
isOverlapped
;
Description
Gets whether the
distance
represents an overlap or not.
The
distance
can be positive indicating that the
Collider2D
are separated (not overlapped), zero indicating that they are touching (but not overlapped) or negative indicating that... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c470ed0388f9 | unity_docs | physics | What is `RotationDriveMode` in Unity? Explain its purpose and usage. | RotationDriveMode
enumeration
Description
Control
ConfigurableJoint
's rotation with either X & YZ or Slerp Drive.
Properties
Property
Description
XYAndZ
Use XY & Z Drive.
Slerp
Use Slerp drive. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4f714020d858 | unity_docs | ui | Explain 'RadioButtonGroup' in Unity. | A RadioButtonGroup offers a single selection out of a logical group of radio buttons. Selecting one cancels the others. RadioButtonGroup is similar to a DropdownField except that it exposes all choices in the UI.
Note
: To align an element with other fields in an Inspector window, simply apply the.unity-base-field__ali... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ae226ff15d76 | unity_docs | networking | In Unity's 'Connect the profiler to UWP', what is 'Connect the Unity profiler' and how does it work? | To connect the Unity profiler to a running Universal Windows application, perform the following steps:
Go to
Edit
>
Project Settings
>
Player
.
Select the
Publishing Settings
>
Capabilities
section.
Enable
Private Networks Capability
.
Enable
Internet (Client & Server) Capability
.
If you’ve already enabled the
Autocon... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cf8008503eab | unity_docs | scripting | Give me an overview of the `AudioChorusFilter` class in Unity. | AudioChorusFilter
class in
UnityEngine
/
Inherits from:
Behaviour
/
Implemented in:
UnityEngine.AudioModule
Description
The Audio Chorus Filter takes an Audio Clip and processes it creating a chorus effect.
The chorus effect modulates the original sound by a sinusoid low frequency oscillator (LFO). The outpu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aa45399fa7bc | unity_docs | editor | What is `Unity.CodeEditor.CodeEditor` in Unity? Explain its purpose and usage. | CodeEditor
class in
Unity.CodeEditor
Description
Handles interaction with the code editor.
Static Properties
Property
Description
CurrentEditorPath
The path to the external code editor that Unity uses used to open script assets.
Editor
A singleton instance of CodeEditor. The Unity Editor references this insta... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d2ece3b469b8 | unity_docs | rendering | Show me a Unity C# example demonstrating `Camera.stereoTargetEye`. | argetEye are found in the
StereoTargetEyeMask
enum. Every Camera renders to the Main Game Window by default. If you do not want to see the content from this Camera in the Main Game Window, use a Camera with a higher depth value than this Camera, or set the Camera's showDeviceView value to false.
This API is only avai... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_036156792748 | unity_docs | animation | Show me a Unity C# example demonstrating `UIElements.IVisualElementScheduler`. | cheduledItem.Every
method.
To remove the scheduler, use the
IVisualElementScheduledItem.Pause
method.
The scheduler is active only when the VisualElement is attached to a panel. Detaching the VisualElement from the panel
pauses the scheduler, and reattaching it resumes the scheduler.
Additional resources:... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_44863acade36_doc_3 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Notification that the screen projection of the resultant transformed point of this Positioner instance has changed.An app may hook to this event in order to respond to a change to a Positioner by accessing theupdated projected screen-space point via Positioner.TryGetScreenPoint.See also PositionerApi.OnPositionerScreen... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_0a0cde783d3b | unity_docs | scripting | What is `PackageManager.UI.IPackageManagerExtension.OnPackageAddedOrUpdated` in Unity? Explain its purpose and usage. | IPackageManagerExtension.OnPackageAddedOrUpdated
Declaration
public void
OnPackageAddedOrUpdated
(PackageInfo
packageInfo
);
Parameters
Parameter
Description
packageInfo
The package information.
Description
Called by the Package Manager UI when a package is added or updated. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_52ea2ec27084 | unity_docs | physics | What is `ParticleSystemForceField.multiplyDragByParticleVelocity` in Unity? Explain its purpose and usage. | ParticleSystemForceField.multiplyDragByParticleVelocity
public bool
multiplyDragByParticleVelocity
;
Description
When using Drag, the drag strength will be multiplied by the speed of the particles if this toggle is enabled.
Enabling this value results in a more physically accurate drag simulation.
Additional r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c3af2a331213 | unity_docs | rendering | What are the parameters of `LightTransport.RadeonRaysProbeIntegrator.SetProgressReporter` in Unity? | Description Set progress tracker. Set a BakeProgressState on the integrator. The integrator will report progress by updating the reporter while the integration is in progress. ```
var integrator = new RadeonRaysProbeIntegrator();
var progress = new BakeProgressState();
integrator.SetProgressReporter(progress);
``` Ho... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7f57c3cc0a2f | unity_docs | editor | What is `EditorPrefs.GetString` in Unity? Explain its purpose and usage. | EditorPrefs.GetString
Declaration
public static string
GetString
(string
key
);
Declaration
public static string
GetString
(string
key
,
string
defaultValue
= "");
Description
Returns the value corresponding to
key
in the preference file if it exists.
If the value doesn't exist, it will return
defaul... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a229b52072d1 | unity_docs | scripting | What is `XR.MeshInfo.ChangeState` in Unity? Explain its purpose and usage. | MeshInfo.ChangeState
public
XR.MeshChangeState
ChangeState
;
Description
The change state (e.g., Added, Removed) of the tracked mesh.
The
ChangeState
is relative to the last call to
XRMeshSubsystem.TryGetMeshInfos
. For example, a value of
MeshChangeState.Added
indicates the mesh has been added since th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2459c9029a35 | unity_docs | scripting | Show me a Unity C# example demonstrating `HandleUtility.DistanceToCube`. | the cube.
Returns
float
Distance from mouse to cube in pixels.
Description
Returns the distance in pixels from the mouse pointer to a cube.
Calculates the screen space distance from the mouse pointer to a cube at given world
space
position
with the given
rotation
and
size
.
Returns zero when mouse pointer... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3a7ad76e52f7 | unity_docs | scripting | What is `PlayerSettings.WSAImageType.UWPSquare310x310Logo` in Unity? Explain its purpose and usage. | PlayerSettings.WSAImageType.UWPSquare310x310Logo
Description
The image to display as the large tile in the start menu and Microsoft Store.
The Universal Windows Platform asset file name for this is Square310x310Logo.png. For more information about application icons and logos, see
Microsoft's documentation
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_555c5f390969 | unity_docs | rendering | What is `AssetPostprocessor.OnPostprocessCubemap` in Unity? Explain its purpose and usage. | AssetPostprocessor.OnPostprocessCubemap(Cubemap)
Description
Add this function to a subclass to get a notification just before a cubemap texture has completed importing.
Note that you should avoid modifying the TextureImporter settings in this manner as it would have no effect on the texture that is currently bein... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a5f5350a5b89 | unity_docs | xr | Explain 'Interacting with web servers' in Unity. | The UnityWebRequest class and associated APIs provide a system for composing HTTP requests and handling HTTP responses. The Unity web request system allows Unity games to interact with web back ends. It also supports features such as chunked HTTP requests, streaming
POST
/
PUT
operations, and full control over HTTP hea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a707d0c72763 | unity_docs | rendering | What is `Camera.RemoveCommandBuffer` in Unity? Explain its purpose and usage. | Camera.RemoveCommandBuffer
Declaration
public void
RemoveCommandBuffer
(
Rendering.CameraEvent
evt
,
Rendering.CommandBuffer
buffer
);
Parameters
Parameter
Description
evt
When to execute the command buffer during rendering.
buffer
The buffer to execute.
Description
Remove command buffer from execut... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ea1e08b0ea59 | unity_docs | math | Explain 'Create a property visitor with low-level APIs' in Unity. | This example demonstrates how to create a property visitor with the low-level IPropertyBagVisitor and IPropertyVisitor interfaces. It produces the same outcome as the
Create a property visitor with the PropertyVisitor class
example but with a visitor that implements these interfaces rather than one that derives from
Pr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fd856a0ac067 | unity_docs | editor | Show me a Unity C# example demonstrating `Unity.Profiling.Editor.ProfilerCounterDescriptor.ctor`. | scriptor Constructor
Declaration
public
ProfilerCounterDescriptor
(string
name
,
Unity.Profiling.ProfilerCategory
category
);
Parameters
Parameter
Description
name
The name of the Profiler counter to describe. A string.
category
The category of the Profiler counter to describe. A
ProfilerCategory
.
De... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a8569b00670d | unity_docs | rendering | Explain 'Branch based on Unity version' in Unity. | UNITY_VERSION
contains the numeric value of the Unity version.
This can be used for version comparisons if you need to write shaders that use different built-in shader functionality. For example, use
#if UNITY_VERSION >= 60000000
if you want the preprocessor check to pass only on Unity version 6.0 or later.
## Unity 6... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9815698691ac | unity_docs | scripting | What is `IMGUI.Controls.MultiColumnHeader.OnVisibleColumnsChanged` in Unity? Explain its purpose and usage. | MultiColumnHeader.OnVisibleColumnsChanged
Declaration
protected void
OnVisibleColumnsChanged
();
Description
Called when the number of visible column changes and dispatches the
visibleColumnsChanged
event.
Can be overridden to control the dispatching of the
visibleColumnsChanged
event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_619bf6148176 | unity_docs | networking | What is `Android.AndroidConfiguration.screenLayoutRound` in Unity? Explain its purpose and usage. | AndroidConfiguration.screenLayoutRound
public
Android.AndroidScreenLayoutRound
screenLayoutRound
;
Description
Mirrors the Android property
screenLayout
based on the
SCREENLAYOUT_ROUND_MASK
value.
For information about this property, refer to the Android developer documentation on
screenLayout
and
SCRE... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_01174bd9eb6e | unity_docs | scripting | Show me a Unity C# example demonstrating `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.As`. | pe. Use this method for direct type conversions, such as during low-level memory operations or when you interact with unmanaged code where type safety is not enforced.
Apply caution when you use this method. Improper casts may lead to runtime exceptions or undefined behavior if the types are incompatible. This method b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0bd9c186d2d2 | unity_docs | physics | Explain 'Introduction to character control' in Unity. | The character in a first- or third-person game usually needs some collision-based physics so that it doesn’t fall through the floor or walk through walls. In many applications, the character’s acceleration and movement are intentionally not physically realistic, so that the character can accelerate, brake and change di... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8d59b2215b54 | unity_docs | physics | Explain 'Introduction to Terrain colliders' in Unity. | Terrain colliders
match the shape of a Terrain exactly, for extremely accurate Terrain collision simulation. The Terrain collider is the most accurate collider type for Terrains.
## Construction of a Terrain collider
Unlike
primitive colliders and Mesh colliders
, Terrain colliders are heightmap-based. PhysX generate... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4b5e620d53c9 | unity_docs | rendering | What is `MaterialPropertyBlock.HasVector` in Unity? Explain its purpose and usage. | MaterialPropertyBlock.HasVector
Declaration
public bool
HasVector
(string
name
);
Declaration
public bool
HasVector
(int
nameID
);
Parameters
Parameter
Description
name
The name of the property.
nameID
The name ID of the property. Use
Shader.PropertyToID
to get this ID.
Returns
bool
Returns true... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_832d79ecf143 | unity_docs | math | What is `Rendering.RayTracingShader` in Unity? Explain its purpose and usage. | RayTracingShader
class in
UnityEngine.Rendering
/
Inherits from:
Object
/
Implemented in:
UnityEngine.CoreModule
Description
A shader for GPU ray tracing.
This shader should contain at least a
raygeneration
shader.
Properties
Property
Description
maxRecursionDepth
The maximum number of ray bounces this ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d453595396aa | unity_docs | physics | What is `Physics.interCollisionDistance` in Unity? Explain its purpose and usage. | Physics.interCollisionDistance
public static float
interCollisionDistance
;
Description
Sets the minimum separation distance for cloth inter-collision.
Cloth particles closer than this distance that belong to different Cloth objects will be separated. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2dc818a96ee5 | unity_docs | rendering | What is `Video.VideoPlayer.targetCameraAlpha` in Unity? Explain its purpose and usage. | VideoPlayer.targetCameraAlpha
public float
targetCameraAlpha
;
Description
Overall transparency level of the target camera plane video.
This level, in range [0.0, 1.0], is applied in addition of the transparency that may be embedded in the video frames. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1d36046f022d | unity_docs | ui | What is `PlayerSettings.iOS.hideHomeButton` in Unity? Explain its purpose and usage. | PlayerSettings.iOS.hideHomeButton
public static bool
hideHomeButton
;
Description
Specifies whether the home button should be hidden in the iOS build of this application.
On iPhone X the home button is implemented as a system gesture (swipe up from the bottom edge of the screen).
The location of this virtual b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_398ca44b8c9a | unity_docs | editor | What is `InitializeOnEnterPlayModeAttribute` in Unity? Explain its purpose and usage. | InitializeOnEnterPlayModeAttribute
class in
UnityEditor
Description
Allow an editor class method to be initialized when Unity enters Play Mode.
Use to reset static fields in Editor classes on Enter Play Mode without Domain Reload.
```csharp
using UnityEngine;
using UnityEditor;class MyAnotherClass
{
static int ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f3ea0a2466ba_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Custom class for interfacing with saved data on disk. Also keeps a "cache" of game dataso that it isn't constantly reading disk, which is much slower.This also means that you need to manually save when appropriate, as newest information isalways in this class, not on the disk.
Signature:
```csharp
private static class... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_05c5d5b503be | unity_docs | scripting | Show me a Unity C# example demonstrating `Rigidbody.freezeRotation`. | Rigidbody.freezeRotation
public bool
freezeRotation
;
Description
Controls whether physics will change the rotation of the object.
If freezeRotation is enabled, the rotation is not modified by the physics simulation.
This is useful for creating first person shooters,
because the player needs full control of th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e94e3e8f7b4 | unity_docs | editor | What is `BuildPipeline.BuildAssetBundles` in Unity? Explain its purpose and usage. | BuildPipeline.BuildAssetBundles
Declaration
public static
AssetBundleManifest
BuildAssetBundles
(
BuildAssetBundlesParameters
buildParameters
);
Parameters
Parameter
Description
buildOptions
Configuration of the build.
Returns
AssetBundleManifest
The manifest summarizing all AssetBundles generated by ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82aafa71e681 | unity_docs | editor | Show me a Unity C# example demonstrating `VersionControl.Provider.GetActivePlugin`. | Provider.GetActivePlugin
Declaration
public static
VersionControl.Plugin
GetActivePlugin
();
Description
Gets the current, user selected verson control
Plugin
.
```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.VersionControl;
using UnityEngine;public class EditorScript : MonoB... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_14abb063e93a | unity_docs | editor | What is `Unity.Collections.LowLevel.Unsafe.NativeArrayUnsafeUtility.GetUnsafeReadOnlyPtr` in Unity? Explain its purpose and usage. | NativeArrayUnsafeUtility.GetUnsafeReadOnlyPtr
Declaration
public static void*
GetUnsafeReadOnlyPtr
(NativeArray<T>
nativeArray
);
Declaration
public static void*
GetUnsafeReadOnlyPtr
(ReadOnly<T>
nativeArray
);
Parameters
Parameter
Description
nativeArray
The NativeArray to check.
Returns
void*
The ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_61e3e38d65f1 | unity_docs | ui | What is `SettingsProvider.OnTitleBarGUI` in Unity? Explain its purpose and usage. | SettingsProvider.OnTitleBarGUI
Declaration
public void
OnTitleBarGUI
();
Description
Use this function to override drawing the title for the SettingsProvider using IMGUI. This allows you to add custom UI (such as a toolbar button) next to the title.
AssetSettingsProvider
uses this mecanism to display the "add ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_49632a48eaed | unity_docs | rendering | What is `EditorUtility.SetCameraAnimateMaterialsTime` in Unity? Explain its purpose and usage. | EditorUtility.SetCameraAnimateMaterialsTime
Declaration
public static void
SetCameraAnimateMaterialsTime
(
Camera
camera
,
float
time
);
Description
Sets the global time for this camera to use when rendering.
If
EditorUtility.SetCameraAnimateMaterials
is true for the given
Camera
, this is the value that ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5f6127a8399 | unity_docs | scripting | What is `Search.SearchMonitorView.Invalidate` in Unity? Explain its purpose and usage. | SearchMonitorView.Invalidate
Declaration
public void
Invalidate
(
Search.PropertyDatabaseRecordKey
recordKey
);
Parameters
Parameter
Description
recordKey
Property key.
Description
Mark a document property to be invalided. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f464871c978b | unity_docs | physics | What is `IMGUI.Controls.JointAngularLimitHandle.yMin` in Unity? Explain its purpose and usage. | JointAngularLimitHandle.yMin
public float
yMin
;
Description
Returns or specifies the minimum angular motion about the y-axis.
The value returned by this property depends on the current value of the
yMotion
property. If it is
ConfigurableJointMotion.Locked
, then it will always return 0. If it is
Configurab... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_43432fc108e4 | unity_docs | scripting | What is `ReflectionProbe.IsFinishedRendering` in Unity? Explain its purpose and usage. | ReflectionProbe.IsFinishedRendering
Declaration
public bool
IsFinishedRendering
(int
renderId
);
Parameters
Parameter
Description
renderId
An integer representing the RenderID as returned by the RenderProbe method.
Returns
bool
True if the render has finished, false otherwise.
Additional resources:
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a8f4e622c175 | unity_docs | scripting | What is `Gizmos.DrawCube` in Unity? Explain its purpose and usage. | Gizmos.DrawCube
Declaration
public static void
DrawCube
(
Vector3
center
,
Vector3
size
);
Description
Draw a solid box at
center
with
size
.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
void OnDrawGizmosSelected()
{
// Draw a semitransparent red c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ac4f0a09fe0a | unity_docs | rendering | What is `Rendering.GraphicsSettings` in Unity? Explain its purpose and usage. | GraphicsSettings
class in
UnityEngine.Rendering
/
Inherits from:
Object
/
Implemented in:
UnityEngine.CoreModule
Description
Script interface for
Graphics Settings
.
Static Properties
Property
Description
allConfiguredRenderPipelines
An array containing the RenderPipelineAsset instances that describe the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1ce422bd052b | unity_docs | rendering | Explain 'Search expressions' in Unity. | Search expressions allow you to add to the search query language to express complex queries that cross-reference multiple providers, for example, to search for all objects in a scene that use a shader that doesn’t compile.
Search expressions can be chained together to transform or perform set manipulations on Search It... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_923ba66e3a00 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormatUtility.IsUIntFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.IsUIntFormat
Declaration
public static bool
IsUIntFormat
(
Experimental.Rendering.GraphicsFormat
format
);
Description
Returns true if the format is an unsigned and integer format. Returns false otherw... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_174a23b53026 | unity_docs | math | What is `IMGUI.Controls.PrimitiveBoundsHandle.Axes` in Unity? Explain its purpose and usage. | Axes
enumeration
Description
A flag enumeration for specifying which axes on a
PrimitiveBoundsHandle
object should be enabled.
Properties
Property
Description
None
No axes.
X
X-axis (bit 0).
Y
Y-axis (bit 1).
Z
Z-axis (bit 2).
All
All axes. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_224e825b340a | unity_docs | math | What is `Experimental.Rendering.GraphicsStateCollection.GraphicsState` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsState
struct in
UnityEngine.Experimental.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
A graphics state identifies a specific rendering configuration.
Modern graphics APIs (i.e. Metal, D3D12, Vulkan)... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bb773566bb91 | unity_docs | editor | Show me a Unity C# example demonstrating `AndroidAssetPackImporter.GetAllImporters`. | AndroidAssetPackImporter.GetAllImporters
Declaration
public static AndroidAssetPackImporter[]
GetAllImporters
();
Returns
AndroidAssetPackImporter[]
Returns an array with all Android asset pack importers.
Description
Gets all Android asset pack importers.
```csharp
using UnityEditor;
using UnityEngine;pub... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_48446d83742d | unity_docs | editor | What is `AssetDatabase.CanOpenAssetInEditor` in Unity? Explain its purpose and usage. | AssetDatabase.CanOpenAssetInEditor
Declaration
public static bool
CanOpenAssetInEditor
(int
instanceID
);
Parameters
Parameter
Description
instanceID
The instance ID of the asset.
Returns
bool
Returns true if Unity can successfully open the asset in the Editor, otherwise returns false.
Description
Ch... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9cd19374d7da | unity_docs | scripting | What is `Physics.IgnoreCollision` in Unity? Explain its purpose and usage. | Physics.IgnoreCollision
Declaration
public static void
IgnoreCollision
(
Collider
collider1
,
Collider
collider2
,
bool
ignore
= true);
Parameters
Parameter
Description
collider1
Any collider.
collider2
Another collider you want to have
collider1
to start or stop ignoring collisions with.
ignore
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e1e57ca0ecb | unity_docs | editor | What is `AssetDatabase.ClearImporterOverride` in Unity? Explain its purpose and usage. | AssetDatabase.ClearImporterOverride
Declaration
public static void
ClearImporterOverride
(string
path
);
Parameters
Parameter
Description
path
Project relative path for the asset.
Description
Clears the importer override for the asset.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Asse... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_758fad246fc7 | unity_docs | scripting | What is `TerrainTools.SculptIndex` in Unity? Explain its purpose and usage. | SculptIndex
enumeration
Description
The index at which you should place the sculpt tools in the Terrain Tools overlay.
Properties
Property
Description
PaintHeight
The index at which you should place the Paint Height sculpt tool in the Terrain Tools overlay.
SetHeight
The index at which you should place the Set... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_74f72b38b7e0 | unity_docs | editor | Show me a Unity C# example demonstrating `HandleUtility.PickGameObject`. | vely considered for selection. If null, all GameObjects in open scenes are eligible for selection.
Returns
GameObject
The GameObject that is under the requested position.
Description
Pick game object closest to specified position.
HandleUtility.PickGameObject must not be called during a repaint. In most cases ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4b0df78e098 | unity_docs | physics | What is `PhysicsShapeGroup2D.AddPolygon` in Unity? Explain its purpose and usage. | PhysicsShapeGroup2D.AddPolygon
Declaration
public int
AddPolygon
(List<Vector2>
vertices
);
Parameters
Parameter
Description
vertices
A list of vertices that represent a continuous set of edges of a convex polygon with each vertex connecting to the following vertex to form each edge. The final vertex implici... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_544c092467b9 | unity_docs | xr | What are the parameters of `LightTransport.IProbeIntegrator.SetProgressReporter` in Unity? | Description Configures progress tracking for integration operations. Sets up progress reporting for long-running integration operations. The integrator updates the progress state during execution, allowing external systems to display progress information and handle cancellation requests. The progress reporter provides:... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_95d39632ea12 | unity_docs | scripting | What is `Unity.Hierarchy.HierarchyNodeTypeHandlerBase` in Unity? Explain its purpose and usage. | HierarchyNodeTypeHandlerBase
class in
Unity.Hierarchy
/
Implemented in:
UnityEngine.HierarchyCoreModule
Description
Provides a base class for hierarchy node type handlers.
Properties
Property
Description
CommandList
Get the HierarchyCommandList associated with this handler.
Hierarchy
Get the Hierar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8a009f5b1775 | unity_docs | scripting | What is `Unity.Hierarchy.Hierarchy.GetChild` in Unity? Explain its purpose and usage. | Hierarchy.GetChild
Declaration
public
Unity.Hierarchy.HierarchyNode
GetChild
(ref
Unity.Hierarchy.HierarchyNode
node
,
int
index
);
Parameters
Parameter
Description
node
The hierarchy node.
index
The child index.
Returns
HierarchyNode
A hierarchy node.
Description
Gets the child node at the s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_967a6307b5d9_doc_8 | github | scripting | What does `GetTileAnimationData` do in this Unity script? Explain its purpose and signature. | Retrieves any tile animation data from the scripted tile.Position of the Tile on the Tilemap.The Tilemap the tile is present on.Data to run an animation on the tile.Whether the call was successful.
Signature:
```csharp
public override bool GetTileAnimationData(Vector3Int position, ITilemap tilemap, ref TileAnimationDa... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_3768f8b9d918 | unity_docs | scripting | What is `UIElements.DataBinding.ApplyConverterGroupToUI` in Unity? Explain its purpose and usage. | DataBinding.ApplyConverterGroupToUI
Declaration
public void
ApplyConverterGroupToUI
(
UIElements.ConverterGroup
group
);
Parameters
Parameter
Description
group
The converter group.
Description
Applies a
ConverterGroup
to this binding that will be used when converting data between a
data source to a UI... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_024df8d81102_doc_0 | github | scripting | What does `CreateChild` do in this Unity script? Explain its purpose and signature. | Creates a new GameObject as a child transform.The desired GameObject nameThe new GameObject
Signature:
```csharp
public static GameObject CreateChild(this GameObject parent, string name = "GameObject")
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_bb0659ca3166 | unity_docs | editor | What is `Profiling.HierarchyFrameDataView.ViewModes` in Unity? Explain its purpose and usage. | ViewModes
enumeration
Description
The ViewModes enum defines data aggregation rules.
Properties
Property
Description
Default
Sets the View mode to raw hierarchy which represents each sample by an individual item.
MergeSamplesWithTheSameName
Merges and aggregates samples with the same name into a single hierarc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_74ca808753f2 | unity_docs | scripting | What is `SystemInfo.supportedRenderTargetCount` in Unity? Explain its purpose and usage. | SystemInfo.supportedRenderTargetCount
public static int
supportedRenderTargetCount
;
Description
How many simultaneous render targets (MRTs) are supported? (Read Only)
Additional resources:
Graphics.SetRenderTarget
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b2e34bef3cc6 | unity_docs | scripting | What is `UIElements.Experimental.PointerUpLinkTagEvent.Init` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
PointerUpLinkTagEvent.Init
Declaration
protected void
Init
();
Description
Resets the event members to their initial values. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2669095d2ac2 | unity_docs | rendering | What is `Rendering.SortingCriteria.CommonOpaque` in Unity? Explain its purpose and usage. | SortingCriteria.CommonOpaque
Description
Typical sorting for opaque objects.
This is the same as
SortingLayer
,
RenderQueue
,
QuantizedFrontToBack
,
OptimizeStateChanges
,
CanvasOrder
flags combined.
Additional resources: DrawingSettings.sorting, ScriptableRenderContext.DrawRenderers. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7bd4504e5e61 | github | scripting | Write a Unity Editor script for Vector2Parameter Drawer | ```csharp
using System.Reflection;
using UnityEditor;
using UnityEngine;
public class Vector2ParameterDrawer : MethodParameterDrawer {
public override void InitializeParameter(ref object param, ParameterInfo propertyInfo) {
param = Vector2.zero;
}
public override void DrawParameter(ref object para... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_b5eb5c575f0a | unity_docs | scripting | What is `Experimental.Rendering.ScriptableBakedReflectionSystem.Clear` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ScriptableBakedReflectionSystem.Clear
Declaration
public void
Clear
();
Description
Clear the state of ScriptableBakedReflectionSystem.
This implementation does nothing.
Override this method in your own implementation to cle... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e3f5a512eceb | unity_docs | rendering | What is `Rendering.RenderTargetBlendState.destinationColorBlendMode` in Unity? Explain its purpose and usage. | RenderTargetBlendState.destinationColorBlendMode
public
Rendering.BlendMode
destinationColorBlendMode
;
Description
Blend factor used for the color (RGB) channel of the destination.
Additional resources:
ShaderLab: Blending
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c2229ce804fd | github | scripting | Write a Unity C# MonoBehaviour script called AI State Machine | ```csharp
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
namespace Goon.AI
{
public class AIStateMachine : MonoBehaviour
{
#if UNITY_EDITOR
[ContextMenu("Launch Editor")]
private void LaunchEditor()
{
StateMachineEditor.LaunchEditor(t... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_24795165acea | unity_docs | scripting | What is `ObjectNames.GetDragAndDropTitle` in Unity? Explain its purpose and usage. | ObjectNames.GetDragAndDropTitle
Declaration
public static string
GetDragAndDropTitle
(
Object
obj
);
Description
Drag and drop title for an object.
Additional resources:
ObjectNames.GetInspectorTitle
,
ObjectNames.GetClassName
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3abf4fb573ab | unity_docs | scripting | What is `LensFlare.brightness` in Unity? Explain its purpose and usage. | LensFlare.brightness
public float
brightness
;
Description
The strength of the flare.
This controls the size and brightness of the flare elements.
Additional resources:
Lens flare component
,
flare assets
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Increments the strenght of the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_376d0160831f | unity_docs | animation | What is `Playables.PlayableExtensions` in Unity? Explain its purpose and usage. | PlayableExtensions
class in
UnityEngine.Playables
/
Implemented in:
UnityEngine.CoreModule
Description
Extensions for all the types that implements
IPlayable
.
Extension methods are static methods that can be called as if they were instance methods on the extended type.
```csharp
using UnityEngine;
using Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6904a8f250f2 | unity_docs | rendering | What is `XR.XRDisplaySubsystem.GetRenderTextureForRenderPass` in Unity? Explain its purpose and usage. | XRDisplaySubsystem.GetRenderTextureForRenderPass
Declaration
public
RenderTexture
GetRenderTextureForRenderPass
(int
renderPass
);
Parameters
Parameter
Description
renderPass
The render pass index to get the render texture for.
Returns
RenderTexture
The render texture associated with that render pass, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1f3e6a673cc9 | unity_docs | rendering | What is `Experimental.Rendering.GraphicsFormatUtility` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility
class in
UnityEngine.Experimental.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
This utility class contains helper functions that enable you to query properties of a
TextureFormat
,
Re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_402462707b94 | unity_docs | rendering | What is `EditorUtility.SaveFilePanel` in Unity? Explain its purpose and usage. | EditorUtility.SaveFilePanel
Declaration
public static string
SaveFilePanel
(string
title
,
string
directory
,
string
defaultName
,
string
extension
);
Parameters
Parameter
Description
title
The title of the window to display.
directory
The working directory that this dialog opens on.
defaultName
The p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d00688ba0089 | unity_docs | scripting | Give me an overview of the `VerticalWrapMode` class in Unity. | VerticalWrapMode
enumeration
Description
Wrapping modes for text that reaches the vertical boundary.
Properties
Property
Description
Truncate
Text will be clipped when reaching the vertical boundary.
Overflow
Text well continue to generate when reaching vertical boundary. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b91ca30652f4 | unity_docs | math | What is `Physics.BoxCast` in Unity? Explain its purpose and usage. | Physics.BoxCast
Declaration
public static bool
BoxCast
(
Vector3
center
,
Vector3
halfExtents
,
Vector3
direction
,
Quaternion
orientation
= Quaternion.identity,
float
maxDistance
= Mathf.Infinity,
int
layerMask
= DefaultRaycastLayers,
QueryTriggerInteraction
queryTriggerInteraction
= QueryTrigge... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f5c6b6f29e7 | unity_docs | ui | What is `UIElements.VisualElement.Hierarchy.Index_operator` in Unity? Explain its purpose and usage. | VisualElement.Hierarchy.this[int]
public
UIElements.VisualElement
this[int]
;
Parameters
Parameter
Description
key
The index of the child
Returns
VisualElement
The
VisualElement
at this index
Description
Returns the element at the specified index in the hierarchy
Throws an IndexOutOfRangeExce... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d21c1d522b91 | unity_docs | rendering | In Unity's 'Lighting configuration workflow', what is 'Choose a render pipeline' and how does it work? | Unity provides
render pipelines
that differ in customization and lighting features:
Built-in Render Pipeline
(not scriptable)
Universal Render Pipeline (URP)
High-Definition Render Pipeline (HDRP)
Custom Scriptable Render Pipeline (SRP)
For more information on render pipeline selection, refer to
choose a render pipelin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_15fa210bfd5f | unity_docs | scripting | Give me an overview of the `AvatarMask` class in Unity. | AvatarMask
class in
UnityEngine
/
Inherits from:
Object
/
Implemented in:
UnityEngine.AnimationModule
Description
AvatarMask is used to mask out humanoid body parts and transforms.
They can be used when importing animation or in an animator controller layer.
Properties
Property
Description
transformCount... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_79b724c2e025 | unity_docs | scripting | What is `ParticleSystemAnimationMode.Sprites` in Unity? Explain its purpose and usage. | ParticleSystemAnimationMode.Sprites
Description
Use a list of sprites to construct a sequence of animation frames.
Defines the sprites that are added to Texture Sheet Animation.
Additional resources:
ParticleSystemAnimationMode.Grid
```csharp
using UnityEngine;// A particle sprite example.
// The gameobject this ... | 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.