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_faa11e609daf | unity_docs | physics | What are the parameters of `ArticulationBody.AddRelativeForce` in Unity? | Description Applies a force to the Articulation Body, relative to its local coordinate system. You can only apply a force to an active ArticulationBody. If a GameObject is inactive, AddRelativeForce has no effect. ForceMode.Force and ForceMode.Acceleration modes modify the Linear Velocity Per Second accumulator and For... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_44cb206a1476 | unity_docs | animation | What is `Animations.RotationConstraint.SetSource` in Unity? Explain its purpose and usage. | RotationConstraint.SetSource
Declaration
public void
SetSource
(int
index
,
Animations.ConstraintSource
source
);
Parameters
Parameter
Description
index
The index of the source to set.
source
The source object and its weight.
Description
Sets a source at a specified index.
Throws ArgumentOutOfRangeEx... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dcf0b1982211 | unity_docs | physics | What is `ClothSphereColliderPair` in Unity? Explain its purpose and usage. | ClothSphereColliderPair
struct in
UnityEngine
/
Implemented in:
UnityEngine.ClothModule
Description
A pair of SphereColliders used to define shapes for Cloth objects to collide against.
A ClothSphereColliderPair can contain either a single valid SphereCollider instance (with the second one being null), or a pai... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d4f6d985bbd1 | unity_docs | rendering | What is `Camera.VerticalToHorizontalFieldOfView` in Unity? Explain its purpose and usage. | Camera.VerticalToHorizontalFieldOfView
Declaration
public static float
VerticalToHorizontalFieldOfView
(float
verticalFieldOfView
,
float
aspectRatio
);
Parameters
Parameter
Description
verticalFieldOfView
The vertical FOV value in degrees.
aspectRatio
The aspect ratio value used for the conversion
Desc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cb05192db469 | unity_docs | scripting | What is `AI.NavMeshBuildMarkup.root` in Unity? Explain its purpose and usage. | NavMeshBuildMarkup.root
public
Transform
root
;
Description
Use this to specify which GameObject (including the GameObject’s children) the markup should be applied to.
This markup will be shared with the children of the
root
GameObject only if
applyToChildren
is set to
true
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5489039b041c | unity_docs | scripting | What is `Unity.Android.Gradle.BaseBlock.GetUniqueName` in Unity? Explain its purpose and usage. | BaseBlock.GetUniqueName
Declaration
public string
GetUniqueName
();
Returns
string
The name and element ID when the block has a name. Otherwise, returns the element type and element ID.
Description
Gets the unique name of the element. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_268ac4eb0da7 | unity_docs | editor | What is `EditorGUI.ObjectField` in Unity? Explain its purpose and usage. | EditorGUI.ObjectField
Obsolete
Check the docs for the usage of the new parameter 'allowSceneObjects'.
Declaration
public static Object
ObjectField
(
Rect
position
,
Object
obj
,
Type
objType
);
Obsolete
Check the docs for the usage of the new parameter 'allowSceneObjects'.
Declaration
public static Ob... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_29b892d90204 | unity_docs | physics | What are the parameters of `MonoBehaviour.OnCollisionExit2D` in Unity? | Description Sent when a collider on another object stops touching this object's collider (2D physics only). Further information about the objects involved is reported in the Collision2D parameter passed during the call. If you don't need this information then you can declare OnCollisionExit2D without the parameter. Not... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bf2a3c3dd28d | unity_docs | scripting | Show me a Unity C# example demonstrating `SystemLanguage.Romanian`. | SystemLanguage.Romanian
Description
Romanian.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Romanian language
if (Application.systemLanguage == SystemLanguage.Romanian)
{
//Outputs into console that the system is R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_825045ded7ec | unity_docs | rendering | What is `QualitySettings` in Unity? Explain its purpose and usage. | QualitySettings
class in
UnityEngine
/
Inherits from:
Object
/
Implemented in:
UnityEngine.CoreModule
Description
This represents the script interface for
Quality Settings
.
Use the
QualitySettings
class to change the current quality level at runtime. You can check the details of quality settings in your... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1003d6f5dd82 | unity_docs | scripting | Show me a Unity C# example demonstrating `HashUnsafeUtilities.ComputeHash128`. | ng
dataSize
,
Hash128*
hash
);
Parameters
Parameter
Description
data
Pointer to the data to hash.
dataSize
The number of bytes to hash.
hash1
A pointer to store the low 64 bits of the computed hash.
hash2
A pointer to store the high 64 bits of the computed hash.
hash
A pointer to the Hash128 to updated... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_77c01ce7e25b | unity_docs | scripting | Explain 'Create and use plug-ins in Android' in Unity. | You can use plug-ins to deliver resources and call Java and C++ code created outside of Unity from your C#
scripts
. They enable you to access features, like third-party code libraries and operating systems calls, that would otherwise not be available to Unity. For more information about plug-ins with Unity, see
Plug-i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e91f48bb3ac1 | unity_docs | editor | Give me an overview of the `CacheServerConnectionChangedParameters` class in Unity. | CacheServerConnectionChangedParameters
struct in
UnityEditor
Description
Struct used for
AssetDatabase.cacheServerConnectionChanged
.
```csharp
using UnityEngine;
using UnityEditor;public class CacheServerConnectionChangedExample
{
[MenuItem("AssetDatabase/Correct connection to the Cache Server")]
static void ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b4c1bbadfc5f | unity_docs | physics | What is `ContactFilter2D.minDepth` in Unity? Explain its purpose and usage. | ContactFilter2D.minDepth
public float
minDepth
;
Description
Sets the contact filter to filter the results to only include
Collider2D
with a Z coordinate (depth) greater than this value.
This is only used if
useDepth
is true. If the
minDepth
is set to -
Mathf.Infinity
or
Mathf.Infinity
then the lowest ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_060441134198 | unity_docs | scripting | Show me a Unity C# example demonstrating `Rect.x`. | Rect.x
public float
x
;
Description
The X coordinate of the rectangle.
This value is the same as
xMin
, but setting it will move the rectangle rather than resize it.
```csharp
using UnityEngine;public class RectExample : MonoBehaviour
{
// Use this for initialization
void Start()
{
Rect rect = new Rect(10... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_62e396b4386b | unity_docs | physics | What is `SurfaceEffector2D.useContactForce` in Unity? Explain its purpose and usage. | SurfaceEffector2D.useContactForce
public bool
useContactForce
;
Description
Should the impulse force but applied to the contact point?
When true, the force is applied to the contact point which may cause the target to rotate. When off, the force is applied to the center-of-mass, therefore no rotation is produce... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_858f1b84b08c | unity_docs | physics | Show me a Unity C# example demonstrating `ContactPoint.point`. | Point.point
public
Vector3
point
;
Description
The point of contact.
The point of contact in world space where the collision contact occurred.
This represents the point on the surface of the collider where the contact was detected. The value is expressed in world space, meaning it is relative to the global c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f386f80014ad | unity_docs | editor | Show me a Unity C# example demonstrating `ProfilerWindow.cpuModuleIdentifier`. | ProfilerWindow.cpuModuleIdentifier
public static string
cpuModuleIdentifier
;
Description
The identifier of the
CPU Usage Profiler module
.
Compare this constant to
ProfilerWindow.selectedModuleIdentifier
to check if the currently selected
Profiler module
is the
CPU Usage Profiler module
.
```csharp
usin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0d52de132837 | unity_docs | scripting | Show me a Unity C# example demonstrating `SpriteRenderer.sprite`. | SpriteRenderer.sprite
public
Sprite
sprite
;
Description
The Sprite to render.
The
SpriteRenderer
component will render the assigned Sprite.sprite
sprite. The rendered sprite can be changed by specifying a different
sprite in the
sprite
variable.
```csharp
// Example that loads sprites from a texture ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d5fbfcc5cf1 | unity_docs | rendering | What is `Camera.SetReplacementShader` in Unity? Explain its purpose and usage. | Camera.SetReplacementShader
Declaration
public void
SetReplacementShader
(
Shader
shader
,
string
replacementTag
);
Description
Make the camera render with shader replacement.
See
Rendering with Replaced Shaders
page for details.
If the replacementTag argument is not in use, pass an empty string as the va... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c3394091d9f | unity_docs | scripting | What is `IMGUI.Controls.TreeView.RefreshCustomRowHeights` in Unity? Explain its purpose and usage. | TreeView.RefreshCustomRowHeights
Declaration
protected void
RefreshCustomRowHeights
();
Description
Refreshes the cache of custom row rects based on the heights returned by
GetCustomRowHeight
.
This method calls
GetCustomRowHeight
for each of the current rows and caches the results. It is called automaticall... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_35a8499c0060 | unity_docs | scripting | What is `UIElements.UxmlUnsignedIntAttributeDescription.TryGetValueFromBag` in Unity? Explain its purpose and usage. | UxmlUnsignedIntAttributeDescription.TryGetValueFromBag
Declaration
public bool
TryGetValueFromBag
(
UIElements.IUxmlAttributes
bag
,
UIElements.CreationContext
cc
,
ref uint
value
);
Parameters
Parameter
Description
bag
The bag of attributes.
cc
The context in which the values are retrieved.
value
T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_614cdd7a6c01 | unity_docs | scripting | What is `Unity.Properties.PropertyVisitor.RemoveAdapter` in Unity? Explain its purpose and usage. | PropertyVisitor.RemoveAdapter
Declaration
public void
RemoveAdapter
(
Unity.Properties.IPropertyVisitorAdapter
adapter
);
Parameters
Parameter
Description
adapter
The adapter to remove.
Description
Removes an adapter from the visitor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d9d627873a4b | unity_docs | scripting | Show me a Unity C# example demonstrating `PrefabUtility.EditPrefabContentsScope`. | ng the contents again.
This struct allows you to temporarily load the GameObject contents of a Prefab file, modify the contents to your liking inside of a block of code and automatically save the result back to the Prefab file as well as unload the temporary contents when the scope is exited.
This scope struct wraps t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_67fbf3fdd9d6 | unity_docs | scripting | What is `SceneManagement.PreviewSceneStage.OnCloseStage` in Unity? Explain its purpose and usage. | PreviewSceneStage.OnCloseStage
Declaration
protected void
OnCloseStage
();
Description
Unity calls this method when the Stage is closed. Classes that inherit from PreviewSceneStage should implement cleanup logic in this method.
A Stage can remain open even after another Stage becomes the active Stage. Unity onl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_57ade3c89097 | github | scripting | Write a Unity C# MonoBehaviour script called Initiator | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace BehaviourInject.Example
{
//This script is used to create contexts
//It has to be stated in Script Execution Order as very first
public class Initiator : MonoBehaviour
{
private Context _context;
private void A... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_1d4275eb7f77 | unity_docs | scripting | What are the parameters of `Sprite.Create` in Unity? | Description Create a new Sprite object. Sprite.Create creates a new Sprite which can be used in game applications.
A Texture needs to be loaded and assigned to Sprite.Create in order to control how the
new Sprite will look. In the script example below a new Sprite is displayed
when t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b990026a3049 | unity_docs | rendering | Explain 'Verified Solutions onboarding process' in Unity. | Before the Verified Solutions team can start technical verification, you must submit the following information through
this form
:
A link to the solution.
Size of the solution.
Supported Unity versions.
Supported platforms.
Any necessary licensing files.
Login information to any back-end services or administration cons... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_81a5653f9a30 | unity_docs | scripting | What is `GraphicsBufferHandle` in Unity? Explain its purpose and usage. | GraphicsBufferHandle
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Represents the internal handle/id of a
GraphicsBuffer
.
The handle is valid as long as the
GraphicsBuffer
it has been fetched from has not been disposed. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6910d9d9a9ea_doc_2 | github | scripting | What does `OnCollisionEnter2DAsObservable` do in this Unity script? Explain its purpose and signature. | Sent when an incoming collider makes contact with this object's collider (2D physics only).
Signature:
```csharp
public static IObservable<Collision2D> OnCollisionEnter2DAsObservable(this Component component)
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_48476af57670 | unity_docs | ui | Show me a Unity C# example demonstrating `EditorWindow.SaveChanges`. | nsavedChanges
property is not reset to false.
Note, if the Editor has multiple prompts to the user to save their changes, the Editor will call this method as part of a list of changes that need saving.
Unity cancels the save process for all remaining prompts if this method throws an exception. In this case, you will... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f7f2131abd66 | unity_docs | scripting | In Unity's 'Native plug-ins', what is 'Using a native plug-in' and how does it work? | To use a native plug-in:
Write functions in a C-based language to access the features you need.
Compile them into a library.
In Unity, create a C# script that calls functions in the native library.
You build native plug-ins with native code compilers on the target platform. Because plug-in functions use a C-based call ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3f30cff515db | unity_docs | scripting | Show me a Unity C# example demonstrating `ScriptableWizard`. | ScriptableWizard
class in
UnityEditor
/
Inherits from:
EditorWindow
Description
Derive from this class to create an editor wizard.
Editor wizards are typically opened using a menu item.
```csharp
// Creates a simple wizard that lets you create a Light GameObject
// or if the user clicks in "Apply", it will set... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a96b00e59dc9 | unity_docs | scripting | What is `AssetPostprocessor.OnPostprocessGameObjectWithAnimatedUserProperties` in Unity? Explain its purpose and usage. | AssetPostprocessor.OnPostprocessGameObjectWithAnimatedUserProperties(GameObject, EditorCurveBinding[])
Parameters
Parameter
Description
gameObject
The GameObject with animated custom properties.
bindings
The animation curves bound to the custom properties.
Description
Called when the animation curves for a cu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3477233d79aa | unity_docs | xr | What is `Media.MediaEncoder.AddFrame` in Unity? Explain its purpose and usage. | MediaEncoder.AddFrame
Declaration
public bool
AddFrame
(
Texture2D
texture
);
Declaration
public bool
AddFrame
(
Texture2D
texture
,
Media.MediaTime
time
);
Parameters
Parameter
Description
texture
Texture containing the pixels to be written into the track for the current frame.
time
Timestamp fo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_df2b5a55863f | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R16G16_SFloat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R16G16_SFloat
Description
A two-component, 32-bit signed floating-point format that has a 16-bit R component in bytes 0..1, and a 16-bit G component in bytes 2..3. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_67ee24a94a48 | unity_docs | editor | What are the parameters of `AssetImporters.AssetImportContext.DependsOnCustomDependency` in Unity? | Description Allows you to specify that an Asset has a custom dependency. Use custom dependency if need to setup a dependency to something that can't be expressed as either an source asset dependency or artifact dependency. ```csharp
using UnityEngine;
using UnityEditor.AssetImporters;
using UnityEditor.Experimental;
us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_753c8f96415d | unity_docs | rendering | What are the parameters of `ComputeShader.SetTextureFromGlobal` in Unity? | Description Set a texture parameter from a global texture property. This function can either set a regular texture that is read in the
compute shader, or an output texture that is written into by the shader.
For an output texture, it has to be a RenderTexture with random write
flag enabled, see RenderTexture.enableRand... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ff977fb30700 | unity_docs | rendering | What is `GUI.DrawTextureWithTexCoords` in Unity? Explain its purpose and usage. | GUI.DrawTextureWithTexCoords
Declaration
public static void
DrawTextureWithTexCoords
(
Rect
position
,
Texture
image
,
Rect
texCoords
);
Declaration
public static void
DrawTextureWithTexCoords
(
Rect
position
,
Texture
image
,
Rect
texCoords
,
bool
alphaBlend
);
Parameters
Parameter
Descrip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_39cbd56a92cc | unity_docs | scripting | In Unity's 'Get culling results', what is 'Receiving results via the CullingGroup Query API' and how does it work? | In addition to the onStateChanged delegate, the CullingGroup provides an API for retrieving the latest visibility and distance results of any sphere in the bounding spheres array. To check the states of a single sphere, use the IsVisible and GetDistance methods:
```
bool sphereIsVisible = group.IsVisible(0);
int sphere... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_827bc9677c68 | unity_docs | scripting | What is `Pool.UnsafeGenericPool_1.Release` in Unity? Explain its purpose and usage. | UnsafeGenericPool<T0>.Release
Declaration
public static void
Release
(T
toRelease
);
Parameters
Parameter
Description
toRelease
The instance to return to the pool.
Description
Returns the instance back to the pool. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_86af6b28c89f | github | scripting | Write a Unity C# MonoBehaviour script called Singleton Mono Behaviour Loader | ```csharp
//--------------------------------------
// Imports
//--------------------------------------
using System;
using UnityEngine;
//--------------------------------------
// Namespace
//--------------------------------------
namespace RMC.Core.DesignPatterns.Singleton
{
//---------------------------------... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_8cca31e63553 | unity_docs | rendering | What is `Sprites.SpriteUtility.GetSpriteTexture` in Unity? Explain its purpose and usage. | SpriteUtility.GetSpriteTexture
Declaration
public static
Texture2D
GetSpriteTexture
(
Sprite
sprite
,
bool
getAtlasData
);
Parameters
Parameter
Description
getAtlasData
If
Sprite
is packed, it is possible to access data as if it was on the atlas texture.
Description
Returns the generated
Sprite
tex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5343ef4b756c | unity_docs | performance | Show me a Unity C# example demonstrating `Unity.Profiling.LowLevel.Unsafe.ProfilerUnsafeUtility.CreateMarker`. | Ptr
Returns the marker native handle.
Description
Constructs a new Profiler marker handle for code instrumentation.
Use profiler marker handle with
ProfilerUnsafeUtility
methods only.
The
categoryId
parameter associates the marker with one of the predefined categories in
ProfilerCategory
struct.
Note:
Ma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_797f36ed22ca | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.A2R10G10B10_UNormPack32` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.A2R10G10B10_UNormPack32
Description
A four-component, 32-bit packed unsigned normalized format that has a 2-bit A component in bits 30..31, a 10-bit R component in bits 20..29, a 10-bit G component in bits 10..19, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ddee3c8567fd | unity_docs | rendering | What is `TextureImporterShape` in Unity? Explain its purpose and usage. | TextureImporterShape
enumeration
Description
The shape of the imported texture.
The default value is
Texture2D
. The texture can also be imported as a
Cubemap
,
Texture2DArray
or a
Texture3D
.
Additional resources:
TextureImporterSettings.textureShape
,
Texture Assets
.
Properties
Property
Description
T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7eee303a584a | unity_docs | scripting | What is `ArticulationBody.SetDriveStiffness` in Unity? Explain its purpose and usage. | ArticulationBody.SetDriveStiffness
Declaration
public void
SetDriveStiffness
(
ArticulationDriveAxis
axis
,
float
value
);
Parameters
Parameter
Description
axis
The drive axis.
value
The value to set the stiffness to.
Description
Sets the stiffness value of the specified drive.
Additional resources: ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f7b1e4d9f6dd_doc_0 | github | scripting | What does `Postfix` do in this Unity script? Explain its purpose and signature. | Have a look atthe documentation to understand how the patching works>Checks if the dominant is currently pointing at the given and corrects the result of the original method.The out params of the original methods were already corrected by the processing before.the result of the previous method call, which is corrected... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_f6b3e4a1762f | unity_docs | math | What is `Rendering.VisibleReflectionProbe.localToWorldMatrix` in Unity? Explain its purpose and usage. | VisibleReflectionProbe.localToWorldMatrix
public
Matrix4x4
localToWorldMatrix
;
Description
Probe transformation matrix.
Additional resources:
CullingResults.visibleReflectionProbes
,
ReflectionProbe
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d5f9d370f872_doc_13 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Stores the locomotion provider for continuous movement.
Signature:
```csharp
public ContinuousMoveProviderBase continuousMoveProvider
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_38e1fef39a5b | unity_docs | scripting | What is `Device.Application.buildGUID` in Unity? Explain its purpose and usage. | Application.buildGUID
public static string
buildGUID
;
Description
This has the same functionality as
Application.buildGUID
. At the moment, the Device Simulator doesn't support simulation of this property. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0cdc7d8060a6 | unity_docs | rendering | What is `RenderTexture.Create` in Unity? Explain its purpose and usage. | RenderTexture.Create
Declaration
public bool
Create
();
Returns
bool
True if the texture is created, else false.
Description
Actually creates the RenderTexture.
RenderTexture constructor does not actually create the hardware texture;
by default the texture is created the first time it is set
active
.
Ca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f7b1756fea0f | github | scripting | Write a Unity C# script called Update Transform Job Data | ```csharp
using Gilzoide.UpdateManager.Extensions;
using UnityEngine.Jobs;
namespace Gilzoide.UpdateManager.Jobs.Internal
{
public class UpdateTransformJobData<TData, TDataProvider> : UpdateJobData<TData, TDataProvider>
where TData : struct
where TDataProvider : IInitialTransformJobDataProvider<TDa... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_d084668cf058 | unity_docs | scripting | What is `UIElements.EventBase_1` in Unity? Explain its purpose and usage. | EventBase<T0>
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.EventBase
/
Implemented in:
UnityEngine.UIElementsModule
Description
Generic base class for events, implementing event pooling and automatic registration to the event type system.
Properties
Property
Description
eventTypeId
Retr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_54133dd58757 | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchAction.handler`. | SearchAction.handler
public Action<SearchItem>
handler
;
Description
This handler is used for actions that do not support multi-selection.
```
new SearchAction("asset", "print_dependencies", new GUIContent("Print Dependencies", null, "Print all dependencies of an asset."))
{
// If this action is the default, d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d4b58a6d3bf7 | unity_docs | xr | What is `ObjectChangeEventStream.GetCreateAssetObjectEvent` in Unity? Explain its purpose and usage. | ObjectChangeEventStream.GetCreateAssetObjectEvent
Declaration
public void
GetCreateAssetObjectEvent
(int
eventIdx
,
out
CreateAssetObjectEventArgs
data
);
Parameters
Parameter
Description
eventIdx
The index of the event to get the data for.
data
The data associated with the event.
Description
Retrieve... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1a249592409f | unity_docs | math | What is `HumanPoseHandler.SetInternalAvatarPose` in Unity? Explain its purpose and usage. | HumanPoseHandler.SetInternalAvatarPose
Declaration
public void
SetInternalAvatarPose
(NativeArray<float>
avatarPose
);
Parameters
Parameter
Description
avatarPose
The input avatar pose. The avatar pose is expressed as an array of floats. The floats represent the translation and rotation of the joints as loca... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_06625e967788 | unity_docs | rendering | Explain 'Introduction to normal maps (bump mapping)' in Unity. | Normal maps are a type of
Bump Map
. They are a special kind of texture that allow you to add surface detail such as bumps, grooves, and scratches to a model which catch the light as if they are represented by real geometry.
Unity uses Y+
normal maps
, sometimes known as OpenGL format.
For example, you might want to sh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5209e85c6005 | unity_docs | xr | In Unity's 'Develop for Meta Quest workflow', what is 'Templates' and how does it work? | You can use the following templates as a starting point for your Meta Quest project:
Mixed Reality template
VR Template
VR Multiplayer template
Mixed Reality multiplayer tabletop template
Refer to
Create an XR project
to understand how to use templates as a starting point for your project. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_be14473aa176 | unity_docs | rendering | What is `CustomRenderTextureManager.textureUnloaded` in Unity? Explain its purpose and usage. | CustomRenderTextureManager.textureUnloaded
Description
Unity raises this event when it unloads a CustomRenderTexture.
Use this event to keep track of CustomRenderTexture unloading. This is useful if you are writing your own CustomRenderTexture update loop.
Additional resources: Rendering.GraphicsSettings.disableBui... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aed0eedabeda | unity_docs | scripting | Show me a Unity C# example demonstrating `AudioSettings.OnAudioConfigurationChanged`. | ver the global audio settings change.
The settings change when you use
AudioSettings.Reset
, but an external factor can also change them. For example:
The OS control panel changes the sample rate.
The user changes the default output device, for example if they plug in an HDMI monitor or a USB headset.
For a code ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_72e761eb549e | unity_docs | rendering | What is `TextureImporter.alphaIsTransparency` in Unity? Explain its purpose and usage. | TextureImporter.alphaIsTransparency
public bool
alphaIsTransparency
;
Description
If the alpha channel of your texture represents transparency, enable this property to dilate the color channels of visible texels into fully transparent areas. This effectively adds padding around transparent areas that prevents f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d05e32a9c490 | unity_docs | rendering | What is `Rendering.BuiltinRenderTextureType.Reflections` in Unity? Explain its purpose and usage. | BuiltinRenderTextureType.Reflections
Description
Reflections gathered from default reflection and reflections probes.
Used by screen space reflections as a fallback, when it's not possible to get reflections from the screen.
Additional resources:
CommandBuffer
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2cb903e0777c | unity_docs | math | Show me a Unity code example for 'Recommended Quality settings to optimize your Web build'. | y Level
to a lower setting (
Very Low or Low
), it results in faster load times and better performance which is recommended for a Web application. However, lower quality can mean the visuals don’t look as good.
For more information about this setting, refer to
Quality
.
## Change the Quality Level via C# code
To chan... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f5ea30939b1 | unity_docs | scripting | What is `Experimental.GraphView.GraphView.AskUser` in Unity? Explain its purpose and usage. | AskUser
enumeration
Description
Whether or not to ask the user for certain actions like deleting selection.
Properties
Property
Description
AskUser
Ask the user before doing certain actions like deleting selection.
DontAskUser
Don't ask the user before doing certain actions like deleting selection. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d66bf0f5d763 | unity_docs | scripting | What is `UIElements.MultiColumnListViewController.ctor` in Unity? Explain its purpose and usage. | MultiColumnListViewController Constructor
Declaration
public
MultiColumnListViewController
(
UIElements.Columns
columns
,
UIElements.SortColumnDescriptions
sortDescriptions
,
List<SortColumnDescription>
sortedColumns
);
Parameters
Parameter
Description
columns
The columns data used to initialize the hea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1fcecbd4ffb9 | unity_docs | editor | What is `EditorUserBuildSettings.buildWithDeepProfilingSupport` in Unity? Explain its purpose and usage. | EditorUserBuildSettings.buildWithDeepProfilingSupport
public static bool
buildWithDeepProfilingSupport
;
Description
Enables Deep Profiling support in the Player.
Allow the Profiler to process all your script code and record every function call, returning detailed profiling data.
Note:
A Player might run signi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3bfbbde8d047 | unity_docs | editor | What is `SerializedProperty.InsertArrayElementAtIndex` in Unity? Explain its purpose and usage. | SerializedProperty.InsertArrayElementAtIndex
Declaration
public void
InsertArrayElementAtIndex
(int
index
);
Description
Insert an new element at the specified index in the array.
The value of the inserted element is undefined and should be explicitly set after calling this function.
Additional resources:
i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4fef1ed4ba1b | unity_docs | physics | What is `Physics2D.positionIterations` in Unity? Explain its purpose and usage. | Physics2D.positionIterations
public static int
positionIterations
;
Description
The number of iterations of the physics solver when considering objects' positions.
A higher number of interations will improve accuracy at the expense of processing overhead.
Additional resources:
velocityIterations
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_826b01975afb | unity_docs | scripting | What is `Camera.onPreCull` in Unity? Explain its purpose and usage. | Camera.onPreCull
public static
Camera.CameraCallback
onPreCull
;
Description
Delegate that you can use to execute custom code before a
Camera
culls the scene.
In the Built-in Render Pipeline, Unity calls
onPreCull
before performing the culling operation that determines what a Camera can see. To execute c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4dd5b1e9010b | unity_docs | scripting | What is `Debug.AssertFormat` in Unity? Explain its purpose and usage. | Debug.AssertFormat
Declaration
public static void
AssertFormat
(bool
condition
,
string
format
,
params object[]
args
);
Declaration
public static void
AssertFormat
(bool
condition
,
Object
context
,
string
format
,
params object[]
args
);
Parameters
Parameter
Description
condition
Condition you... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a326a9e5b629_doc_6 | github | scripting | What does `Do` do in this Unity script? Explain its purpose and signature. | 'Constructor' for a singleton coroutine.Takes a ,executes it's code and `yield return`s the result.By chaining calls of , and you can construct any coroutine from functions only.The action containing a single step of a coroutine and returns a value to be yielded.A singleton coroutine, which when executed calls the pass... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_4b20185e622e | unity_docs | rendering | Show me a Unity C# example demonstrating `GL.End`. | GL.End
Declaration
public static void
End
();
Description
End drawing 3D primitives.
In OpenGL this matches
glEnd
; on other graphics APIs the same
functionality is emulated.
Additional resources:
GL.Begin
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Draws a Triangle, a Quad and a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e525332f92ec | unity_docs | scripting | What is `ClipboardUtility.duplicatingGameObjects` in Unity? Explain its purpose and usage. | ClipboardUtility.duplicatingGameObjects
Parameters
Parameter
Description
value
An array containing the GameObjects that will be duplicated.
Description
Event triggered before GameObjects are about to be duplicated.
Occurs after the selected GameObjects have been optionally filtered through
canDuplicateGameObj... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_170785cc4e02 | unity_docs | scripting | What is `PlayerSettings.SetCaptureStartupLogs` in Unity? Explain its purpose and usage. | PlayerSettings.SetCaptureStartupLogs
Declaration
public static void
SetCaptureStartupLogs
(
Build.NamedBuildTarget
buildTarget
,
bool
enable
);
Parameters
Parameter
Description
namedBuildTarget
Named build target
enable
Value inidiating capture state
Description
Set whether a given build target is con... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aad0369d2890 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.ExternalForcesModule.AddInfluence`. | uence
Declaration
public void
AddInfluence
(
ParticleSystemForceField
field
);
Parameters
Parameter
Description
field
The Force Field to add to the influencers list.
Description
Adds a
ParticleSystemForceField
to the influencers list.
When
influenceFilter
is set to
ParticleSystemGameObjectFilter.Li... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_55d83656dd77 | unity_docs | scripting | What is `PrefabUtility.IsPrefabAssetMissing` in Unity? Explain its purpose and usage. | PrefabUtility.IsPrefabAssetMissing
Declaration
public static bool
IsPrefabAssetMissing
(
Object
instanceComponentOrGameObject
);
Parameters
Parameter
Description
instanceComponentOrGameObject
The object to check. Must be a component or GameObject.
Returns
bool
True if the given object is part of a Prefa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f9e06d413635_doc_3 | github | scripting | What does `ShowOverrideBoolValueProperty` do in this Unity script? Explain its purpose and signature. | overrideの有無をプロパティとして表示する。
Signature:
```csharp
public static void ShowOverrideBoolValueProperty(Rect position, SerializedProperty property)
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_3704eeea9c05 | unity_docs | scripting | What is `Experimental.GraphView.FreehandSelector.ctor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
FreehandSelector Constructor
Declaration
public
FreehandSelector
();
Description
FreehandSelector constructor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e8b1cc4a510d | unity_docs | editor | Give me an overview of the `PlayModeWindow` class in Unity. | PlayModeWindow
class in
UnityEditor
Description
Class containing methods to interact with the selected Unity PlayModeView (GameView, Simulator).
Static Methods
Method
Description
GetPlayModeFocused
Returns the enter play mode behavior for the selected PlayModeView.
GetRenderingResolution
Retrieves the current... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fd3b3c567ca2 | unity_docs | ui | In Unity's 'Style text with USS', what is 'Style text in USS and UXML' and how does it work? | Text properties
are regular USS style properties. You can set text style properties on any element. Unlike most USS style properties, text style properties propagate to child elements.
The following USS example styles the Label text to bold and italic, and has a font size of
39px
:
```
Label {
-unity-font-style: bold-... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ff2117c3f64d | unity_docs | rendering | What is `ShaderKeywordFilter.FilterAttribute` in Unity? Explain its purpose and usage. | FilterAttribute
class in
UnityEditor.ShaderKeywordFilter
Description
Tell the shader system which shader keywords to include or remove from the build, based on the data field underneath.
This is the base filter attribute class. Use the derived attributes instead:
SelectIfAttribute
SelectIfNotAttribute
RemoveIf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6bcaf11b9c08 | unity_docs | scripting | What is `Search.IQueryEngineFilter.usesParameter` in Unity? Explain its purpose and usage. | IQueryEngineFilter.usesParameter
public bool
usesParameter
;
Description
Indicates if the filter uses a parameter.
This flag is set to true when a filter is created with the parameter option. See
AddFilter
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9f813344cf3e | unity_docs | rendering | Show me a Unity C# example demonstrating `ComputeShader.IsKeywordEnabled`. | ote:
A
LocalKeyword
is specific to a single
Shader
or
ComputeShader
instance. You cannot use it with other
Shader
or
ComputeShader
instances, even if they declare keywords with the same name.
This example iterates over the local shader keywords in the local keyword space for a compute shader. It determines w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3fe959ef46ad | unity_docs | editor | Show me a Unity code example for 'Create a 3D texture via script'. | Use the Texture3D API to create a 3D texture via script.
For example:
```
// Set the texture parameters
int size = 32;
TextureFormat format = TextureFormat.RGBA32;
bool mipChain = false;
// Create a 3D texture with a width, height and depth of 32 pixels
Texture3D texture = new Texture3D(size, size, size, format, mipCh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a57fc2453b78 | unity_docs | scripting | Explain 'Create a binding with the Inspector' in Unity. | Version
: 2021.3+
The example demonstrates how to create bindings among a custom Inspector , a custom Editor, and serialized objects.
## Example overview
This example creates the following:
A custom Inspector UI component with two fields that bind to a
GameObject
’s name and the scale of a USS transform.
A custom Edi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9a096976555d | unity_docs | physics | Show me a Unity C# example demonstrating `RaycastHit.rigidbody`. | RaycastHit.rigidbody
public
Rigidbody
rigidbody
;
Description
The
Rigidbody
of the collider that was hit. If the collider is not attached to a rigidbody then it is
null
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Apply a force to a clicked rigidbody object. // The force applied... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45d23e202c71 | unity_docs | rendering | What is `Shader.GetGlobalVector` in Unity? Explain its purpose and usage. | Shader.GetGlobalVector
Declaration
public static
Vector4
GetGlobalVector
(string
name
);
Declaration
public static
Vector4
GetGlobalVector
(int
nameID
);
Parameters
Parameter
Description
nameID
The name ID of the property retrieved by
Shader.PropertyToID
.
name
The name of the property.
Descrip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_446c2f75de9a | unity_docs | editor | In Unity's 'Introduction to debugging Unity in Windows', what is 'Unity symbols' and how does it work? | Symbols provide debugging information including function names, variable names, and source code line numbers. This information helps a debugger (like WinDbg or Visual Studio) map low-level memory addresses back to readable, human-friendly data.
Unity’s Symbol Store (
http://symbolserver.unity3d.com/
) provides debuggin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e53ea2c5d321 | unity_docs | ui | What is `EditorGUILayout.IntSlider` in Unity? Explain its purpose and usage. | EditorGUILayout.IntSlider
Declaration
public static int
IntSlider
(int
value
,
int
leftValue
,
int
rightValue
,
params GUILayoutOption[]
options
);
Declaration
public static int
IntSlider
(string
label
,
int
value
,
int
leftValue
,
int
rightValue
,
params GUILayoutOption[]
options
);
Declaration
publ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_b600976bde5a | github | scripting | Write a Unity C# script called Dynamic Move Provider | ```csharp
using Unity.XR.CoreUtils;
using UnityEngine.Assertions;
using UnityEngine.XR.Interaction.Toolkit.Locomotion.Movement;
namespace UnityEngine.XR.Interaction.Toolkit.Samples.StarterAssets
{
/// <summary>
/// A version of continuous movement that automatically controls the frame of reference that
///... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
gh_2329a7941cc1_doc_16 | github | scripting | What does `SetGameObject` do in this Unity script? Explain its purpose and signature. | Attaches a game object that represents an interactor for a state, to a state.The state that we're attaching the game object toThe game object that represents the interactor for that state.
Signature:
```csharp
public void SetGameObject(ControllerStates state, GameObject parentGamObject)
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0caea1b00e2f | unity_docs | ui | What is `UIElements.Image.image` in Unity? Explain its purpose and usage. | Image.image
public
Texture
image
;
Description
The texture to display in this image. If you assign a
Texture
or
Texture2D
, the Image element will resize and show the assigned texture.
The following example creates an
Image
element and assigns a texture to it.
```csharp
using UnityEngine;
using ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f9873d9ebdc9 | unity_docs | editor | Show me a Unity code example for 'Install Unity from the command line'. | TH
Sets the default installation directory. Use with the silent installation option. The default folder is
C:\Program Files (x86)\Unity
(32-bit) or
C:\Program Files\Unity
(64-bit).
Note
: Installer command line arguments are case-sensitive.
## Install the Unity Editor
To install the Editor to the
/Applications/Unity
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7c4d945cf942 | unity_docs | math | What is `AndroidJNI.SetSByteArrayElement` in Unity? Explain its purpose and usage. | AndroidJNI.SetSByteArrayElement
Declaration
public static void
SetSByteArrayElement
(IntPtr
array
,
int
index
,
sbyte
val
);
Description
Sets the sbyte value of one element in a primitive array.
This function is a special case of SetByteArrayRegion(), called with region size set to 1.
Additional resources:
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_815e21fc42f1 | unity_docs | scripting | Show me a Unity C# example demonstrating `Awaitable.BackgroundThreadAsync`. | Awaitable.BackgroundThreadAsync
Declaration
public static BackgroundThreadAwaitable
BackgroundThreadAsync
();
Returns
BackgroundThreadAwaitable
Awaitable object that completes when switching to a background thread.
Description
Resumes execution on a ThreadPool background thread. Completes immediately when ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_61a951a18bc5 | unity_docs | editor | What is `AssetImporter.GetExternalObjectMap` in Unity? Explain its purpose and usage. | AssetImporter.GetExternalObjectMap
Declaration
public Dictionary<SourceAssetIdentifier,Object>
GetExternalObjectMap
();
Returns
Dictionary<SourceAssetIdentifier,Object>
The map between a sub-asset and an external Asset.
Description
Gets a copy of the external object map used by the AssetImporter.
Changing... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_276d6af79b76 | unity_docs | scripting | What is `SearchService.ProjectSearchContext.requiredTypes` in Unity? Explain its purpose and usage. | ProjectSearchContext.requiredTypes
public IEnumerable<Type>
requiredTypes
;
Description
An IEnumerable of types that contains the type constraints for this search.
This IEnumerable can be null or empty. If it is not empty, but contains null values, you can find the required type for the search in the SearchServ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e69fd4a48472 | unity_docs | animation | What is `Avatar` in Unity? Explain its purpose and usage. | Avatar
class in
UnityEngine
/
Inherits from:
Object
/
Implemented in:
UnityEngine.AnimationModule
Description
Avatar definition.
Additional resources:
Animator.avatar
,
AvatarBuilder
.
Properties
Property
Description
humanDescription
Returns the HumanDescription used to create this Avatar.
isHuman
Ret... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f6b4d28c5781 | unity_docs | rendering | What is `TrailRenderer.AddPosition` in Unity? Explain its purpose and usage. | TrailRenderer.AddPosition
Declaration
public void
AddPosition
(
Vector3
position
);
Parameters
Parameter
Description
position
The position to add to the trail.
Description
Adds a position to the trail.
Additional resources:
AddPositions
function. | 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.