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_man_e38a03f104dc | unity_docs | rendering | Explain 'HDR in the Built-in Render Pipeline' in Unity. | Support for HDR in the Built-In
Render Pipeline
depends on the
rendering path
in use.
## Forward Rendering
In the
Forward rendering
path, a Camera only supports HDR if you have a
post-processing
effect on the Camera. This is due to performance considerations. If you have no post-processing effect on the Camera, the s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7ab5f26e6716 | unity_docs | scripting | What is `Events.UnityEventBase.GetPersistentMethodName` in Unity? Explain its purpose and usage. | UnityEventBase.GetPersistentMethodName
Declaration
public string
GetPersistentMethodName
(int
index
);
Parameters
Parameter
Description
index
Index of the listener to query.
Description
Get the target method name of the listener at index index. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e129464297e7 | unity_docs | scripting | What is `Overlays.Overlay.floatingPositionChanged` in Unity? Explain its purpose and usage. | Overlay.floatingPositionChanged
Parameters
Parameter
Description
value
A callback accepting the new overlay position.
Description
This event is invoked when
Overlay.floatingPosition
is changed.
See
Overlay.floatingPosition
for more information on
Overlay
placement. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bb83c02efd6b | unity_docs | editor | What is `AssetDatabase.CanConnectToCacheServer` in Unity? Explain its purpose and usage. | AssetDatabase.CanConnectToCacheServer
Declaration
public static bool
CanConnectToCacheServer
(string
ip
,
ushort
port
);
Parameters
Parameter
Description
ip
The IP address of the Cache Server.
port
The Port number of the Cache Server.
Returns
bool
Returns true when Editor can connect to the Cache Serv... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1c4c81e8f474 | unity_docs | rendering | Give me an overview of the `ILightingExplorerExtension` class in Unity. | ILightingExplorerExtension
interface in
UnityEditor
Description
Interface for when you extend the Lighting Explorer. Used in full overrides of the default behavior.
Public Methods
Method
Description
GetContentTabs
Returns the tabs that you have selected to display in the Lighting Explorer.
OnDisable
This is c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65cec578d09c | unity_docs | scripting | What is `UIElements.StyleScale` in Unity? Explain its purpose and usage. | StyleScale
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Implements interfaces:
IStyleValue<T0>
Description
Style value that can be either a
Scale
or a
StyleKeyword
.
Properties
Property
Description
keyword
The style keyword.
value
The Scale value.
Construct... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ea639dd8d0c | unity_docs | rendering | What is `Sprites.SpriteUtility.GetSpriteUVs` in Unity? Explain its purpose and usage. | SpriteUtility.GetSpriteUVs
Declaration
public static Vector2[]
GetSpriteUVs
(
Sprite
sprite
,
bool
getAtlasData
);
Parameters
Parameter
Description
sprite
If
Sprite
is packed, it is possible to access data as if it was on the atlas texture.
Description
Returns the generated
Sprite
mesh uvs. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b6de0fbaaa5f | unity_docs | physics | What is `UIElements.Foldout.SetValueWithoutNotify` in Unity? Explain its purpose and usage. | Foldout.SetValueWithoutNotify
Declaration
public void
SetValueWithoutNotify
(bool
newValue
);
Parameters
Parameter
Description
newValue
The new value of the foldout
Description
Sets the value of the Foldout's Toggle sub-element, but does not notify the rest of the hierarchy of the change.
This is usef... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d9090092be0a | unity_docs | xr | What is `Experimental.GraphView.GraphView.nodeCreationRequest` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphView.nodeCreationRequest
public Action<NodeCreationContext>
nodeCreationRequest
;
Description
Callback for when the user requests to display the node creation window. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a3445d869834 | github | scripting | Write a Unity C# XR/VR script for Singleton | ```csharp
/*
* Unity Singleton MonoBehaviour
* This file is licensed under the terms of the MIT license.
*
* Copyright (c) 2014 Kleber Lopes da Silva (http://kleber-swf.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files ... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_7aa9c5959e1f | unity_docs | editor | Show me a Unity C# example demonstrating `EditorApplication.applicationPath`. | h
public static string
applicationPath
;
Description
Gets the path to the Unity Editor application. (Read Only)
The path to the Unity Editor can vary depending on your configuration. If you installed the 2021.3 Editor from the Hub on Windows, you might have a path like this:
C:/Program Files/Unity/Hub/Editor/2... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_719e0104fe7e | unity_docs | math | What is `Pool.ListPool_1` in Unity? Explain its purpose and usage. | ListPool<T0>
class in
UnityEngine.Pool
/
Inherits from:
Pool.CollectionPool_2
/
Implemented in:
UnityEngine.CoreModule
Description
A version of
CollectionPool<T0,T1>
for Lists.
```csharp
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Pool;// This example shows how both version of Get... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad49d6c246f2 | unity_docs | rendering | What is `GUILayout.BeginArea` in Unity? Explain its purpose and usage. | GUILayout.BeginArea
Declaration
public static void
BeginArea
(
Rect
screenRect
);
Declaration
public static void
BeginArea
(
Rect
screenRect
,
string
text
);
Declaration
public static void
BeginArea
(
Rect
screenRect
,
Texture
image
);
Declaration
public static void
BeginArea
(
Rect
screenRec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_101b710f48b9 | unity_docs | math | What is `Graphics.RenderPrimitivesIndirect` in Unity? Explain its purpose and usage. | Graphics.RenderPrimitivesIndirect
Declaration
public static void
RenderPrimitivesIndirect
(ref
RenderParams
rparams
,
MeshTopology
topology
,
GraphicsBuffer
commandBuffer
,
int
commandCount
= 1,
int
startCommand
= 0);
Parameters
Parameter
Description
rparams
The parameters Unity uses to render th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5993df65a675 | unity_docs | scripting | In Unity's 'Introduction to asynchronous programming with Awaitable', what is 'Awaitable, Task, and ValueTask summary' and how does it work? | The following table summarizes the feature comparison between Unity’s Awaitable class and .NET Task and
ValueTask
:
Feature Task ValueTask
UnityEngine.Awaitable
Required allocations
Many
.
Allocates on every call to a
Task
-returning method, increasing memory use and garbage collector workload.
As-needed
.
Can be optim... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7895142d7aa0 | unity_docs | editor | What is `Build.Content.BuildSettings` in Unity? Explain its purpose and usage. | BuildSettings
struct in
UnityEditor.Build.Content
Description
Struct containing information on how to build content.
Note: this struct and its members exist to provide low-level support for the
Scriptable Build Pipeline
package. This is intended for internal use only; use the
Scriptable Build Pipeline package
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7088ec6848b6 | unity_docs | xr | What is `ShaderUtil.SetAsyncCompilation` in Unity? Explain its purpose and usage. | ShaderUtil.SetAsyncCompilation
Declaration
public static void
SetAsyncCompilation
(
Rendering.CommandBuffer
cmd
,
bool
allow
);
Parameters
Parameter
Description
cmd
Target CommandBuffer.
allow
Is async Shader compilation allowed or not.
Description
Adds shader compilation mode command in the CommandBuf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6281a40e5572 | unity_docs | audio | What is `AudioSpeakerMode.Prologic` in Unity? Explain its purpose and usage. | AudioSpeakerMode.Prologic
Description
Stereo output, but data is encoded in a way that is picked up by a Pro Logic or Pro Logic 2 decoder and split into a 5.1 speaker setup.
The Pro Logic speaker mode is a surround matrix (up to 5 channels) encoded into 2-channel stereo (Dolby Pro Logic–style). Channel count is set... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d7f80014f470 | unity_docs | editor | In Unity's 'Save your work', what is 'Project-wide changes' and how does it work? | Project-wide changes in Unity apply to your entire project rather than a specific scene. For example, if you create a temporary scene to test changes, you can save the project and not the scene.
Project-wide changes include:
Project Settings
: When you save your project, Unity saves changes to the Project Settings in t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9cda9c8470d9 | unity_docs | scripting | What is `Windows.Speech.PhraseRecognizer.Dispose` in Unity? Explain its purpose and usage. | PhraseRecognizer.Dispose
Declaration
public void
Dispose
();
Description
Disposes the resources used by phrase recognizer.
Calling this method will make the phrase recognizer stop functioning. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7ebb3ddec03d | unity_docs | performance | What is `PlayerSettings.graphicsJobs` in Unity? Explain its purpose and usage. | PlayerSettings.graphicsJobs
public static bool
graphicsJobs
;
Description
Enable graphics jobs (multi threaded rendering).
This enables rendering code to be split and run in parallel on multiple cores on multi core machines. This is stored as a platform specific property and acts upon the currently active buil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_064e6719697d | github | scripting | Write a Unity C# UI script for Vertex Color Cycler | ```csharp
using UnityEngine;
using System.Collections;
namespace TMPro.Examples
{
public class VertexColorCycler : MonoBehaviour
{
private TMP_Text m_TextComponent;
void Awake()
{
m_TextComponent = GetComponent<TMP_Text>();
}
void Start()
{
... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_710005370dab | unity_docs | scripting | What is `Build.Reporting.ScenesUsingAssets` in Unity? Explain its purpose and usage. | ScenesUsingAssets
class in
UnityEditor.Build.Reporting
/
Inherits from:
Object
Description
An extension to the
BuildReport
class that tracks which scenes in the build have references to a specific asset in the build.
The build process generates this information when
BuildOptions.DetailedBuildReport
is used ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e453b234aab | unity_docs | scripting | What is `Events.UnityEventBase` in Unity? Explain its purpose and usage. | UnityEventBase
class in
UnityEngine.Events
/
Implemented in:
UnityEngine.CoreModule
Implements interfaces:
ISerializationCallbackReceiver
Description
Abstract base class for UnityEvents.
This class provides the base functionality for the UnityEvents.
Public Methods
Method
Description
GetPersistentEventCoun... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7d1872ef532c_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The Pickup is a spinning yellow cube which the playercan collide with to collect to earn points
Signature:
```csharp
public class Pickup : MonoBehaviour
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_281d837a8228 | unity_docs | scripting | What is `Assertions.Assert.IsTrue` in Unity? Explain its purpose and usage. | Assert.IsTrue
Declaration
public static void
IsTrue
(bool
condition
);
Declaration
public static void
IsTrue
(bool
condition
,
string
message
);
Parameters
Parameter
Description
message
The string used to describe the
Assert
.
condition
true
or
false
.
Description
Asserts that the condition is t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_79b2bca7572f | unity_docs | rendering | In Unity's 'Asset packs in Unity', what is 'Custom asset packs' and how does it work? | If you want to control which non-code resources are in a particular asset pack, you can create a custom asset pack. Unlike Unity-generated asset packs, you can set the delivery mode for custom asset packs. If you create a custom asset pack, be aware that the Google Play Store has size and quantity limits for asset pack... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_820c9ed9ba6a | unity_docs | physics | Show me a Unity C# example demonstrating `MonoBehaviour.OnJointBreak`. | Called when a joint attached to the same game object broke.
When a force that is higher than the breakForce of the joint, the joint will break off.
When the joint breaks off, OnJointBreak will be called and the break force applied to the joint will be passed in.
After OnJointBreak the joint will automatically be remov... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e7c149f4626e | unity_docs | animation | What is `Animations.ParentConstraint.rotationOffsets` in Unity? Explain its purpose and usage. | ParentConstraint.rotationOffsets
public Vector3[]
rotationOffsets
;
Description
The rotation offsets from the constrained orientation.
The rotation offsets are relative to the source orientations. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_93ac23e8756f | unity_docs | rendering | Show me a Unity code example for 'Get the current framebuffer with the GrabPass command in the Built-In Render Pipeline'. | b the contents of other render targets, the
depth buffer
, and so on.
## Examples
This example for the Built-in
Render Pipeline
demonstrates using GrabPass to invert the colors of the render target. Note that this is not an efficient way to achieve this effect, and is intended only to demonstrate the use of GrabPass;... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2a311b2b3f69_doc_3 | github | scripting | What does `Awake` do in this Unity script? Explain its purpose and signature. | Checks if is , and if yes, sets it to this instance.If no, destroys the current .
Signature:
```csharp
protected virtual void Awake()
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_e66dc78f4791 | unity_docs | rendering | Explain 'Introduction to lens flare effects' in Unity. | Understand how Unity manages
lens flares
, which simulate the effect of lights refracting inside a camera lens. Use them to represent bright lights or to add a bit more atmosphere to your
Scene
.
## Flares
A Flare asset allows you to create and configure the appearance of lens flares.
Flares work by containing severa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a8fd01a3846b | unity_docs | editor | What is `PluginImporter.GetEditorData` in Unity? Explain its purpose and usage. | PluginImporter.GetEditorData
Declaration
public string
GetEditorData
(string
key
);
Parameters
Parameter
Description
key
Key value for data.
Description
Returns editor specific data for specified key. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b2b42bdb6e50 | unity_docs | rendering | Explain 'Apply GPU instancing for a Particle System in the Built-In Render Pipeline' in Unity. | GPU instancing offers a large performance boost compared with CPU rendering. You can use it if you want your particle system to render Mesh particles (as opposed to the default
rendering mode
of rendering billboard particles).
To be able to use GPU instancing with your
particle systems
:
Set your Particle System’s rend... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_177778e82b95 | github | scripting | Write a Unity C# MonoBehaviour script called World Contexts Manager | ```csharp
using TinyECS.Interfaces;
using TinyECS.Impls;
using UnityEngine;
using TinyECSUnityIntegration.Interfaces;
namespace TinyECSUnityIntegration.Impls
{
/// <summary>
/// class WorldContextsManager
///
/// The class represents a manager that provides references to existing worlds contexts.
... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_b7683fcdab31 | unity_docs | rendering | Explain 'Render a camera view to a Render Texture' in Unity. | A
Render Texture
is a type of Texture that Unity creates and updates at run time. To use a Render Texture, create a new Render Texture using
Assets > Create > Render Texture
and assign it to
Target Texture
in your Camera component. Then you can use the Render Texture in a Material just like a regular Texture.
To create... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_02d41e991369 | unity_docs | editor | What is `iOS.Xcode.PBXProject.AddAssetTagToDefaultInstall` in Unity? Explain its purpose and usage. | PBXProject.AddAssetTagToDefaultInstall
Declaration
public void
AddAssetTagToDefaultInstall
(string
targetGuid
,
string
tag
);
Parameters
Parameter
Description
targetGuid
The GUID of the target, such as the one returned by
TargetGuidByName
.
tag
The name of the asset tag.
Description
Adds the asset tag ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d8e92affad83 | unity_docs | rendering | In Unity's 'Android Player settings', what is 'Icon' and how does it work? | Use the Icon section to specify icons to represent your application on the device.
Setting Description Adaptive
Specify textures of various sizes to represent your application on devices running Android 8.0 (API level 26) or higher. For more information, refer to the Android documentation on
Adaptive icons
.
Round
Spec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c29a82fd46ee | unity_docs | editor | What are the parameters of `PrefabUtility.GetOriginalSourceRootWhereGameObjectIsAdded` in Unity? | Returns GameObject The Prefab Asset root where the input GameObject was added. Description Use this method to find the Prefab Asset root where a Prefab instance or Prefab Asset object was added originally. Use this method to find the "original source" where the input object was added. This is useful in situations where... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e8f010208dc4 | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.Android.appCategory`. | ic string
appCategory
;
Description
Specify the category for your application that best represents its primary functionality.
Refer to the
Android documentation
for the available category options.
Notes:
For new projects, this property is enabled and set to
Game
by default.
For existing projects with
Playe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a4765ecb7aa5 | unity_docs | editor | Give me an overview of the `GenericMenu` class in Unity. | GenericMenu
class in
UnityEditor
Description
GenericMenu lets you create custom context menus and dropdown menus.
The example below opens an Editor window with a button. Clicking the button displays a context menu, which lets you change the color to apply to the GUI in the window. Copy the example's contents into... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_db6fb6c840d4 | unity_docs | scripting | What is `Experimental.GraphView.Edge.showInMiniMap` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Edge.showInMiniMap
public bool
showInMiniMap
;
Description
Whether the GraphElement is shown in the minimap. For Edge, this property is always set to false. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4543fbf9dcf4 | unity_docs | physics | What is `Rigidbody2D.Distance` in Unity? Explain its purpose and usage. | Rigidbody2D.Distance
Declaration
public
ColliderDistance2D
Distance
(
Collider2D
collider
);
Parameters
Parameter
Description
collider
A collider used to calculate the minimum distance against all colliders attached to this
Rigidbody2D
.
Returns
ColliderDistance2D
The minimum distance of
collider
a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_046fdf2c828c | unity_docs | editor | What is `Rendering.GraphicsTier.Tier2` in Unity? Explain its purpose and usage. | GraphicsTier.Tier2
Description
The medium graphics tier. Corresponds to mid-range devices.
Note:
Graphics tiers are only supported in the Built-in Render Pipeline.
For information on which devices this graphics tier corresponds to, and how to work with graphics tiers, see
Graphics tiers
.
Additional resources:
G... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_130d44e901da | unity_docs | physics | Show me a Unity C# example demonstrating `ApplicationTitleDescriptor`. | ApplicationTitleDescriptor
class in
UnityEditor
Description
Utility class containing all the information necessary to format Unity Editor main window title. All the various fields are concatenated to create a fully formed title. If only
ApplicationTitleDescriptor.title
is provided, this will become the complete ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13bd3a36029e | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUI.FocusTextInControl`. | using the up and down arrow keys. Once you click inside the text field, editing of the text itself begins and the arrow keys are then used to navigate the text content.
EditorGUI.FocusTextInControl
is like
GUI.FocusControl
in that it gives keyboard focus to a control, but it also begins editing of the text itself.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_42cd0b3791ae | unity_docs | input | What is `TouchScreenKeyboard.canSetSelection` in Unity? Explain its purpose and usage. | TouchScreenKeyboard.canSetSelection
public bool
canSetSelection
;
Description
Specifies whether the TouchScreenKeyboard supports the
selection
property. (Read Only)
This property is supported on Android, iOS, and UWP only. On unsupported platforms, this property always returns false. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f5df06b347c | unity_docs | scripting | What is `ScriptableSingleton_1.Save` in Unity? Explain its purpose and usage. | ScriptableSingleton<T0>.Save
Declaration
protected void
Save
(bool
saveAsText
);
Parameters
Parameter
Description
saveAsText
If true then the file is saved as text, if false it is saved as binary.
Description
Saves the current state of the ScriptableSingleton.
Call
Save
to save the current state of the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3fc186c84eea | github | scripting | Write a Unity C# XR/VR script for AR Interactor Spawn Trigger | ```csharp
#if AR_FOUNDATION_PRESENT
using UnityEngine.EventSystems;
using UnityEngine.XR.ARFoundation;
using UnityEngine.XR.ARSubsystems;
using UnityEngine.XR.Interaction.Toolkit.Inputs.Readers;
using UnityEngine.XR.Interaction.Toolkit.Interactors;
using UnityEngine.XR.Interaction.Toolkit.Samples.StarterAssets;
namesp... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
gh_f522b91ce703_doc_8 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Represents an object which can receive nine arguments as part of its initialization process.-derived classes that implement this interface can be instantiated with their dependency using the function.-derived classes that implement this interface can be added to a with their dependency using the function.If the class ... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_54bbf1a7de6c | unity_docs | scripting | What is `Color.blue` in Unity? Explain its purpose and usage. | Color.blue
public static
Color
blue
;
Description
Solid blue. RGBA is (0, 0, 1, 1).
```csharp
//Attach this script to a GameObject with a Renderer (go to Create>3D Object and select one of the first 6 options to create a GameObject with a Renderer automatically attached).
//This script changes the Color of yo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8c1c155da6a8 | unity_docs | scripting | What are the parameters of `EditorGUI.Vector3Field` in Unity? | Returns Vector3 The value entered by the user. Description Makes an X, Y, and Z field for entering a Vector3 . Vector3 field in an Editor Window. ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;// Editor window that shows the detailed rotation (X,Y,Z and W comp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_50304e89ac2d | unity_docs | editor | What are the parameters of `Profiling.HierarchyFrameDataView.GetItemMergedSamplesMetadata` in Unity? | Returns string Returns value of the metadata as string. Description Returns string representation of hierarchy item metadata value. Use to get a string metadata value of the specific hierarchy view item. ```csharp
using System.Text;
using UnityEditor.Profiling;public class Example
{
public static string GetFormatte... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0d48621a8e36 | unity_docs | performance | In Unity's 'Unmanaged C# memory', what is 'Temp' and how does it work? | Temp
is Unity’s temporary allocator type. It’s designed for small short lived allocations that can’t cross a frame boundary, such as temporary allocations made within a single job. The Temp type is a stack type allocator for small amounts of memory which Unity allocates from the main memory pool.
There are multiple Tem... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8dca725286ee | unity_docs | physics | What is `Diagnostics.ForcedCrashCategory` in Unity? Explain its purpose and usage. | ForcedCrashCategory
enumeration
Description
Specifies the category of crash to cause when calling ForceCrash().
Properties
Property
Description
AccessViolation
Cause a crash by performing an invalid memory access.The invalid memory access is performed on each platform as follows:
FatalError
Cause a crash using... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e1e591c2c990 | unity_docs | rendering | What is `TextureImporter.ReadTextureImportInstructions` in Unity? Explain its purpose and usage. | TextureImporter.ReadTextureImportInstructions(TextureImportInstructions)
Description
Reads the active texture output instructions of this
TextureImporter
.
This can be used for ISpritePackerPolicy grouping. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6222aa70e933 | unity_docs | editor | Show me a Unity code example for 'Apply styles in C# scripts'. | You can write to style to set style values to an element. However, to get the actually rendered styles of an element, read from
resolvedStyle
.
## Set styles
In a C# script, you can set styles directly to the style properties of a
visual element
. For example, the following code sets the background color of a button ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2e1156a3b686 | unity_docs | scripting | What is `Unity.Android.Gradle.JavaVersion` in Unity? Explain its purpose and usage. | JavaVersion
enumeration
Description
The C# definition of the
JavaVersion
element in a gradle file.
Properties
Property
Description
Null
Java version value is unset.
Version_1_1
Java version value JavaVersion.VERSION_1_1.
Version_1_2
Java version value JavaVersion.VERSION_1_2.
Version_1_3
Java version value... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_29b8a62c7b4b | github | scripting | Write a Unity Editor script for Read Only Drawer | ```csharp
using RMC.Core.Attributes;
using UnityEditor;
using UnityEngine;
namespace RMC.Core.PropertyDrawers
{
/// <summary>
/// Reference: https://answers.unity.com/questions/489942/how-to-make-a-readonly-property-in-inspector.html
/// </summary>
[CustomPropertyDrawer(typeof(ReadOnlyAttribute))]
public class R... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_0ff6848fa057 | unity_docs | rendering | Explain 'Create trees with Tree Editor' in Unity. | Use
Tree Editor
to design trees directly within the Unity Editor. You can create trees from scratch, or by duplicating existing trees. You can also create a tree or leaves from imported meshes.
For most uses, the SpeedTree Modeler replaces the Tree Editor. For backward compatibility with content created before SpeedTre... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3625612c6bcb | unity_docs | animation | What is `Animations.AnimatorControllerPlayable.Play` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable.Play
Declaration
public void
Play
(string
stateName
,
int
layer
= -1,
float
normalizedTime
= float.NegativeInfinity);
Declaration
public void
Play
(int
stateNameHash
,
int
layer
= -1,
float
normalizedTime
= float.NegativeInfinity);
Parameters
Parameter
Description
state... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1b631793b88c | unity_docs | rendering | Show me a Unity code example for 'Application patching'. | In the
Build to Device
setting, select Patch or, if you want to run the patch after Unity finishes building it,
Patch And Run
.
## Using the scripting API
If you implement your own build pipeline, you can use the scripting API to patch your application. To do this, pass the
BuildOptions.BuildScriptsOnly and BuildOpti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2e56c8b9098f | unity_docs | scripting | What is `Accessibility.AccessibilitySettings.fontScale` in Unity? Explain its purpose and usage. | AccessibilitySettings.fontScale
public static float
fontScale
;
Description
Gets the font scale set by the user in the system settings.
For all the supported platforms, refer to
AccessibilitySettings
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f0c5b7a85932 | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.AddRemotePackageReferenceAtRevision` in Unity? | Returns string Returns the GUID of the remote package reference. Description Adds a reference to the remote package at the given revision. ```csharp
using UnityEditor;
using System.IO;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;public class Sample_AddRemotePackageReferenceAtRevision
{
[PostProcessBu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_631922c40522_doc_0 | github | scripting | What does `InitWithResourcesLoader` do in this Unity script? Explain its purpose and signature. | Use this method to initialize the loader if you want to use Resources for loading assets.
Signature:
```csharp
public static void InitWithResourcesLoader()
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9a1e7b74bb0e | unity_docs | networking | In Unity's 'Web networking', what is 'Use the UnityWebRequest class in Web' and how does it work? | Unity supports the UnityWebRequest class in Web. To implement the UnityWebRequest class, Unity uses the JavaScript Fetch API, which uses the browser to handle web requests. This imposes security restrictions on accessing cross-domain resources.
If you send a web request to a server other than the one that hosts the Uni... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_413050c2aae5 | unity_docs | physics | In Unity's 'Time', what is 'Details' and how does it work? | The
Time Manager
lets you set properties globally, but it is often useful to set them from a script during gameplay (for example, setting
Time Scale
to zero is a useful way to pause the game). Refer to the page on
Time and frame rate management
for full details of how time can be managed in Unity. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_017f70b87106 | unity_docs | scripting | Show me a Unity C# example demonstrating `Color.Lerp`. | t
);
Parameters
Parameter
Description
a
Color a.
b
Color b.
t
Float for combining a and b.
Description
Linearly interpolates between colors
a
and
b
by
t
.
t
is clamped between 0 and 1. When
t
is 0 returns
a
. When
t
is 1 returns
b
.
The code sample sets the color of a GameObject's material to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f02be15215e4 | unity_docs | scripting | Show me a Unity C# example demonstrating `Networking.UnityWebRequest.Post`. | ityWebRequest
. This is for convenience, as we anticipate most users will use the
DownloadHandler
to check replies from the server, particularly in the case of REST APIs.
The data in
postData
will be interpreted into a byte stream via
System.Text.Encoding.UTF8
. The resulting byte stream will be stored in an
Uplo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d2bab0b8f398 | github | scripting | Write a Unity C# MonoBehaviour script called Base Controller | ```csharp
using RMC.Core.Architectures.Umvcs.Context;
using RMC.Core.Architectures.Umvcs.Service;
using RMC.Core.Architectures.Umvcs.View;
using UnityEngine;
namespace RMC.Core.Architectures.Umvcs.Controller
{
public interface IUMVCSContainer { }
/// <summary>
/// TODO: Add comment
/// </summary>
public class B... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_0dfd1dd19d32 | unity_docs | rendering | What is `RenderSettings.defaultReflectionMode` in Unity? Explain its purpose and usage. | RenderSettings.defaultReflectionMode
public static
Rendering.DefaultReflectionMode
defaultReflectionMode
;
Description
Default reflection mode.
Unity can use a custom texture or generate a specular reflection texture from skybox.
Additional resources:
RenderSettings.defaultReflectionMode
,
The Lighting wind... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7291de03c1e9 | unity_docs | scripting | In Unity's 'Debug production Web builds', what is 'Use external symbols' and how does it work? | Enable external symbols in your Web build (menu:
Player Settings
>
Publishing Settings
>
Debug Settings
>
External
) to include function names in production stack traces. When you build with external symbols, Unity generates symbol files separately from the main build output.
When an uncaught JavaScript exception occur... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e55c65df6c7 | unity_docs | scripting | What is `LightTransport.RadeonRaysContext.IsCompleted` in Unity? Explain its purpose and usage. | RadeonRaysContext.IsCompleted
Declaration
public bool
IsCompleted
(
LightTransport.EventID
id
);
Parameters
Parameter
Description
id
ID of the event to query.
Returns
bool
True if the asynchronous operation has completed.
Description
Returns true if the asynchronous operation completed.
This method... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ecccb9bb00a9 | unity_docs | scripting | What is `UIElements.UxmlAttributeDescription` in Unity? Explain its purpose and usage. | UxmlAttributeDescription
class in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Base class for describing an XML attribute.
Properties
Property
Description
defaultValueAsString
The default value for the attribute, as a string.
name
The attribute name.
obsolete... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4c3875845c73 | unity_docs | scripting | What is `U2D.SpriteAtlas` in Unity? Explain its purpose and usage. | SpriteAtlas
class in
UnityEngine.U2D
/
Inherits from:
Object
/
Implemented in:
UnityEngine.CoreModule
Description
Sprite Atlas is an asset created within Unity. It is part of the built-in sprite packing solution.
A Sprite Atlas stores a list of packable assets. A packable asset is either a
Sprite
,
Texture2... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_63bd10092129 | unity_docs | physics | Give me an overview of the `AssetModificationProcessor` class in Unity. | AssetModificationProcessor
class in
UnityEditor
Description
AssetModificationProcessor lets you hook into saving of serialized assets and
scenes which are edited inside Unity.
This lets you prevent writing of assets by Unity for integration with VCS
solutions like Perforce which require locking of files.
This ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_54e8851841b7 | unity_docs | xr | In Unity's 'Finding package documentation', what is 'Getting documentation for the latest version' and how does it work? | Each version of the Unity Manual documentation provides a list of released and
pre-release
packages, a list of
built-in packages
, and a
list of packages by keyword
. Each list has links to the matching package documentation which you can use with that version of Unity.
Note
: Only packages that are compatible with the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1bca25cf65a9 | unity_docs | editor | What are the parameters of `EditorGUI.IntPopup` in Unity? | Returns int The value of the option that has been selected by the user. Description Makes an integer popup selection field. Takes the currently selected integer as a parameter and returns the integer selected by the user. Int Popup in an Editor Window. ```csharp
using UnityEngine;
using UnityEditor;
// Multiplies the s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1e9b8567c053 | unity_docs | scripting | Explain 'Building and delivering for iOS' in Unity. | This section of the User Manual explains how to build and publish an iOS application.
Topic Description Build an iOS application
Describes the process to build your Unity application for iOS.
iOS build settings reference
Reference documentation for iOS build settings.
App thinning
Explains how to setup your application... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_505a6fef7fd2 | unity_docs | editor | What are the parameters of `Search.ObjectIndexer.IndexWord` in Unity? | Description Adds a new word coming from a specific document to the index. The word will be added with multiple variations allowing partial search. The following example indexes a word that can be used to search indexed prefabs with myawesomeword , myawe , etc. ```csharp
[CustomObjectIndexer(typeof(GameObject))]
static ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_08c344421645 | unity_docs | scripting | Show me a Unity C# example demonstrating `Overlays.OverlayToolbar`. | OverlayToolbar
class in
UnityEditor.Overlays
/
Inherits from:
UIElements.VisualElement
Description
Base class for toolbar elements intended to be drawn in an
Overlay
.
Use this class with
ICreateHorizontalToolbar
and
ICreateVerticalToolbar
to build Overlays that are dockable in toolbars.
```csharp
using S... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82e231230bd3 | unity_docs | scripting | What is `Object.DontDestroyOnLoad` in Unity? Explain its purpose and usage. | Object.DontDestroyOnLoad
Declaration
public static void
DontDestroyOnLoad
(
Object
target
);
Parameters
Parameter
Description
target
An Object not destroyed on
Scene
change.
Description
Do not destroy the target Object when loading a new
Scene
.
The load of a new
Scene
destroys all current
Scene
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9ac10986d08d | unity_docs | math | What is `AndroidJNI.CallStaticCharMethod` in Unity? Explain its purpose and usage. | AndroidJNI.CallStaticCharMethod
Declaration
public static char
CallStaticCharMethod
(IntPtr
clazz
,
IntPtr
methodID
,
jvalue[]
args
);
Description
Invokes the specified
methodID
static method on a Java object, optionally passing in an array of arguments (
args
).
Additional resources:
Java Native Interfac... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_206e09543645 | unity_docs | scripting | Show me a Unity C# example demonstrating `TextMesh.font`. | TextMesh.font
public
Font
font
;
Description
The
Font
used.
Additional resources:
text mesh component
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// Set the text of the attached Text mesh
Font newFont = new Font();
GetComponent<TextMesh>().font = newFont;
}
}... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4bf0a68d9d77 | unity_docs | scripting | What is `Animator.SetIKRotation` in Unity? Explain its purpose and usage. | Animator.SetIKRotation
Declaration
public void
SetIKRotation
(
AvatarIKGoal
goal
,
Quaternion
goalRotation
);
Parameters
Parameter
Description
goal
The AvatarIKGoal that is set.
goalRotation
The rotation of the goal in world space which should follow Unity's world coordinates convention (see below).
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_029c789c00f9 | unity_docs | rendering | What is `ParticleSystem.Particle.randomSeed` in Unity? Explain its purpose and usage. | ParticleSystem.Particle.randomSeed
public uint
randomSeed
;
Description
The random seed of the particle.
Each particle has its own seed, in order to produce deterministic results during simulation. For example, if a particle uses a random color selected from a gradient, the seed ensures that the same color is ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_618204a7e623 | unity_docs | rendering | What is `EditorSettings` in Unity? Explain its purpose and usage. | EditorSettings
class in
UnityEditor
/
Inherits from:
Object
Description
User settings for Unity Editor.
Use EditorSettings to apply Editor Project Settings to your Unity Project. You can control settings such as version control, streaming settings, and Asset serialization.
Additional resources:
Editor Project ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a297c2cf7c7c | unity_docs | rendering | In Unity's 'Create a shader file', what is 'Create a shader file manually' and how does it work? | To define a Shader object in ShaderLab , use a Shader block. This page contains information on using Shader blocks.
For information on how a Shader object works, and the relationship between Shader objects, SubShaders and Passes, see
Shader objects introduction
.
This example code demonstrates the basic syntax and stru... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_781ba675b726 | unity_docs | scripting | Give me an overview of the `Undo` class in Unity. | Undo
class in
UnityEditor
Description
Lets you register undo operations on specific objects you are about to perform changes on.
The Undo system stores delta changes in the undo stack.
Undo operations automatically combine together based on events. For example, mouse down events split undo groups. Grouped undo op... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_49647f3ce38f | unity_docs | physics | What are the parameters of `PhysicsScene2D.OverlapCircle` in Unity? | Returns Collider2D The collider overlapping the circle. Description Checks a circle against Colliders in the PhysicsScene2D, returning the first intersection only. An "OverlapCircle" is conceptually like looking at the Scene through a circle shape to determine what can be seen. Any Collider2D seen can be detected and r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_050c8dad4419 | unity_docs | scripting | What is `TileBaseEditor` in Unity? Explain its purpose and usage. | TileBaseEditor
class in
UnityEditor
/
Inherits from:
Editor
Description
Default editor for
TileBase
assets.
Constructors
Constructor
Description
TileBaseEditor
Default editor for TileBase assets.
Public Methods
Method
Description
RenderStaticPreview
Creates a texture preview for rendering the TileBase ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5d87e0710c1d | unity_docs | scripting | What is `HumanPartDof` in Unity? Explain its purpose and usage. | HumanPartDof
enumeration
Description
Enumeration of all the parts in a human.
A human part is a region defining a set of muscles in a human, to get a specific muscle, it has to be used with another DoF enumerations.
Additional resources:
BodyDof
,
HeadDof
,
LegDof
,
ArmDof
, and
FingerDof
.
Properties
Prope... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dad9407707d1 | unity_docs | rendering | Explain 'Introduction to lighting data' in Unity. | Precomputed lighting data and baked lighting are not the same.
Baked lighting data is static. For example, the appearance of a GameObject can change as it moves around a
Light Probe
(if that GameObject has Contribute Global Illumination enabled). However, the data in the Light Probe itself does not change.
Unity can st... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68a5915f3079 | unity_docs | ui | What is `Tools.viewTool` in Unity? Explain its purpose and usage. | Tools.viewTool
public static
ViewTool
viewTool
;
Description
The option that is currently active for the View tool in the Scene view.
The View tool has options for Orbit, Pan, Zoom and FPS, depending on which combination mouse buttons and modifier keys is used. This property reports which option is currently ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fea10c4ecec9 | unity_docs | scripting | What is `ObjectChangeKind.ChangeGameObjectParent` in Unity? Explain its purpose and usage. | ObjectChangeKind.ChangeGameObjectParent
Description
A change of this type indicates that the parent of a
GameObject
has changed. This happens when
Undo.SetTransformParent
or
SceneManager.MoveGameObjectToScene
is used. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7ad7a5f3ab5b | unity_docs | physics | Explain 'Wheel collider suspension' in Unity. | The
Wheel collider component
has a set of properties that simulate a vehicle’s suspension system.
To simulate suspension, the Wheel collider sets a
Target Position
on the
Suspension Distance
line that it always tries to return the center to, and has Spring and Damper properties that affect how it moves away from that p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d8a60e3fbc65 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.GetBuildPhaseType`. | ildPhaseType
(string
phaseGuid
);
Parameters
Parameter
Description
phaseGuid
GUID of the phase.
Returns
string
The type of the build phase.
Description
Returns the type of the build phase with the specified GUID.
The defined build phase types are
PBXSourcesBuildPhase
,
PBXFrameworksBuildPhase
,
PBXR... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_216afdcf1f01 | unity_docs | scripting | What is `Experimental.Rendering.IScriptableBakedReflectionSystem.SynchronizeReflectionProbes` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
IScriptableBakedReflectionSystem.SynchronizeReflectionProbes
Declaration
public void
SynchronizeReflectionProbes
();
Description
Synchronize the baked data with the actual components and rendering settings. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0786761c0f8f | unity_docs | scripting | What is `Vector3.Dot` in Unity? Explain its purpose and usage. | Vector3.Dot
Declaration
public static float
Dot
(
Vector3
lhs
,
Vector3
rhs
);
Description
Dot Product of two vectors.
The dot product is a float value equal to the magnitudes of the two vectors multiplied together
and then multiplied by the cosine of the angle between them.
For
normalized
vectors Dot re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_532000ee71ae | unity_docs | audio | What is `AudioVelocityUpdateMode` in Unity? Explain its purpose and usage. | AudioVelocityUpdateMode
enumeration
Description
Describes when an
AudioSource
or
AudioListener
is updated.
Properties
Property
Description
Auto
Updates the source or listener in the FixedUpdate loop if it is attached to a Rigidbody, dynamic Update otherwise.
Fixed
Updates the source or listener in the Fixe... | 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.