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_e190f7e004c6 | unity_docs | scripting | What is `RigidbodyConstraints.FreezeRotationX` in Unity? Explain its purpose and usage. | RigidbodyConstraints.FreezeRotationX
Description
Freeze rotation along the X-axis.
```csharp
//This example shows how RigidbodyConstraints is used to freeze the position and rotation of a Rigidbody in the x axis at start-up.
//It also shows what happens when these constraints are removed, when you press the space k... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0449b9f643ab | unity_docs | math | What is `PackageManager.PackageInfo.resolvedDependencies` in Unity? Explain its purpose and usage. | PackageInfo.resolvedDependencies
public DependencyInfo[]
resolvedDependencies
;
Description
An array of
DependencyInfo
instances listing all the packages this package directly or indirectly depends on and the versions they resolved to. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aeb9df970aa8 | unity_docs | input | What is `IMGUI.Controls.TreeView.CanRename` in Unity? Explain its purpose and usage. | TreeView.CanRename
Declaration
protected bool
CanRename
(
IMGUI.Controls.TreeViewItem
item
);
Parameters
Parameter
Description
item
Can this item be renamed?
Description
Override this method to control whether the item can be renamed using a keyboard shortcut or when clicking an already selected item.
Ke... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_967a6307b5d9_doc_3 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Enable Advanced Mode. Enable this if you want to specify which Rules to override.
Signature:
```csharp
public bool m_Advanced;
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d2b327005eac | github | scripting | Write a Unity C# script called Vector3Scale Affordance Receiver | ```csharp
using Unity.Mathematics;
using UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Receiver.Primitives;
namespace UnityEngine.XR.Interaction.Toolkit.Samples.Hands
{
/// <summary>
/// Affordance receiver applying a Vector3 (Float3) affordance theme to a Transform local scale.
/// Broadcasts new af... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_66a0bba72b5b | unity_docs | scripting | Show me a Unity C# example demonstrating `Profiling.Profiler.enabled`. | Use
Profiler.maxUsedMemory
to raise the buffer memory.
Note:
In the following example, on the WebGL platform, the log file is outputted to a path like the following:
/idbfs/some-hash/profiler.raw
. To find this file, use your browser's developer tools. You can also
use
File.Open
with the same path that you used ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5904cb4df402 | unity_docs | scripting | What is `UIElements.UxmlSerializedData.CreateInstance` in Unity? Explain its purpose and usage. | UxmlSerializedData.CreateInstance
Declaration
public object
CreateInstance
();
Returns
object
The new instance of the declaring element.
Description
Returns an instance of the declaring element. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ace3e9775b7 | unity_docs | math | What is `EditorPrefs.GetBool` in Unity? Explain its purpose and usage. | EditorPrefs.GetBool
Declaration
public static bool
GetBool
(string
key
);
Declaration
public static bool
GetBool
(string
key
,
bool
defaultValue
= false);
Description
Returns the value corresponding to
key
in the preference file if it exists.
If it doesn't exist, it will return
defaultValue
.
Round ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9436e1e9456b | unity_docs | ui | What is `GUI.UnfocusWindow` in Unity? Explain its purpose and usage. | GUI.UnfocusWindow
Declaration
public static void
UnfocusWindow
();
Description
Remove focus from all windows.
Additional resources:
GUI.FocusWindow
.
```csharp
// Draws 2 windows. When one button is clicked unfocus the window.using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_57722b563b56 | unity_docs | animation | What is `Animations.RotationConstraint.GetSource` in Unity? Explain its purpose and usage. | RotationConstraint.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 ArgumentOutOfRangeExc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e7bd1582df27 | unity_docs | scripting | What is `Handles.Slider2D` in Unity? Explain its purpose and usage. | Handles.Slider2D
Declaration
public static
Vector3
Slider2D
(int
id
,
Vector3
handlePos
,
Vector3
offset
,
Vector3
handleDir
,
Vector3
slideDir1
,
Vector3
slideDir2
,
float
handleSize
,
Handles.CapFunction
capFunction
,
Vector2
snap
,
bool
drawHelper
= false);
Declaration
public static ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6ad07781308a | unity_docs | xr | What is `PlayerSettings.strictShaderVariantMatching` in Unity? Explain its purpose and usage. | PlayerSettings.strictShaderVariantMatching
public static bool
strictShaderVariantMatching
;
Description
Enable strict shader variant matching in the player.
If you enable strict shader variant matching, Unity tries to find an exact match for the combination of enabled local shader keywords and global keyword o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b971498af667 | unity_docs | scripting | What are the parameters of `HashUtilities.ComputeHash128` in Unity? | Description Compute a 128 bit hash based on a value. the type of the value must be a value type. ```csharp
using UnityEngine;
using System.Runtime.InteropServices;public class HashUtilitiesSample
{
[StructLayout(LayoutKind.Sequential)]
struct TestData
{
public ulong V1;
public ulong V2;
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d1ef2e300f1e | unity_docs | scripting | What is `UIElements.UxmlTypeReferenceAttribute.ctor` in Unity? Explain its purpose and usage. | UxmlTypeReferenceAttribute Constructor
Declaration
public
UxmlTypeReferenceAttribute
();
Description
Provides information about the expected type when applied to a Type field or property that has the
UxmlAttributeAttribute
attribute.
Declaration
public
UxmlTypeReferenceAttribute
(Type
baseType
);
Para... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_da6aebf112f0 | unity_docs | rendering | In Unity's 'HLSL pragma directives reference', what is 'Shader stages' and how does it work? | If you are writing a regular graphics shader , use these directives to tell the compiler which functions to use for different shader stages. The
#pragma vertex
and
#pragma fragment
directives are required, but other stages are optional.
Statement
Function
#pragma vertex <name>
Compile the function with the given name a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_627f8eb4154c | unity_docs | editor | What is `IMGUI.Controls.TreeView.useScrollView` in Unity? Explain its purpose and usage. | TreeView.useScrollView
protected bool
useScrollView
;
Description
When drawing the TreeView contents, will it be enclosed within a ScrollView?
When enabled, the contents of the TreeView is culled so that anything outside of the ScrollView is not drawn. If the TreeView is contained within an external ScrollView,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b3fd9f6891ad | unity_docs | math | What are the parameters of `Mathf.DeltaAngle` in Unity? | Returns float A value between -180 (exclusive) and 180 (inclusive) in degrees Description Calculates the shortest difference between two angles. ```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// Prints 90
Debug.Log(Mathf.DeltaAngle(1080, 90));
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_86590eab9233 | unity_docs | editor | In Unity's 'Command events', what is 'ExecuteCommandEvent' and how does it work? | The ExecuteCommandEvent event asks an Editor Window to execute a command.
Even if this event follows a validation event, it’s best practice to ensure the action is possible first, independently of any previous validation.
To respond to the command:
Register a callback for
ExecuteCommandEvent
.
Test the commandName prop... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0fa163dd80ba | unity_docs | math | What are the parameters of `Search.IQueryEngineFilter.AddTypeParser` in Unity? | Returns IQueryEngineFilter The current filter. Description Add a type parser specific to the filter. Add a type parser specific to the filter that parses a string and returns a custom type. Used by custom operator handlers. This type parser will only be used by this filter and will not affect other filters. ```
// Add ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_39760cbb281b | unity_docs | xr | In Unity's 'Remove a UPM package from a project', what is 'Procedure' and how does it work? | To remove an installed package:
Open the
Package Manager
window and select
In Project
from the
navigation panel
.
Select the package you want to remove from the
list of packages
. The
details panel
now displays that package’s information.
Click
Remove
.
If this button isn’t displayed, you might be viewing the
My Assets... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_23bdef3434f3 | unity_docs | scripting | What is `ParticleSystem.LimitVelocityOverLifetimeModule.limitMultiplier` in Unity? Explain its purpose and usage. | ParticleSystem.LimitVelocityOverLifetimeModule.limitMultiplier
public float
limitMultiplier
;
Description
Change the limit multiplier.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall limit multiplier.
```csharp
using UnityEngine;
using System.Co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89e9c1ac4d1b | unity_docs | animation | Show me a Unity C# example demonstrating `Playables.FrameData.deltaTime`. | FrameData.deltaTime
public float
deltaTime
;
Description
The interval between this frame and the preceding frame. The interval is unscaled and expressed in seconds.
To time-scale the interval, multiple the interval by
FrameData.effectiveSpeed
.
```csharp
//Attach this script to a GameObject that has an Ani... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_982c85173185_doc_4 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Called if the player swiped the screen. The argument is the screen movement delta.
Signature:
```csharp
public event Action<Vector2> onSwipe;
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_7fd6b2e88775 | unity_docs | scripting | What is `ObjectNames.GetInspectorTitle` in Unity? Explain its purpose and usage. | ObjectNames.GetInspectorTitle
Declaration
public static string
GetInspectorTitle
(
Object
obj
);
Declaration
public static string
GetInspectorTitle
(
Object
obj
,
bool
multiObjectEditing
);
Parameters
Parameter
Description
obj
Object to get a title from.
multiObjectEditing
Tells if the inspector is... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3aff28421bf2 | unity_docs | scripting | What is `UIElements.PointerCaptureEvent` in Unity? Explain its purpose and usage. | PointerCaptureEvent
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.PointerCaptureEventBase_1
/
Implemented in:
UnityEngine.UIElementsModule
Description
Event sent when a pointer is captured by a VisualElement.
When a pointer is captured by a VisualElement, all pointer events are sent to that ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2cbf90c8eb48 | unity_docs | scripting | What is `Experimental.GraphView.GraphView.ValidateTransform` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.ValidateTransform
Declaration
protected void
ValidateTransform
();
Description
Validate the view transform. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_95b3ec544e0e | unity_docs | scripting | What is `Search.SearchProvider.type` in Unity? Explain its purpose and usage. | SearchProvider.type
public string
type
;
Description
The search provider type can be another search provider id that provider is based on. This is used when we have multiple groups in the search view that list results from a similar provider. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e1767e6ab066 | unity_docs | math | In Unity's 'Debug generated C++ code', what is 'IL2CPP methods' and how does it work? | IL2CPP methods follow the format of
<ClassName>_<MethodName>_m#number
, where:
<ClassName>
is the class name of the method’s declaring type
<MethodName>
is the method name
#number
is a unique method number
Example IL2CPP methods:
ConfigurationSection_DoDeserializeSection_m1275
-
DeserializationSection method of the Con... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1b38cf78dcc1 | unity_docs | scripting | What is `UIElements.PointerId.penPointerIdBase` in Unity? Explain its purpose and usage. | PointerId.penPointerIdBase
public static int
penPointerIdBase
;
Description
The base ID for pen pointers.
The pointer ID for a pen event is a number between penPointerIdBase and penPointerIdBase + penPointerCount - 1. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d0ec1e944186 | unity_docs | rendering | Explain 'Optimize Web platform for mobile' in Unity. | Fast load times are crucial for Web-based applications, especially on mobile devices which might need to download application resources on a slow mobile network. Slow load times can result in a poor user experience and high bounce rate. Therefore, it’s important to optimize your Web build for mobile.
Web-based mobile a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2239715fd148 | unity_docs | xr | In Unity's 'Introduction to packages', what is 'Versions' and how does it work? | Multiple versions of each package are available, marking changes to that package along its lifecycle. Every time a developer updates the package, they
give it a new version number
. A change in package version tells you whether it contains a breaking change (major), new backward-compatible functionality (minor), or bug... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_50001dafcdde | unity_docs | physics | What is `PhysicsVisualizationSettings.showContactImpulse` in Unity? Explain its purpose and usage. | PhysicsVisualizationSettings.showContactImpulse
public static bool
showContactImpulse
;
Description
Whether the
PhysicsDebugWindow
shows
ContactPoint.impulse
.
If you set this property to true, the
PhysicsDebugWindow
visualizes
ContactPoint.impulse
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f2f3ff540920 | unity_docs | rendering | Show me a Unity C# example demonstrating `QualitySettings.skinWeights`. | he number of bone weights that Unity uses when performing skinning. This means that a mesh can have bone weight data that is unused due to this setting. You can change this value at runtime.
You can set this value for a single mesh using
SkinnedMeshRenderer.quality
. You can set the maximum number of bone weights that... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d369e2851b6c | unity_docs | editor | In Unity's 'Create custom packages', what is 'Procedure' and how does it work? | To create a new package:
Create an empty shell for the package using one of these methods:
Set up an embedded package
.
Set up a local package
.
Make sure the layout of your folder structure follows the
package layout convention
for Unity packages. For example, if you have Editor and Runtime libraries, make sure you st... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_39ce8475b950 | unity_docs | math | What is `Android.AndroidConfiguration.locales` in Unity? Explain its purpose and usage. | AndroidConfiguration.locales
public AndroidLocale[]
locales
;
Description
Indicates the language and region preferences set on the device in an array.
For example,
en-US
,
fr-FR
. The locale information can be accessed using the Android method
getLocales()
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e411b5bcf69 | unity_docs | math | What is `Camera.CalculateFrustumCorners` in Unity? Explain its purpose and usage. | Camera.CalculateFrustumCorners
Declaration
public void
CalculateFrustumCorners
(
Rect
viewport
,
float
z
,
Camera.MonoOrStereoscopicEye
eye
,
Vector3[]
outCorners
);
Parameters
Parameter
Description
viewport
Normalized viewport coordinates to use for the frustum calculation.
z
Z-depth from the camer... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_db9e7d867e39 | github | scripting | Write a Unity C# script called AXR Controller Manager | ```csharp
/**
* @file AXRControllerManager.cs
*
* @author Geoffrey Marhuenda
*
* @brief Manage any controller used by the application. Inherited members should set there instance via SetInstance.
* By priority: Handtracking, Controllers, gaze.
*/
using UnityEngine;
namespace Lynx
{
public abstract c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c22b038a793d | unity_docs | rendering | What is `PrefabUtility.SetPropertyModifications` in Unity? Explain its purpose and usage. | PrefabUtility.SetPropertyModifications
Declaration
public static void
SetPropertyModifications
(
Object
targetPrefab
,
PropertyModification[]
modifications
);
Parameters
Parameter
Description
targetPrefab
A reference to the Prefab instance to be modified. Although the type and name imply an asset, it is th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b0d07fabdd3b | unity_docs | scripting | What is `AndroidDeviceFilterData.productName` in Unity? Explain its purpose and usage. | AndroidDeviceFilterData.productName
public string
productName
;
Description
The product codename for the Android device.
Filter based on product name. For example, barbet, mermaid.
Note
: This property only accepts a valid regular expression. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d6030ab0611 | unity_docs | editor | What is `Search.SearchIndexer.Finish` in Unity? Explain its purpose and usage. | SearchIndexer.Finish
Declaration
public void
Finish
();
Declaration
public void
Finish
(string[]
removedDocuments
);
Declaration
public void
Finish
(
Unity.Android.Gradle.Manifest.Action
threadCompletedCallback
);
Declaration
public void
Finish
(
Unity.Android.Gradle.Manifest.Action
threadCompletedC... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f2c1914bf18f | unity_docs | physics | What is `ContactPoint2D.bounciness` in Unity? Explain its purpose and usage. | ContactPoint2D.bounciness
public float
bounciness
;
Description
The effective bounciness used for the
ContactPoint2D
.
When two
Collider2D
come into contact, both their
Collider2D.bounciness
values are combined.
This property provides the result of that combination and is used by the physics solver when ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b1768071d561 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R8G8_SNorm` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R8G8_SNorm
Description
A two-component, 16-bit signed normalized format that has an 8-bit R component stored with sRGB nonlinear encoding in byte 0, and an 8-bit G component stored with sRGB nonlinear encoding in b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_10b30c0ac85c | unity_docs | performance | What is `Profiling.Profiler.BeginThreadProfiling` in Unity? Explain its purpose and usage. | Profiler.BeginThreadProfiling
Declaration
public static void
BeginThreadProfiling
(string
threadGroupName
,
string
threadName
);
Parameters
Parameter
Description
threadGroupName
The name of the thread group to which the thread belongs.
threadName
The name of the thread.
Description
Enables profiling on ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c72b80df3b62 | unity_docs | rendering | What is `PlayerSettings.meshDeformation` in Unity? Explain its purpose and usage. | PlayerSettings.meshDeformation
public static
MeshDeformation
meshDeformation
;
Description
Specifies which method Unity uses to process mesh deformations for skinning.
If set to
MeshDeformation.CPU
, Unity uses the CPU to process mesh deformations.
If set to
MeshDeformation.GPU
, Unity uses compute shader... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e80608d99a45 | unity_docs | scripting | What is `Playables.PlayableOutputExtensions.GetSourcePlayable` in Unity? Explain its purpose and usage. | PlayableOutputExtensions.GetSourcePlayable
Declaration
public static
Playables.Playable
GetSourcePlayable
(U
output
);
Parameters
Parameter
Description
output
The
PlayableOutput
used by this operation.
Returns
Playable
The source playable.
Description
Returns the source playable. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_331ab9edd84f | unity_docs | rendering | What is `LineRenderer.textureMode` in Unity? Explain its purpose and usage. | LineRenderer.textureMode
public
LineTextureMode
textureMode
;
Description
Choose whether the U coordinate of the line texture is tiled or stretched.
Stretching maps the texture along the line with no repeats. Tiling maps the texture along the line with repeats every world unit. To change the repeat rate, use... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e72a64a673d0 | unity_docs | editor | Show me a Unity code example for 'Set background images'. | elect a supported background image type:
Textures Sprites Render textures
SVG Vector images
Note
:
To use an SVG image as a background image, you must
install the
com.unity.vectorgraphics
package
.
When you import an image to your project, define
the image import settings
for the most intuitive results.
You can set the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_51870a484155 | unity_docs | xr | What is `ObjectChangeEventStream.GetChangeAssetObjectPropertiesEvent` in Unity? Explain its purpose and usage. | ObjectChangeEventStream.GetChangeAssetObjectPropertiesEvent
Declaration
public void
GetChangeAssetObjectPropertiesEvent
(int
eventIdx
,
out
ChangeAssetObjectPropertiesEventArgs
data
);
Parameters
Parameter
Description
eventIdx
The index of the event to get the data for.
data
The data associated with the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93ee95b9f280 | unity_docs | animation | What is `Animations.ParentConstraint.SetSources` in Unity? Explain its purpose and usage. | ParentConstraint.SetSources
Declaration
public void
SetSources
(List<ConstraintSource>
sources
);
Parameters
Parameter
Description
sources
The list of sources to set.
Description
Sets the list of sources on the component.
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. |
local_sr_996be482708f | unity_docs | scripting | What is `Playables.PlayableExtensions.GetPreviousTime` in Unity? Explain its purpose and usage. | PlayableExtensions.GetPreviousTime
Declaration
public static double
GetPreviousTime
(U
playable
);
Parameters
Parameter
Description
playable
The
Playable
used by this operation.
Returns
double
The previous time in seconds.
Description
Returns the previous local time of the
Playable
.
Use this tem... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4761e40dabb5 | unity_docs | math | What is `Pool.CollectionPool_2` in Unity? Explain its purpose and usage. | CollectionPool<T0,T1>
class in
UnityEngine.Pool
/
Implemented in:
UnityEngine.CoreModule
Description
A Collection such as List, HashSet, Dictionary etc can be pooled and reused by using a CollectionPool.
Note the CollectionPool is not thread-safe. Additional resources:
DictionaryPool<T0,T1>
,
HashSetPool<T0>
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e75e77b79052 | unity_docs | performance | What is `ParticleSystemJobs.ParticleSystemJobData.meshIndices` in Unity? Explain its purpose and usage. | ParticleSystemJobData.meshIndices
public NativeArray<int>
meshIndices
;
Description
Specifies a mesh index for each particle.
The mesh index determines the mesh Unity uses to render a particle. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cd3d33f65145 | unity_docs | math | What is `Tilemaps.ITilemap.GetTransformMatrix` in Unity? Explain its purpose and usage. | ITilemap.GetTransformMatrix
Declaration
public
Matrix4x4
GetTransformMatrix
(
Vector3Int
position
);
Parameters
Parameter
Description
position
Position of the Tile on the
Tilemap
.
Returns
Matrix4x4
The transform matrix.
Description
Gets the transform matrix of a Tile given the XYZ coordinates of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c070e5e33416 | unity_docs | input | What is `Input.compositionString` in Unity? Explain its purpose and usage. | Input.compositionString
public static string
compositionString
;
Description
The current IME composition string being typed by the user.
Note
: This API is part of the legacy Input Manager. The recommended best practice is that you don't use this API in new projects. For new projects, use the Input System packa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_b016d2f58643_doc_3 | github | scripting | What does `ApplyImpulseUpperHalfSphere` do in this Unity script? Explain its purpose and signature. | Applies a horizontal impulse, ignoring vertical forces if it is negative.Impulse to be applied.
Signature:
```csharp
public void ApplyImpulseUpperHalfSphere(Vector3 impulse) => ApplyImpulse(new Vector3(impulse.x, Mathf.Max(impulse.y, 0.0f), impulse.z));
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_835618a8e9fe | unity_docs | editor | Show me a Unity C# example demonstrating `Profiling.FrameDataView.UnityObjectInfo`. | UnityObjectInfo
struct in
UnityEditor.Profiling
Description
Unity Object information.
```csharp
using UnityEditorInternal;
using UnityEditor.Profiling;public class Example
{
public static string GetInstanceName(int frame, int instanceId)
{
using (var frameData = ProfilerDriver.GetRawFrameDataView(frame, 0))
{... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d5adc0c0aac | unity_docs | math | What is `Rendering.RayTracingInstanceCullingConfig.triangleCullingConfig` in Unity? Explain its purpose and usage. | RayTracingInstanceCullingConfig.triangleCullingConfig
public
Rendering.RayTracingInstanceTriangleCullingConfig
triangleCullingConfig
;
Description
A structure used for specifying ray tracing instance triangle culling options and vertex winding.
Additional resources:
RayTracingAccelerationStructure
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5be6d8fd10cf | unity_docs | rendering | Explain 'Introduction to shader variants' in Unity. | Shader variants, also sometimes called shader permutations, are one way of introducing conditional behavior into shader code.
Unity compiles shader source files into shader programs. Each compiled shader program has one or more
variants
: different versions of the shader program for different conditions. At runtime, Un... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4651ff7ffe03 | unity_docs | performance | In Unity's 'Create and run a job', what is 'Create a job' and how does it work? | To create a job in Unity, implement the IJob interface. You can use your IJob implementation to schedule a single job that runs in parallel to any other jobs that are running.
IJob
has one required method:
Execute
, which Unity invokes whenever a
worker thread
runs the job.
When you create a job, you can also create a ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_082a92739291 | unity_docs | editor | What is `AI.NavMeshBuildSettings.debug` in Unity? Explain its purpose and usage. | NavMeshBuildSettings.debug
public
AI.NavMeshBuildDebugSettings
debug
;
Description
Options for collecting debug data during the build process.
Additional resources:
NavMeshBuildDebugSettings
,
NavMeshEditorHelpers.DrawBuildDebug
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0c3b8c8d422a | unity_docs | rendering | What is `QualitySettings.skinWeights` in Unity? Explain its purpose and usage. | QualitySettings.skinWeights
public static
SkinWeights
skinWeights
;
Description
The maximum number of bones per vertex that are taken into account during skinning, for all meshes in the project.
The value can be either One Bone, Two Bones, Four Bones or Auto. Note that higher bone counts may have a performan... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cb84c03c1637 | unity_docs | rendering | What is `AudioRenderer.Stop` in Unity? Explain its purpose and usage. | AudioRenderer.Stop
Declaration
public static bool
Stop
();
Returns
bool
True if the engine was recording when this function was called.
Description
Exits audio recording mode. After this audio output will be audible again. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e1521f3c79e | unity_docs | editor | What is `Search.SearchExpressionEvaluatorAttribute.ctor` in Unity? Explain its purpose and usage. | SearchExpressionEvaluatorAttribute Constructor
Declaration
public
SearchExpressionEvaluatorAttribute
(params SearchExpressionType[]
signatureArgumentTypes
);
Declaration
public
SearchExpressionEvaluatorAttribute
(string
name
,
params SearchExpressionType[]
signatureArgumentTypes
);
Declaration
public
Sear... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e6540804752b | unity_docs | rendering | In Unity's 'Reflective Diffuse', what is 'Reflective Properties' and how does it work? | Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shader will simulate reflective surfaces such as cars, metal objects etc. It requires an environment Cubemap which will define what exactly is reflected. The main texture’s alpha channel defines the strength of reflection on the object’s surf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_02a064f6b027 | unity_docs | editor | Show me a Unity code example for 'Define logging levels'. | level in UI Builder is set to
No logs
.
Each panel maintains independent logging level settings. PanelSettings assets and views (Scene, Game) operate on separate panels with their own logging configurations.
## In C# scripts
You can set the global and per-panel configurations to customize logging behavior in C#
scrip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0f57f6189e40 | unity_docs | rendering | Explain 'Introduction to Physical Cameras' in Unity. | The Physical Camera properties of the Camera component simulate real-world camera formats on a Unity camera. This is useful for importing camera information from 3D modeling applications that also mimic real-world cameras.
Unity provides the same settings as those in most 3D modeling application’s physical camera setti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_70383601b758 | unity_docs | math | In Unity's 'Serialization rules', what is 'Serialization of custom classes' and how does it work? | For Unity to serialize a custom class, you must ensure the class:
Has the
[Serializable]
attribute.
Is not static.
When you assign an instance of a
UnityEngine.Object
-derived class to a field and Unity saves that field, Unity serializes the field as a reference to that instance. Unity serializes the instance itself in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ff70a5abe626 | unity_docs | audio | Explain 'Audio Random Container fundamentals' in Unity. | An Audio Random Container is an object that lets you create audio playlists for your scene and apply rules to determine when and how the clips play. For example, you can add randomization, looping, and timed playback to your audio clips. This is an excellent way to create varied and dynamic audio playback for music and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2b0a6aef3201 | github | scripting | Write a Unity C# ScriptableObject for Heightmap Generator | ```csharp
/*
* HeightmapGenerator.cs
* Created by Arian - GameDevBox
* YouTube Channel: https://www.youtube.com/@GameDevBox
*
* 🎮 Want more Unity tips, tools, and advanced systems?
* 🧠 Learn from practical examples and well-explained logic.
* 📦 Subscribe to GameDevBox for more game dev content!
*
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_c988af9424a2 | unity_docs | editor | In Unity's 'Build your application for Dedicated Server', what is 'Unity Editor' and how does it work? | To create a Dedicated Server build in the Unity Editor, use the following steps:
Open the
Build Profiles
window from
File
>
Build Profiles
.
Select
Add Build Profile
to open the
Platform Browser
window.
Select the type of server to build from the list of available platforms. For example, select
Linux Server
to build a ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e70100680e7a | unity_docs | editor | In Unity's 'Create a simple transition with UI Builder and C# scripts', what is 'Create the Editor window files' and how does it work? | Use the menu to create the Editor window files with three default labels.
Create a Unity project with any template.
Create a folder named
create-a-transition
to store the files for this example.
In that folder, right-click in the Project window and select
Create
>
UI Toolkit
>
Editor Window
.
In the
C#
box, enter
Trans... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b6672c20ff62 | unity_docs | animation | What is `Animations.AnimatorControllerLayer.stateMachine` in Unity? Explain its purpose and usage. | AnimatorControllerLayer.stateMachine
public
Animations.AnimatorStateMachine
stateMachine
;
Description
The state machine for the layer.
When using Synced Layer, this state machine is overridden by the state machine of the synced layer. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c2a2389cf2ce | unity_docs | editor | Show me a Unity C# example demonstrating `Profiling.RawFrameDataView.GetSampleMetadataAsLong`. | t
sampleIndex
,
int
metadataIndex
);
Parameters
Parameter
Description
sampleIndex
Index of the Profiler sample.
metadataIndex
Metadata index.
Returns
long
Returns long representation of sample metadata value.
Description
Gets sample metadata value as long.
Use to obtain additional data associated wi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8534bba962b8 | unity_docs | rendering | What is `Rendering.SupportedRenderingFeatures.overridesOtherLightingSettings` in Unity? Explain its purpose and usage. | SupportedRenderingFeatures.overridesOtherLightingSettings
public bool
overridesOtherLightingSettings
;
Description
Determines if the renderer will override halo and flare settings in the Lighting Panel and will no longer need the built-in UI for it. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5d0ecc180fc4 | unity_docs | editor | What is `Rendering.RenderPipelineGlobalSettings.Initialize` in Unity? Explain its purpose and usage. | RenderPipelineGlobalSettings.Initialize
Declaration
public void
Initialize
(
Rendering.RenderPipelineGlobalSettings
source
);
Parameters
Parameter
Description
source
RenderPipelineGlobalSettings
that Unity will copy values from. Optional.
Description
Editor-only function that initializes the
RenderPipel... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c7aad112828b | unity_docs | editor | What is `EditorPrefs.DeleteKey` in Unity? Explain its purpose and usage. | EditorPrefs.DeleteKey
Declaration
public static void
DeleteKey
(string
key
);
Description
Removes
key
and its corresponding value from the preferences.
Removes a user entered editor preference, if it doesnt exists it prints a message.
```csharp
// Removes a user entered editor preference.
// If it does not ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_46d8d29ecd2e | unity_docs | scripting | What is `Vector3.Distance` in Unity? Explain its purpose and usage. | Vector3.Distance
Declaration
public static float
Distance
(
Vector3
a
,
Vector3
b
);
Description
Returns the distance between
a
and
b
.
Vector3.Distance(a,b)
is the same as
(a-b).magnitude
.
```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
public Tran... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4351e9579756 | github | scripting | Write a Unity C# UI script for TMP_Text Event Check | ```csharp
using UnityEngine;
namespace TMPro.Examples
{
public class TMP_TextEventCheck : MonoBehaviour
{
public TMP_TextEventHandler TextEventHandler;
private TMP_Text m_TextComponent;
void OnEnable()
{
if (TextEventHandler != null)
{
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_4dcf7870f6bb | unity_docs | ui | What is `UIElements.NavigationSubmitEvent` in Unity? Explain its purpose and usage. | NavigationSubmitEvent
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.NavigationEventBase_1
/
Implemented in:
UnityEngine.UIElementsModule
Description
Event sent when the user presses the submit button.
Inherited Members
Properties Property Description
bubbles
Returns whether this event typ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f741e81e0565 | unity_docs | input | What is `UIElements.MouseDownEvent.ctor` in Unity? Explain its purpose and usage. | MouseDownEvent Constructor
Declaration
public
MouseDownEvent
();
Description
Constructor. Avoid creating new event instances. Instead, use GetPooled() to get an instance from a pool of reusable event instances. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e2eeb0c69f1 | unity_docs | rendering | Give me an overview of the `PlatformIcon` class in Unity. | PlatformIcon
class in
UnityEditor
Description
Icon slot container.
Properties
Property
Description
height
The height of the icon in pixels.
kind
The PlatformIconKind is specific to the target platform.
layerCount
The number of texture layers the icon slot currently contains.
maxLayerCount
The maximum number... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5da1cbd8088b | unity_docs | scripting | What is `UIElements.BaseListView.ussClassName` in Unity? Explain its purpose and usage. | BaseListView.ussClassName
public static string
ussClassName
;
Description
The USS class name for ListView elements.
Unity adds this USS class to every instance of the ListView element. Any styling applied to
this class affects every ListView located beside, or below the stylesheet in the visual tree. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_57095f1aedf1 | unity_docs | rendering | What is `Rendering.LocalKeywordSpace.FindKeyword` in Unity? Explain its purpose and usage. | LocalKeywordSpace.FindKeyword
Declaration
public
Rendering.LocalKeyword
FindKeyword
(string
name
);
Parameters
Parameter
Description
name
The name of the shader keyword to search for.
Returns
LocalKeyword
Returns a valid
LocalKeyword
if it's present in the keyword space. Otherwise, returns an invalid... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_69cb882752e9 | unity_docs | math | What is `AndroidJNI.CallIntMethod` in Unity? Explain its purpose and usage. | AndroidJNI.CallIntMethod
Declaration
public static int
CallIntMethod
(IntPtr
obj
,
IntPtr
methodID
,
jvalue[]
args
);
Description
Calls a Java instance method defined by
methodID
, optionally passing an array of arguments (
args
) to the method.
Additional resources:
Java Native Interface Specification (Or... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_151e0e4b6e0d | unity_docs | math | Explain 'Programming with mathematics' in Unity. | Unity exposes several public APIs that allow you to work with mathematical concepts in your code. These APIs are useful for manipulating vectors, matrices, and other mathematical constructs that are common in game development.
Topic Description Moving objects with vectors
Perform vector arithmetic with Unity’s 2D, 3D, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e281b8e21d81 | unity_docs | physics | What is `ParticleSystem.LimitVelocityOverLifetimeModule` in Unity? Explain its purpose and usage. | LimitVelocityOverLifetimeModule
struct in
UnityEngine
/
Implemented in:
UnityEngine.ParticleSystemModule
Description
Script interface for the Limit Velocity Over Lifetime module.
Additional resources:
ParticleSystem
,
ParticleSystem.limitVelocityOverLifetime
.
Properties
Property
Description
dampen
Contr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b39f191cad59 | unity_docs | editor | What is `Experimental.Rendering.ExternalGPUProfiler` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ExternalGPUProfiler
class in
UnityEngine.Experimental.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
The ExternalGPUProfiler API allows developers to programatically take GPU frame captures in conjunction with... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bbfbb017102d | unity_docs | rendering | What is `RenderTextureFormat.RGB565` in Unity? Explain its purpose and usage. | RenderTextureFormat.RGB565
Description
Color render texture format.
5 bits for Red channel, 6 bits for Green channel, 5 bits for Blue channel
Note that not all graphics cards support 16 bit textures. Use
SystemInfo.SupportsRenderTextureFormat
to check for support.
Additional resources:
RenderTexture
class,
Sys... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d21e150365c4 | unity_docs | scripting | What is `Mesh.RecalculateNormals` in Unity? Explain its purpose and usage. | Mesh.RecalculateNormals
Declaration
public void
RecalculateNormals
(
Rendering.MeshUpdateFlags
flags
= MeshUpdateFlags.Default);
Parameters
Parameter
Description
flags
Flags controlling the function behavior, see
MeshUpdateFlags
.
Description
Recalculates the normals of the Mesh from the triangles and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f21735346891 | unity_docs | rendering | What is `LightTransport.InputExtraction.GetShadowmaskChannelsFromLightIndices` in Unity? Explain its purpose and usage. | InputExtraction.GetShadowmaskChannelsFromLightIndices
Declaration
public static int[]
GetShadowmaskChannelsFromLightIndices
(
LightTransport.InputExtraction.BakeInput
bakeInput
,
int[]
lightIndices
);
Parameters
Parameter
Description
bakeInput
The BakeInput containing light configuration data.
lightIndice... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bd2a07563727 | unity_docs | editor | Give me an overview of the `BuildPlayerOptions` class in Unity. | BuildPlayerOptions
struct in
UnityEditor
Description
Provide various options to control the behavior of
BuildPipeline.BuildPlayer
.
Additional resources:
EditorBuildSettings
,
BuildPlayerWindow.DefaultBuildMethods.GetBuildPlayerOptions
```csharp
using UnityEditor;
using UnityEngine;public class BuildPlayerOpt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_11ee1e20a5e2 | unity_docs | editor | What is `CanEditMultipleObjects` in Unity? Explain its purpose and usage. | CanEditMultipleObjects
class in
UnityEditor
Description
Attribute used to make a custom editor support multi-object editing.
When multiple objects are selected, Editors that don't have this attribute will show the message "Multi-object editing not supported".
See the
Editor
class documentation on how to make an... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68a326b4f30c | unity_docs | rendering | What is `SpriteRenderer.adaptiveModeThreshold` in Unity? Explain its purpose and usage. | SpriteRenderer.adaptiveModeThreshold
public float
adaptiveModeThreshold
;
Description
The current threshold for Sprite Renderer tiling.
This specifies the threshold to determine when Sprite Renderer will tile the sprite when
SpriteRenderer.tileMode
is set to
SpriteTileMode.Adaptive
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9b3ed687f886 | unity_docs | editor | What is `Build.IUnityLinkerProcessor` in Unity? Explain its purpose and usage. | IUnityLinkerProcessor
interface in
UnityEditor.Build
Implements interfaces:
IOrderedCallback
Description
Implement this interface to receive callbacks related to the running of UnityLinker.
Configure the managed code stripping of a build with this interface. For more information about build callbacks, refer to
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f3acf5ca7a2f | unity_docs | editor | What is `UIElements.Columns` in Unity? Explain its purpose and usage. | Columns
class in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Implements interfaces:
INotifyBindablePropertyChanged
Description
Represents a collection of columns.
Properties
Property
Description
Count
Gets the number of columns in the collection.
IsReadOnly
Gets a value i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6e3117b40519 | unity_docs | rendering | What is `SpeedTreeImporter.GenerateMaterials` in Unity? Explain its purpose and usage. | SpeedTreeImporter.GenerateMaterials
Declaration
public void
GenerateMaterials
();
Description
Generates all necessary materials under materialFolderPath. If Version Control is enabled please first check out the folder. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4bc4dac34556 | unity_docs | rendering | In Unity's 'Self-Illuminated Normal mapped Specular', what is 'Creating Normal maps' and how does it work? | You can import normal maps created outside of Unity, or you can import a regular grayscale image and convert it to a Normal Map from within Unity. (This page refers to a legacy shader which has been superseded by the
Standard Shader
, but you can learn more about how to use
Normal Maps in the Standard Shader
) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_43d3a9432e13 | unity_docs | ui | What is `UIElements.Manipulator` in Unity? Explain its purpose and usage. | Manipulator
class in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Implements interfaces:
IManipulator
Description
Base class for all Manipulator implementations. For more information, refer to
Manipulators in User Manual
.
Properties
Property
Description
target
VisualElement b... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_918b95e07d1f | unity_docs | physics | In Unity's 'Multi-scene physics', what is 'Creating and using independent physics Scenes' and how does it work? | You can use
Multi-Scene editing
to create multiple Scenes in general (although you can also instantiate them by script). However, you have to use the Unity scripting API to use independent physics Scenes in runtime.
More precisely, to get the expected physics results, you must write a script that takes care at least of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_590418ac9de8 | unity_docs | scripting | What is `TerrainTools.TerrainPaintTool_1.OnDisable` in Unity? Explain its purpose and usage. | TerrainPaintTool<T0>.OnDisable
Declaration
public void
OnDisable
();
Description
Called when the tool is destroyed.
Unity calls this method when the tool is destroyed.
Additional resources:
ScriptableObject.OnDisable
. | 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.