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_143c2d7e54b3 | unity_docs | scripting | Show me a Unity C# example demonstrating `Tilemaps.Tilemap.GetCellCenterLocal`. | space. The logical center for a cell of the
Tilemap
is defined by the Tile Anchor of the Tilemap.
In a rectangular grid layout, a call to
GridLayout.CellToLocal
with
Vector3Int
parameter, returns a
Vector3
coordinate that represents the bottom-left of the cell. While mathematically correct, you may prefer the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_57c5fd7d8089_doc_1 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | image that displays the progress towards evaluating a destination anchor.
Signature:
```csharp
public Image timerProgressFilledImage
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_3fe231ef9ec1 | unity_docs | animation | What is `Animations.IConstraint.GetSource` in Unity? Explain its purpose and usage. | IConstraint.GetSource
Declaration
public
Animations.ConstraintSource
GetSource
(int
index
);
Parameters
Parameter
Description
index
The index of the source.
Returns
ConstraintSource
The source object and its weight.
Description
Gets a constraint source by index.
Throws ArgumentOutOfRangeException,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7fd5e06a4e67 | unity_docs | editor | What is `Search.ParsedQuery_1.Test` in Unity? Explain its purpose and usage. | ParsedQuery<T0>.Test
Declaration
public bool
Test
(T
element
);
Parameters
Parameter
Description
element
A single test object.
Returns
bool
True if the object passes the query, returns false otherwise.
Description
Tests the query on a single object. Returns true if the test passes.
```csharp
using S... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a51158ec6073 | unity_docs | scripting | What is `Rigidbody.inertiaTensorRotation` in Unity? Explain its purpose and usage. | Rigidbody.inertiaTensorRotation
public
Quaternion
inertiaTensorRotation
;
Description
The rotation of the inertia tensor.
If you don't set inertia tensor rotation from a script it will be calculated automatically from all colliders attached to the rigidbody.
```csharp
// Resets the inertia tensor to be the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_137d6ee0c5f6 | unity_docs | editor | What is `EditorWindow.GetWindowWithRect` in Unity? Explain its purpose and usage. | EditorWindow.GetWindowWithRect
Declaration
public static
EditorWindow
GetWindowWithRect
(Type
windowType
,
Rect
rect
,
bool
utility
= false,
string
title
= null);
Parameters
Parameter
Description
windowType
The type of the window. Must derive from EditorWindow.
rect
The position on the screen wher... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ef98e6a4f4ef | unity_docs | scripting | What are the parameters of `Pool.LinkedPool_1.ctor` in Unity? | Description Creates a new LinkedPool instance. ```csharp
using System.Text;
using UnityEngine;
using UnityEngine.Pool;// This component returns the particle system to the pool when the OnParticleSystemStopped event is received.
[RequireComponent(typeof(ParticleSystem))]
public class ReturnToPool : MonoBehaviour
{
p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cbb763fd6353 | unity_docs | scripting | What is `Experimental.Audio.AudioSampleProvider.SampleFramesEventNativeFunction` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
AudioSampleProvider.SampleFramesEventNativeFunction
Declaration
public delegate void
SampleFramesEventNativeFunction
(IntPtr
userData
,
uint
providerId
,
uint
sampleFrameCount
);
Parameters
Parameter
Description
userData... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_be9868c4d533 | unity_docs | scripting | What is `Search.SearchProvider.ctor` in Unity? Explain its purpose and usage. | SearchProvider Constructor
Declaration
public
SearchProvider
(string
id
);
Declaration
public
SearchProvider
(string
id
,
string
displayName
);
Declaration
public
SearchProvider
(string
id
,
Func<SearchContext,List<SearchItem>,SearchProvider,object>
fetchItemsHandler
);
Declaration
public
SearchProv... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8bf865ad682 | unity_docs | rendering | What is `PlayerSettings.SetShaderChunkSizeInMBForPlatform` in Unity? Explain its purpose and usage. | PlayerSettings.SetShaderChunkSizeInMBForPlatform
Declaration
public static void
SetShaderChunkSizeInMBForPlatform
(
BuildTarget
buildTarget
,
int
sizeInMegabytes
);
Parameters
Parameter
Description
buildTarget
The build target to set the shader chunk size for.
sizeInMegabytes
The chunk size in megabytes... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5213e1c78c42 | unity_docs | scripting | What is `Rendering.ScriptableRenderContext.QueryRendererListStatus` in Unity? Explain its purpose and usage. | ScriptableRenderContext.QueryRendererListStatus
Declaration
public
Rendering.RendererListStatus
QueryRendererListStatus
(
Rendering.RendererList
rendererList
);
Parameters
Parameter
Description
rendererList
The RendererList to query.
Returns
RendererListStatus
Returns the status of the RendererList.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e7059155a93 | unity_docs | scripting | Show me a Unity C# example demonstrating `NetworkReachability`. | NetworkReachability
enumeration
Description
Describes network reachability options.
Describes which options are available for connecting to the Internet on the device if there are any.
```csharp
//Attach this script to a GameObject
//This script checks the device’s ability to reach the internet and outputs it to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_518ba12f15aa | github | scripting | Write a Unity C# script called Rotating Cubes System | ```csharp
using System.Collections.Generic;
using TinyECS.Interfaces;
using TinyECSUnityIntegration.Impls;
using UnityEngine;
public class RotatingCubesSystem: IUpdateSystem
{
protected IWorldContext mWorldContext;
public RotatingCubesSystem(IWorldContext worldContext)
{
mWorldContext = worldCon... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0d11a4106f88 | unity_docs | editor | Explain 'Cloud Services Apis' in Unity. | com.unity.services.apis
## Description
Provides low-level access to Unity Cloud Apis. Includes admin and client apis.
## Released for Unity
Package version 1.1.1 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_48cba4041420 | unity_docs | scripting | What is `Random.rotation` in Unity? Explain its purpose and usage. | Random.rotation
public static
Quaternion
rotation
;
Description
Returns a random rotation (Read Only).
Randomize the
x
,
y
,
z
, and
w
of a
Quaternion
each to [-1.0..1.0] (inclusive) via
Range
and normalize the result. See also
rotationUniform
for a slower but higher quality algorithm.
```csharp
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f2e5072acb6d | unity_docs | editor | In Unity's 'Create a pop-up window', what is 'Create a custom Editor window' and how does it work? | Create a custom Editor window with a button. Define the button in a UI Document (UXML file) and style it in a USS file. Finally, define the button logic in a C# script so that when you click the button, the pop-up window displays.
Create a Unity project with any template.
Right-click in the Project window, and then sel... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dc632d41da05 | unity_docs | rendering | What is `LightProbeProxyVolume.BoundingBoxMode` in Unity? Explain its purpose and usage. | BoundingBoxMode
enumeration
Description
The bounding box mode for generating a grid of interpolated Light Probes.
Additional resources:
Light Probes
,
Light Probe Proxy Volume
.
Properties
Property
Description
AutomaticLocal
The bounding box encloses the current Renderer and all the relevant Renderers down ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fb40fd26d03f | unity_docs | xr | In Unity's 'Search for files', what is 'Query examples' and how does it work? | Filter type
Query example Description Word search
find: Paint Mat
Searches for all assets paths containing the words paint AND the word mat (for example,
PaintBrush_Mat.mat
,
DryWallPainted_Mat.mat
).
Glob
find: AnimationScripts/*.cs
Finds all C# files under
Assets/AnimationScripts
.
Regex
find: (.*\/)+.+\s.+
Find all ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_ecac194c16fb_doc_9 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Allows accessing the buildings API endpoints to interact with buildings on the map.
Signature:
```csharp
public BuildingsApi BuildingsApi
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_4a300c80e56e | unity_docs | rendering | Explain 'Upgrade to Unity 6.0' in Unity. | This page lists changes in Unity 6.0 which might affect existing projects when you upgrade them from 2022 LTS version to Unity 6.0.
Render pipelines
Gaussian Filter Radius properties from LightingSettings are now floating point values
Improvements to light probe energy conservation
Enlighten Baked Global Illumination i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b55f55c0582e | unity_docs | math | Give me an overview of the `SerializedProperty` class in Unity. | SerializedProperty
class in
UnityEditor
Description
SerializedProperty and
SerializedObject
are classes for editing properties on objects in a completely generic way that automatically handles undo, multi-object editing and Prefab overrides.
SerializedProperty is primarily used to read or change the value of a ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b0011b7dd7f8 | unity_docs | rendering | What is `ParticleSystemCurveMode` in Unity? Explain its purpose and usage. | ParticleSystemCurveMode
enumeration
Description
The particle curve mode.
This is used by
MinMaxCurve
to determine which mode to evaluate curves in.
Properties
Property
Description
Constant
Use a single constant for the MinMaxCurve.
Curve
Use a single curve for the MinMaxCurve.
TwoCurves
Use a random value ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_df0bc64b982c | unity_docs | scripting | Explain 'Dependencies' in Unity. | The concept of dependencies is fundamental to Unity’s Package Manager behavior.
A dependency is a package that your project or another package needs to work.
Topic Description Package dependency and resolution
Learn about the different types of dependencies and how Package Manager resolves them.
Package version conflic... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_56467f10d0a1 | unity_docs | scripting | In Unity's 'How code stripping affects content', what is 'Prevent code stripping of types used in AssetBundles' and how does it work? | Unity might strip a Unity object type that’s present in AssetBundles, but not in any scene or asset included in a Player build. This means that content from the AssetBundle might work when testing in Play mode, or on builds with minimal code stripping, but errors or crashes occur in a Player built with code stripping e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7fe5a06be3f4_doc_2 | github | scripting | What does `Instance` do in this Unity script? Explain its purpose and signature. | The active instance of type .If there is no set instance, this will try to find them. If more than one instanceis found, the extra instances are deleted. If none are found, a new instance is created.
Signature:
```csharp
public static T Instance => CheckForInstanceAndDeleteExtras()
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_35a9ba3b24c9 | unity_docs | physics | What is `BuoyancyEffector2D.angularDrag` in Unity? Explain its purpose and usage. | BuoyancyEffector2D.angularDrag
public float
angularDrag
;
Description
A force applied to slow angular movement of any
Collider2D
in contact with the effector.
Angular drag provides the ability to slow
Collider2D
in contact with the effector. Increasing the angular drag simulates an increasingly viscous flui... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4cf656575611 | unity_docs | math | What is `U2D.SpriteDataAccessExtensions.GetBindPoses` in Unity? Explain its purpose and usage. | SpriteDataAccessExtensions.GetBindPoses
Declaration
public static NativeArray<Matrix4x4>
GetBindPoses
(
Sprite
sprite
);
Parameters
Parameter
Description
sprite
The sprite to retrieve the bind pose from.
Returns
NativeArray<Matrix4x4>
A list of bind poses for this sprite. There is no need to dispose the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a300430859cc | unity_docs | physics | In Unity's 'Profiler modules introduction', what is 'Default Profiler modules' and how does it work? | The Profiler window includes the following Profiler modules by default. To learn about other Profiler properties and settings, refer to
Profiler window reference
.
Module Description Highlights
Displays information on whether your application is meeting its target frame rate and if its performance is bound by the CPU o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_08e1642bed1b | unity_docs | editor | Explain 'Search the Unity Editor interface and actions' in Unity. | Find and perform actions in the Unity Editor interface.
Provider Description Search settings and preferences
Search all Unity Editor settings.
Search the Unity Editor main menu
Search the Unity Editor main menu and execute actions.
Execute Static API methods
Search the Unity API and execute actions.
Calculate formulas
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4aedbccc3932 | unity_docs | xr | Show me a Unity C# example demonstrating `Caching.GetCachedVersions`. | Caching.GetCachedVersions
Declaration
public static void
GetCachedVersions
(string
assetBundleName
,
List<Hash128>
outCachedVersions
);
Parameters
Parameter
Description
assetBundleName
The AssetBundle name.
outCachedVersions
List of all the cached version.
Description
Returns all cached versions of the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3ce24bae8005 | unity_docs | performance | Show me a Unity C# example demonstrating `Unity.Profiling.ProfilerFlowEventType.End`. | ProfilerFlowEventType.End
Description
Use for the flow end point.
Marks the ProfilerMarker scope that the ProfilerFlowEventType.End is enclosed in as the final flow point.
```csharp
using System;
using System.Threading;
using Unity.Profiling;
using Unity.Profiling.LowLevel;
using Unity.Profiling.LowLevel.Unsafe;pu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4e6aef08f4ee | unity_docs | scripting | Show me a Unity C# example demonstrating `GameObject`. | hild objects. For more information, refer to
Instantiating Prefabs at runtime
in the Manual.
You can modify many of the properties of this class in the Editor using the Inspector window. For a more comprehensive guide to using the GameObject class, refer to
GameObject
in the Manual.
The following example creates a ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0b85a2701bfe | unity_docs | scripting | What is `BatteryStatus` in Unity? Explain its purpose and usage. | BatteryStatus
enumeration
Description
Enumeration for
SystemInfo.batteryStatus
which represents the current status of the device's battery.
Properties
Property
Description
Unknown
The device's battery status cannot be determined. If battery status is not available on your target platform, SystemInfo.batterySt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_58863efc0649 | unity_docs | rendering | In Unity's 'Decals and projectors', what is 'Render pipeline information' and how does it work? | How you work with decals and projectors depends on the render pipeline you use.
Feature name
Built-in Render Pipeline
Universal Render Pipeline (URP)
High Definition Render Pipeline (HDRP)
Decal and projectors Yes Use the
Projector component
.
Yes
Use the
Decal Renderer Feature
.
Yes
Use the
Decal Projector
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2454c178c7ca | unity_docs | rendering | Explain 'Create a Profiler module' in Unity. | A Profiler module displays performance data from your system in the Profiler window.
You can create your own profiler module in one of the following ways:
Use the Profiler Module Editor
.
Create a ProfilerModule script
.
A custom module displays the counters you specified in code in the Profiler window chart view (A), ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e3943a32efca | unity_docs | scripting | In Unity's 'Position Constraint component', what is 'Properties' and how does it work? | Property Description Activate
After you position the constrained GameObject and its source GameObjects, click Activate to save this information.
Activate
saves the current offset from the source GameObjects in
Position At Rest and Position Offset
, then enables
Is Active and Lock
.
Zero
Sets the position of the constra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_826a7ac4eefc | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.SupportsScreens` in Unity? Explain its purpose and usage. | SupportsScreens
class in
Unity.Android.Gradle.Manifest
/
Inherits from:
Unity.Android.Gradle.Manifest.BaseElement
Description
The C# definition of the
<supports-screens>
Android Manifest element.
For more information about the element, see Android's documentation:
SupportsScreens element
Properties
Prope... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_95328258ac83 | unity_docs | scripting | Show me a Unity C# example demonstrating `Assertions.Assert.AreNotEqual`. | sage
,
IEqualityComparer<T>
comparer
);
Parameters
Parameter
Description
expected
The assumed
Assert
value.
actual
The exact
Assert
value.
message
The string used to describe the
Assert
.
comparer
Method to compare
expected
and
actual
arguments have the same value.
Description
Assert that the v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c497e3fe8b61 | unity_docs | editor | What is `PlayerSettings.Android.minifyDebug` in Unity? Explain its purpose and usage. | PlayerSettings.Android.minifyDebug
public static bool
minifyDebug
;
Description
Enable to minify debug build.
Enable to minify your java code in debug (development) configuration. Use proguard configuration file to control the process.
Note:
Minification can sometimes remove needed code and produce non-workin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d068df03af7a | unity_docs | audio | What is `Networking.DownloadHandlerAudioClip.GetContent` in Unity? Explain its purpose and usage. | DownloadHandlerAudioClip.GetContent
Declaration
public static
AudioClip
GetContent
(
Networking.UnityWebRequest
www
);
Parameters
Parameter
Description
www
A finished UnityWebRequest object with
DownloadHandlerAudioClip
attached.
Returns
AudioClip
The same as
DownloadHandlerAudioClip.audioClip
Des... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_296b1799e3b3 | unity_docs | math | Show me a Unity C# example demonstrating `Mesh.MeshData`. | dOnlyMeshData
and then modify the Mesh while the
MeshDataArray
exists, Unity must copy the
MeshDataArray
into a new memory allocation. In addition to this, if you call
Mesh.AcquireReadOnlyMeshData
and then modify the Mesh, your modifications are not reflected in the
MeshData
structs.
Use
Dispose
to dispose o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_784a8fdadf8b_doc_17 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | This is automatically set using Unity's viewport resolution.
Signature:
```csharp
public double ViewportWidth
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_5a4040f5c0d4 | unity_docs | scripting | What is `ParticleSystem.LimitVelocityOverLifetimeModule.limitY` in Unity? Explain its purpose and usage. | ParticleSystem.LimitVelocityOverLifetimeModule.limitY
public
ParticleSystem.MinMaxCurve
limitY
;
Description
Maximum velocity curve for the y-axis.
Additional resources:
MinMaxCurve
.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleClass ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d6c0cc3d394b | unity_docs | scripting | Explain 'Create and use a source generator' in Unity. | You can use source generators as an additional step in your script compilation process, to add new code while you compile your existing code. As with code analyzers, you can use existing source generators or create your own.
Note
: Unity only supports version 6.0.0-preview of the
System.Text.Json
namespace. If you want... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_24db4db3e361 | unity_docs | scripting | Show me a Unity C# example demonstrating `Scripting.GarbageCollector.GCMode`. | ection gives you control over when collections happen, so you can fine-tune the smoothness of your content or your memory usage. Call either System.GC.Collect() for a full, blocking collection, or
GarbageCollector.CollectIncremental
to perform incremental garbage collection.
Additional resources:
GarbageCollector.Mo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5102dce5218 | unity_docs | rendering | What is `Material.SetTextureOffset` in Unity? Explain its purpose and usage. | Material.SetTextureOffset
Declaration
public void
SetTextureOffset
(string
name
,
Vector2
value
);
Declaration
public void
SetTextureOffset
(int
nameID
,
Vector2
value
);
Parameters
Parameter
Description
nameID
Property name ID, use
Shader.PropertyToID
to get it.
name
The name of the texture ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0ebdea00046a | unity_docs | editor | Show me a Unity C# example demonstrating `GenericMenu`. | in
UnityEditor
Description
GenericMenu lets you create custom context menus and dropdown menus.
The example below opens an Editor window with a button. Clicking the button displays a context menu, which lets you change the color to apply to the GUI in the window. Copy the example's contents into a script called Ge... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_39696623cf17 | unity_docs | scripting | What is `UIElements.BaseTreeView.GetChildrenIdsForIndex` in Unity? Explain its purpose and usage. | BaseTreeView.GetChildrenIdsForIndex
Declaration
public IEnumerable<int>
GetChildrenIdsForIndex
(int
index
);
Parameters
Parameter
Description
index
The TreeView item index.
Returns
IEnumerable<int>
The children item identifiers.
Description
Gets children identifiers for the specified TreeView item. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_0b973bbbe09a_doc_1 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Padding to be applied to the maskingX = LeftY = BottomZ = RightW = Top
Signature:
```csharp
public Vector4 padding
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_d7e3478eb6ce | unity_docs | input | What is `GUIUtility.keyboardControl` in Unity? Explain its purpose and usage. | GUIUtility.keyboardControl
public static int
keyboardControl
;
Description
The controlID of the control that has keyboard focus.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Click on the text field to see the id of the control. string str = "A String!";
void OnGUI()
{
str = GUILayou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e51c68a225ee | unity_docs | scripting | What is `Experimental.GraphView.IconBadge.CreateError` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
IconBadge.CreateError
Declaration
public static
Experimental.GraphView.IconBadge
CreateError
(string
message
);
Parameters
Parameter
Description
message
Displayed error message.
Returns
IconBadge
The created badge.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7f84ebd86019 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.AsRef` in Unity? Explain its purpose and usage. | UnsafeUtility.AsRef
Declaration
public static ref T
AsRef
(void*
ptr
);
Parameters
Parameter
Description
ptr
A pointer to the memory location of the struct. Ensure the pointer is valid and correctly allocated.
Returns
T
A reference to the struct of type
T
. This reference allows changes to the struct at... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4f15a1b9a5ca | unity_docs | scripting | What is `ForceMode.Acceleration` in Unity? Explain its purpose and usage. | ForceMode.Acceleration
Description
Add a continuous acceleration to the rigidbody, ignoring its mass.
Apply the acceleration in each FixedUpdate over a duration of time. In contrast to
ForceMode.Force
, Acceleration will move every rigidbody the same way regardless of differences in mass.
This mode is useful if yo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a82e4dca744b | unity_docs | editor | What is `VersionControl.VersionControlAttribute.ctor` in Unity? Explain its purpose and usage. | VersionControlAttribute Constructor
Declaration
public
VersionControlAttribute
(string
name
,
string
displayName
);
Parameters
Parameter
Description
name
Version control system name.
displayName
Version control system display name.
Description
Constructs VersionControlAttribute.
Display name is optiona... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_de748471148b | unity_docs | editor | Show me a Unity C# example demonstrating `SettingsProvider.ctor`. | scope
Scope of the Settings. The Scope determines where the setting appears: in the Settings or the Preferences windows.
keywords
List of keywords to compare against what the user is searching for. When the user enters values in the search box on the Settings window,
SettingsProvider.HasSearchInterest
tries to mat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2e1fce87185c | unity_docs | rendering | Show me a Unity C# example demonstrating `Terrain.heightmapMinimumLODSimplification`. | . Use this property to correct a situation where Terrain that is outside of the camera's view casts an overly simplified shadow inside the camera's view.
A value of 0 means there's no limit on reducing the Terrain's level of detail. Each increment of the value quadruples the minimum number of triangles used to render ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_86035161aeae | unity_docs | physics | What is `Collider2D.OnTriggerStay2D` in Unity? Explain its purpose and usage. | Collider2D.OnTriggerStay2D(Collider2D)
Parameters
Parameter
Description
other
The other Collider2D involved in this collision.
Description
Sent each frame where another object is within a trigger collider attached to this object (2D physics only).
Further information about the other collider is reported in the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5e2150a71a43 | unity_docs | scripting | In Unity's 'VR frame timing', what is 'GPU-bound vs. CPU-bound in VR' and how does it work? | Each display has a specific refresh rate that Unity is bound to. You can get this at run time with
VRDevice.refreshRate
. A value of 1 divided by the refreshRate gives you the time allocated to a single frame.
For example, this might be 11.1 milliseconds in the case of a refresh rate of 90 hz.
If your app is GPU-bound,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bb7ee5b4b721 | unity_docs | scripting | What is `Windows.Directory.Exists` in Unity? Explain its purpose and usage. | Directory.Exists
Declaration
public static bool
Exists
(string
path
);
Parameters
Parameter
Description
path
The path to test.
Description
Determines whether the given path refers to an existing directory.
Note:
This method is only available on the Universal Windows Platform. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_748d1bbab178 | unity_docs | rendering | In Unity's 'Model tab Import Settings reference', what is 'Scene' and how does it work? | Scene-level properties, such as whether to import lights and cameras, and what scale factor to use.
Property Description Scale Factor
Applies a global scale on the imported model whenever the source file scale doesn’t fit the intended scale in your project. Unity’s physics system expects 1 m in the game world to be 1 u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e005fe221e8d | unity_docs | rendering | What are the parameters of `Texture2D.Apply` in Unity? | Description Copies changes you've made in a CPU texture to the GPU. For most types of textures, Unity can store a copy of the texture in both CPU and GPU memory. The CPU copy is optional. If the CPU copy exists, you can read from and write to the CPU copy more flexibly than the GPU copy, for example using GetPixels . B... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e67d1aec089c | unity_docs | editor | What is `PlayerSettings.SetAdditionalIl2CppArgs` in Unity? Explain its purpose and usage. | PlayerSettings.SetAdditionalIl2CppArgs
Declaration
public static void
SetAdditionalIl2CppArgs
(string
additionalArgs
);
Parameters
Parameter
Description
additionalArgs
The additional arguments passed to the IL2CPP compiler during the build process.
Description
Set additional arguments passed to the IL2CPP... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_17161962b681 | unity_docs | rendering | Show me a Unity C# example demonstrating `WebCamTexture.devices`. | WebCamTexture.devices
public static WebCamDevice[]
devices
;
Description
Return a list of available devices.
This queries the system for the list of devices connected and it can be slow.
You should cache this value by keeping a copy of the result if you want to use it repeatedly.
```csharp
using UnityEngine;
u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65e08e41e192 | unity_docs | networking | What is `Unity.Android.Gradle.Manifest.ReqNavigation` in Unity? Explain its purpose and usage. | ReqNavigation
enumeration
Description
Mirrors the
ReqNavigation
enum.
For more information about the attribute, see Android's documentation:
ReqNavigation attribute
Properties
Property
Description
Null
Attribute is not set and will not appear in the element.
Undefined
Mirrors android:reqNavigation="undef... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2890a7b69d2a | unity_docs | input | What is `UIElements.PointerId.touchPointerCount` in Unity? Explain its purpose and usage. | PointerId.touchPointerCount
public static int
touchPointerCount
;
Description
The number of touch pointers the implementation supports.
The pointer ID for a touch event is a number between touchPointerIdBase and touchPointerIdBase + touchPointerCount - 1. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5b93ef8cc830 | unity_docs | input | Give me an overview of the `PointerType` class in Unity. | PointerType
enumeration
Description
Pointer types.
Properties
Property
Description
Mouse
The pointer type for mouse events.
Touch
The pointer type for touch events.
Pen
The pointer type for pen events. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ea7a4efc4fa1 | unity_docs | rendering | What is `Rendering.BatchRendererGroup.GetConstantBufferOffsetAlignment` in Unity? Explain its purpose and usage. | BatchRendererGroup.GetConstantBufferOffsetAlignment
Declaration
public static int
GetConstantBufferOffsetAlignment
();
Returns
int
The alignment (in bytes) you should use to offset any data in the Uniform Buffer Object (UBO).
Description
The BatchRendererGroup API is different from
SystemInfo.constantBuff... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ba8890201f0b | unity_docs | rendering | Show me a Unity C# example demonstrating `ParticleSystem.NoiseModule.rotationAmount`. | ParticleSystem.NoiseModule.rotationAmount
public
ParticleSystem.MinMaxCurve
rotationAmount
;
Description
How much the noise affects the particle rotation, in degrees per second.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(ParticleSystem))]
public class ExampleClass : MonoBe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d828a8bf1b4a | unity_docs | math | Show me a Unity C# example demonstrating `Quaternion.AngleAxis`. | aternion.AngleAxis
Declaration
public static
Quaternion
AngleAxis
(float
angle
,
Vector3
axis
);
Description
Creates a rotation which rotates
angle
degrees around
axis
.
The rotation is counter-clockwise when looking from the origin along the axis of rotation. For more information, refer to
Rotation ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ae88acea7c5c | unity_docs | editor | In Unity's 'Authentication', 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.authentication@3.7 compatible 3.7.0-exp.1
com.unity.services.authentication@3.6 released 3.6.1 | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3a2f5e2758bf | unity_docs | audio | What is `Experimental.Video.VideoPlayerExtensions.GetAudioSampleProvider` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
VideoPlayerExtensions.GetAudioSampleProvider
Declaration
public static
Experimental.Audio.AudioSampleProvider
GetAudioSampleProvider
(
Video.VideoPlayer
vp
,
ushort
trackIndex
);
Parameters
Parameter
Description
vp
Th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2793b72d57e7 | unity_docs | rendering | Explain 'Generate lightmap UVs' in Unity. | Unity can calculate the UVs for baked lightmaps when you import a model, or you can provide your own data.
This page contains the following information:
How to provide your own lightmap UVs
How to automatically generate lightmap UVs
Automatic lightmap UV generation settings
Troubleshooting automatically generated light... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_270208f18c8e | unity_docs | xr | Explain 'Code sign your application' in Unity. | Code signing is the process of creating a code signature for an application. This signature guarantees the integrity of applications and safeguards from any tampering. Apple devices use an application’s code signature to detect changes made after the developer created the code signature. If an application doesn’t have ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4108ff8cb9cc | unity_docs | editor | Show me a Unity C# example demonstrating `SketchUpImporter.GetScenes`. | SketchUpImporter.GetScenes
Declaration
public SketchUpImportScene[]
GetScenes
();
Returns
SketchUpImportScene[]
Array of scenes extracted from a SketchUp file.
Description
The method returns an array of SketchUpImportScene which represents SketchUp scenes.
SketchUpImportScene
is the structure to represe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6dfb17e40e05 | unity_docs | scripting | What is `Selection.GetFiltered` in Unity? Explain its purpose and usage. | Selection.GetFiltered
Declaration
public static Object[]
GetFiltered
(Type
type
,
SelectionMode
mode
);
Parameters
Parameter
Description
type
Only objects of this type will be retrieved.
mode
Further options to refine the selection.
Description
Returns the current selection filtered by type and mode.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e2dc428da53b | unity_docs | physics | What is `Rigidbody.SweepTest` in Unity? Explain its purpose and usage. | Rigidbody.SweepTest
Declaration
public bool
SweepTest
(
Vector3
direction
,
out
RaycastHit
hitInfo
,
float
maxDistance
= Mathf.Infinity,
QueryTriggerInteraction
queryTriggerInteraction
= QueryTriggerInteraction.UseGlobal);
Parameters
Parameter
Description
direction
The direction into which to swee... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c8d409e1b9de | unity_docs | rendering | What is `Experimental.GlobalIllumination.LightmapperUtils.Extract` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
LightmapperUtils.Extract
Declaration
public static
Experimental.GlobalIllumination.LightMode
Extract
(
LightmapBakeType
baketype
);
Parameters
Parameter
Description
baketype
The lights baketype.
Returns
LightMode
R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b0b06f1dbf40 | unity_docs | scripting | What is `Unity.Properties.IProperty` in Unity? Explain its purpose and usage. | IProperty
interface in
Unity.Properties
Description
Base interface for working with properties.
This is used to pass or store properties without knowing the underlying container or value type.
" IProperty_1
" Property_2
Properties
Property
Description
IsReadOnly
Gets a value indicating whether the pro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8ae404256590 | unity_docs | rendering | What is `Rendering.RenderTargetIdentifier.ctor` in Unity? Explain its purpose and usage. | RenderTargetIdentifier Constructor
Declaration
public
RenderTargetIdentifier
(
Rendering.BuiltinRenderTextureType
type
);
Declaration
public
RenderTargetIdentifier
(string
name
);
Declaration
public
RenderTargetIdentifier
(int
nameID
);
Declaration
public
RenderTargetIdentifier
(
Texture
tex
);
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_af7715919846 | unity_docs | performance | Explain 'Generate your Visual Studio C++ solution' in Unity. | When you
build a project from Unity for Universal Windows Platform
(UWP), Unity automatically generates a Visual Studio solution.
## Create your Visual Studio C++ solution
Unity generates a Visual Studio solution containing the following projects:
Project Description projectName
Contains your main project code. Visua... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5099569d7f6c | unity_docs | rendering | What is `Experimental.Rendering.RayTracingMode` in Unity? Explain its purpose and usage. | RayTracingMode
enumeration
Description
Indicates how a
Renderer
is updated.
Properties
Property
Description
Off
Renderers with this mode are not ray traced.
Static
Renderers with this mode never update.
DynamicTransform
Renderers with this mode update their Transform, but not their Mesh.
DynamicGeometry
Re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b054b3aadd90 | unity_docs | performance | What is `ParticleSystemJobs.ParticleSystemJobData.rotations` in Unity? Explain its purpose and usage. | ParticleSystemJobData.rotations
public
ParticleSystemJobs.ParticleSystemNativeArray3
rotations
;
Description
The rotation of each particle.
When using 3D rotation, all three axes contain data, otherwise only the z-axis contains rotation data. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5e41769c5247 | unity_docs | scripting | What is `DecoratorDrawer.OnGUI` in Unity? Explain its purpose and usage. | DecoratorDrawer.OnGUI
Declaration
public void
OnGUI
(
Rect
position
);
Parameters
Parameter
Description
position
Rectangle on the screen to use for the decorator GUI.
Description
Override this method to make your own GUI for the decorator.
See
DecoratorDrawer
for an example of how to use this. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f5f168134e7e | unity_docs | editor | What is `Editor.OnInspectorGUI` in Unity? Explain its purpose and usage. | Editor.OnInspectorGUI
Declaration
public void
OnInspectorGUI
();
Description
Implement this function to make a custom inspector.
Inside this function you can add your own custom IMGUI based GUI for the inspector
of a specific object class.
Note:
This function has to be overridden in order to work.
Additional ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ac7508ce90d3 | unity_docs | rendering | What is `TextureImporter.streamingMipmapsPriority` in Unity? Explain its purpose and usage. | TextureImporter.streamingMipmapsPriority
public int
streamingMipmapsPriority
;
Description
Relative priority for this texture when reducing memory size in order to hit the memory budget.
When mipmap streaming is enabled, Unity will automatically reduce the size of textures until they fit into the texture strea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad50218f1312 | unity_docs | ui | Show me a Unity C# example demonstrating `Audio.AudioMixer.SetFloat`. | tab, click on the
Exposed Parameters
button to show the list of exposed parameters.
To rename or remove a parameter, right click the item in the list.
If the parameter you want to expose isn't in the list, you need to expose the parameter. To expose a parameter, right click the parameter you want to expose in the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_39bbce38cf50 | unity_docs | physics | What is `ArticulationBody.WakeUp` in Unity? Explain its purpose and usage. | ArticulationBody.WakeUp
Declaration
public void
WakeUp
();
Description
Forces an articulation body to wake up.
See the
Rigidbody overview
page in the manual for more information about Rigidbody/ArticulationBody sleeping. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e5cc2954cc75 | unity_docs | editor | Explain 'Profiling tools reference' in Unity. | Profiling your application is the best way to measure its performance. You can use different profiling tools to understand where there might be any issues with elements of your application including memory usage, CPU performance, GPU performance, and your custom
scripts
.
## Unity’s analysis tools
Unity has several p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_5004c723a665 | github | scripting | Write a Unity C# XR/VR script for Menu UI Selector | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine.XR.Interaction.Toolkit.Inputs;
using UnityEngine.InputSystem;
using UnityEngine;
public class MenuUISelector : MonoBehaviour
{
//Gets the Input Actions Asset to draw inputs from.
//Drop the action map "XRI RightHand Intera... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_0fce5b0acfbe | unity_docs | ui | In Unity's 'Toolbar', what is 'Inherited UXML attributes' and how does it work? | This element inherits the following attributes from its base class:
Name Type Description focusable boolean
If false, this prevents the element from being focused.
The element can only be focused if its canGrabFocus property is true.
tabindex int An integer used to sort focusable elements in the focus ring. Must be gre... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_34c5bb5d6c12 | unity_docs | physics | What is `CompositeCollider2D.GeometryType.Outlines` in Unity? Explain its purpose and usage. | CompositeCollider2D.GeometryType.Outlines
Description
Sets the Composite Collider 2D to generate closed outlines for the merged collider geometry consisting of only edges.
The outline geometry is equivalent to using an
EdgeCollider2D
with the chains of edges all connected. While all the edges are closed (the end ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_389252c5e0c0 | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchExpressionContext`. | itor.Search
Description
This context encapsulate all the datas needed to evaluate a
SearchExpression
and it allows user to interact with the evaluation runtime of an expression. A SearchExpressionContext is created automatically with a
SearchExpressionRuntime
anytime
SearchExpression.Execute
is called.
Here i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2b81d2ecb68b | unity_docs | scripting | What are the parameters of `AudioClip.GetData` in Unity? | Returns bool Returns 'true' if AudioClip retrieves the data successfully. Returns 'false' if the operation was unsuccessful. Description Fills an array with sample data from the audio clip. The sample data contains float values within the range -1.0f to 1.0f. The sample count is the length of the Span or float array. U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_df1f4542f613 | unity_docs | rendering | What is `CanvasRenderer.GetMaterial` in Unity? Explain its purpose and usage. | CanvasRenderer.GetMaterial
Declaration
public
Material
GetMaterial
(int
index
);
Declaration
public
Material
GetMaterial
();
Parameters
Parameter
Description
index
The material index to retrieve (0 if this parameter is omitted).
Returns
Material
Result.
Description
Gets the current
Material
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_99665ff2601a | unity_docs | math | Show me a Unity C# example demonstrating `Matrix4x4.SetColumn`. | Matrix4x4.SetColumn
Declaration
public void
SetColumn
(int
index
,
Vector4
column
);
Description
Sets a column of the matrix.
You use this to build transformation matrices using right, up and forward vectors:
```csharp
using UnityEngine;public class ExampleScript : MonoBehaviour
{
// build a matrix from a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_63d08997d5f6 | unity_docs | editor | What is `EditorWindow.Awake` in Unity? Explain its purpose and usage. | EditorWindow.Awake
Description
Called as the new window is opened.
Awake
() message is called as a new editor window starts. This is
similar to how an
Awake
() is called as an GameObject starts.
```csharp
// Show how Awake is called as an Editor Window starts
// In the script, the Awake message changes the str... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_341f5df7528c | unity_docs | rendering | Give me an overview of the `ParticleSystemCustomData` class in Unity. | ParticleSystemCustomData
enumeration
Description
Which stream of custom particle data to set.
Additional resources:
ParticleSystem.SetCustomParticleData
,
ParticleSystem.GetCustomParticleData
.
Properties
Property
Description
Custom1
The first stream of custom per-particle data.
Custom2
The second stream of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cdfd1c11dcd6 | unity_docs | math | What is `Mathf.LinearToGammaSpace` in Unity? Explain its purpose and usage. | Mathf.LinearToGammaSpace
Declaration
public static float
LinearToGammaSpace
(float
value
);
Description
Converts the given value from linear to gamma (sRGB) color space.
Additional resources:
Linear and Gamma rendering
,
ColorSpace
,
GammaToLinearSpace
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ac9e3ea717a | unity_docs | scripting | What is `Profiling.HierarchyFrameDataView.GetItemColumnDataAsSingle` in Unity? Explain its purpose and usage. | HierarchyFrameDataView.GetItemColumnDataAsSingle
Declaration
public float
GetItemColumnDataAsSingle
(int
id
,
int
column
);
Parameters
Parameter
Description
id
Hierarchy item identifier.
column
Column identifier.
Returns
float
Value of the correspnding column as float.
Description
Returns float re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4433096c5c35 | unity_docs | animation | What is `Animations.AimConstraint.GetSources` in Unity? Explain its purpose and usage. | AimConstraint.GetSources
Declaration
public void
GetSources
(List<ConstraintSource>
sources
);
Parameters
Parameter
Description
sources
The list of sources to be filled by the component.
Description
Gets the list of sources.
Throws ArgumentNullException, if the list of sources is null. | 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.