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_edcd890d5d34 | unity_docs | editor | What is `EditorApplication.timeSinceStartup` in Unity? Explain its purpose and usage. | EditorApplication.timeSinceStartup
public static double
timeSinceStartup
;
Description
The time since the editor was started. (Read Only)
This property contains the time since the editor was started, in seconds.
Unlike
Time.realtimeSinceStartup
, this is not reset when starting play mode.
Additional resources:... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_01c8756e3b57 | unity_docs | audio | Show me a Unity C# example demonstrating `AudioClip.Create`. | in small chunks of data on demand. If it's false, Unity reads all the samples during the creation of the clip.
Note
: Unity expects you to pass an array with valid audio data (floating-point samples between -1.0 and 1.0) to
PCMReaderCallback
. If no audio data is available, you must fill the array with zeros. Otherwis... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_37b01aebeb1d | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R_EAC_UNorm` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R_EAC_UNorm
Description
A one-component, ETC2 compressed format where each 64-bit compressed texel block encodes a 4×4 rectangle of unsigned normalized red texel data. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f69544a0fc7c | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUI.PropertyScope`. | ializedProperty you can wrap them inside BeginProperty and EndProperty as shown in the example below.
You can use this for your own custom GUI controls too.
BeginProperty and EndProperty automatically handle default labels, bold font for Prefab overrides, revert to Prefab right click menu, and setting
showMixedValue
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45e2bbbdbeca | unity_docs | editor | What is `AssemblyReloadEvents` in Unity? Explain its purpose and usage. | AssemblyReloadEvents
class in
UnityEditor
Description
This class has event dispatchers for assembly reload events.
```csharp
using UnityEditor;
using UnityEngine;public class MyWindow : EditorWindow
{
[MenuItem("Test/Show My Window")]
static void Init()
{
GetWindow<MyWindow>();
} void OnEnable()
{
Assembly... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82897edf8c90 | unity_docs | scripting | What is `Unity.Hierarchy.Hierarchy.SetName` in Unity? Explain its purpose and usage. | Hierarchy.SetName
Declaration
public bool
SetName
(ref
Unity.Hierarchy.HierarchyNode
node
,
string
name
);
Parameters
Parameter
Description
node
The hierarchy node.
name
The name of the node.
Returns
bool
true
if the name was set,
false
otherwise.
Description
Sets the name of a hierarchy node... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_97bd86b5df50 | unity_docs | physics | What is `Rigidbody2D.constraints` in Unity? Explain its purpose and usage. | Rigidbody2D.constraints
public
RigidbodyConstraints2D
constraints
;
Description
Controls which degrees of freedom are allowed for the simulation of this
Rigidbody2D
.
By default this is set to
RigidbodyConstraints2D.None
, allowing rotation and movement along all axes.
In some cases, you may want to constra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_744fe724848a | unity_docs | rendering | What is `ParticleSystemSortMode` in Unity? Explain its purpose and usage. | ParticleSystemSortMode
enumeration
Description
The sorting mode for particle systems.
Properties
Property
Description
None
No sorting.
Distance
Sort based on distance to the camera position. For orthographic cameras, this mode is the same as sorting by depth.
OldestInFront
Sort the oldest particles to the fro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_647b2b18fed9 | unity_docs | editor | What are the parameters of `EditorGUI.BeginFoldoutHeaderGroup` in Unity? | Returns bool The foldout state selected by the user. If true, you should render sub-objects. Description Make a label with a foldout arrow to the left of it. This is useful for folder-like structures, where child objects only appear if you've unfolded the parent folder. This control cannot be nested in another BeginFol... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6d12440b2711 | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.XmlProlog` in Unity? Explain its purpose and usage. | XmlProlog
class in
Unity.Android.Gradle.Manifest
/
Inherits from:
Unity.Android.Gradle.Manifest.BaseElement
Description
The C# definition of the
<xml>
Android Manifest element.
For more information about the element, see Android's documentation:
XmlProlog element
Static Properties
Property
Description
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eaa585539de7 | unity_docs | scripting | What is `VersionControl.Task.SetCompletionAction` in Unity? Explain its purpose and usage. | Task.SetCompletionAction
Declaration
public void
SetCompletionAction
(
VersionControl.CompletionAction
action
);
Parameters
Parameter
Description
action
Which completion action to perform.
Description
Upon completion of a task a completion task will be performed if it is set.
This method can be used to u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f56461bf4379 | unity_docs | rendering | Explain 'Debug Draw Modes for lighting reference' in Unity. | The Scene view has several Debug Draw Modes to help you understand and debug the lighting in your scene.
Use the
Scene view View Options toolbar
to select a Debug Draw Mode.
If you use the Universal Rendering Pipeline or the High Definition
Render Pipeline
, not all the modes appear. You can use the
Rendering Debugger
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_93ea6090a3cf | github | scripting | Write a Unity C# ScriptableObject for Field Search Settings | ```csharp
using FieldSearch.Core.Inspectors;
using FieldSearch.EditorScriptGeneration;
using FieldSearch.Settings.Base;
using System.IO;
using UnityEditor;
using UnityEngine;
namespace FieldSearch.Settings
{
/// <summary>
/// FieldSearchSettings implementation
/// based on <see cref="BaseFieldSearchSettin... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
gh_dd77601fc3da_doc_6 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The original position of this interactable before any pushes have been applied.
Signature:
```csharp
public Vector3 initialPosition
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_33889ef4fc38 | unity_docs | rendering | What is `TextureImporterSettings.mipmapFadeDistanceStart` in Unity? Explain its purpose and usage. | TextureImporterSettings.mipmapFadeDistanceStart
public int
mipmapFadeDistanceStart
;
Description
Mip level where texture begins to fade out to gray.
Additional resources:
mipmapEnabled
,
fadeOut
,
mipmapFadeDistanceEnd
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e36a41a4c22a | unity_docs | input | Show me a Unity code example for 'DoubleField'. | the entered data meets certain requirements.
Note
: To align a DoubleField with other fields in an Inspector window, simply apply the.unity-base-field__aligned
USS class to it. For more information, refer to
BaseField
.
## Create a DoubleField
You can create a DoubleField with UI Builder, UXML, and C#.
To create a Do... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bcff7b76a3d5 | unity_docs | rendering | In Unity's 'Graphics performance and profiling', what is 'Further resources' and how does it work? | Optimize shaders
Optimize for mobile
Optimize for untethered XR devices
Graphics rendering: Getting the best performance with Unity 6
Performance tips and tricks from a Unity consultant
Rendering Profiler module | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7713f4d0af75 | unity_docs | scripting | What is `UIElements.UxmlDescriptionCache` in Unity? Explain its purpose and usage. | UxmlDescriptionCache
class in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Contains pre-processed information about UXML attribute descriptions to avoid relying on reflection.
This is used by the code generator when a control is using
UxmlElementAttribute
and
UxmlAtt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_757d3a537deb | unity_docs | rendering | What is `U2D.ScriptablePacker.PackerData` in Unity? Explain its purpose and usage. | PackerData
struct in
UnityEditor.U2D
Description
A struct containing input data to pack sprites.
Properties
Property
Description
colorData
A NativeArray containing texture data (pixels) of all the sprites.
indexData
A NativeArray containing indices of all the sprites.
spriteData
A NativeArray containing spri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6365556b6f5d | unity_docs | rendering | In Unity's 'Reducing the file size of a build', what is 'Editor logs' and how does it work? | You can inspect the Editor log after you perform a build to determine which assets were the largest in the build. To open the log:
Open the Console window
(
Window
>
General
>
Console
).
Select the More menu (⋮) and select
Open Editor Log
.
The Editor log provides a summary of assets broken down by type, and then lists... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aa6446af93a0 | unity_docs | scripting | Give me an overview of the `CacheServerMode` class in Unity. | CacheServerMode
enumeration
Description
Selects the cache server configuration mode.
Properties
Property
Description
AsPreferences
Use this if you want to use the global cache server settings.
Enabled
Use this if you want to enable use of the project specific cache server settings.
Disabled
Use this if you wa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_08b1f30fba3b | unity_docs | rendering | What is `Rendering.RayTracingGeometryInstanceConfig.vertexAttributes` in Unity? Explain its purpose and usage. | RayTracingGeometryInstanceConfig.vertexAttributes
public VertexAttributeDescriptor[]
vertexAttributes
;
Description
An array of vertex attributes that define the vertex format of
vertexBuffer
.
The Position attribute is mandatory for building an acceleration structure. You can access other vertex attributes in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f91281d1b1b5 | unity_docs | rendering | What is `BillboardRenderer` in Unity? Explain its purpose and usage. | BillboardRenderer
class in
UnityEngine
/
Inherits from:
Renderer
/
Implemented in:
UnityEngine.CoreModule
Description
Renders a billboard from a BillboardAsset.
BillboardRenderers that share the same BillboardAsset can be rendered in a batch if they are next to each other in the order of rendering. The batch... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d638bb74c006 | unity_docs | scripting | What is `Rendering.FoveatedRenderingMode` in Unity? Explain its purpose and usage. | FoveatedRenderingMode
enumeration
Description
Operation mode for the foveated rendering system.
Properties
Property
Description
Disabled
Disables foveated rendering.
Enabled
Enables foveated rendering for the next draw commands. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b590513c9e30 | unity_docs | rendering | Explain 'Example of using UNITY_DOTS_INSTANCED_PROP macros in a DOTS Instancing shader in URP' in Unity. | The UNITY_DOTS_INSTANCED_PROP macro has 3 variants:
UNITY_DOTS_INSTANCED_PROP_OVERRIDE_DISABLED(PropertyType, PropertyName)
UNITY_DOTS_INSTANCED_PROP_OVERRIDE_SUPPORTED(PropertyType, PropertyName)
UNITY_DOTS_INSTANCED_PROP_OVERRIDE_REQUIRED(PropertyType, PropertyName)
These macros allow you to specify if a property can... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_80b37c18a10f | unity_docs | rendering | In Unity's 'UWP Player settings', what is 'Tiles and Logos' and how does it work? | Specify the images your tiles display on the Microsoft Store with these settings:
Property Description Square 44x44 Logo
Set a 44x44 logo image to use on the app’s tile. You can set up to 10 resolutions.
Square 71x71 Logo
Set a 71x71 logo image to use on the app’s tile. You can set up to 5 resolutions.
Square 150x150 L... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_059f07544d0b | unity_docs | scripting | Show me a Unity C# example demonstrating `AssetDatabase.GetAvailableImporters`. | AssetDatabase.GetAvailableImporters
Declaration
public static Type[]
GetAvailableImporters
(string
path
);
Parameters
Parameter
Description
path
Project relative path for the asset.
Returns
Type[]
Returns an array of importer types that can handle the specified Asset.
Description
Gets the importer ty... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6eff9a0be267 | unity_docs | scripting | What is `Android.AndroidPluginImporterUtilities.SetAndroidCPU` in Unity? Explain its purpose and usage. | AndroidPluginImporterUtilities.SetAndroidCPU
Declaration
public static void
SetAndroidCPU
(
PluginImporter
importer
,
AndroidArchitecture
architecture
);
Description
Sets the Android CPU architecture that the plugin supports.
This is only applicable for plugins that use the .so
or .a
file extension. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_617295f83a71 | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.defaultWebScreenHeight`. | PlayerSettings.defaultWebScreenHeight
public static int
defaultWebScreenHeight
;
Description
Default vertical dimension of web player window.
Custom player settings.
```csharp
using UnityEngine;
using UnityEditor;
// Simple Script that saves and loads custom
// Stand-alone/Web player screen settings among
// ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_86af6b28c89f_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | This loads at most one per type per scene.
Signature:
```csharp
public class SingletonMonoBehaviourLoader : MonoBehaviour
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_bdedb19b2832 | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.Android.splashScreenScale`. | PlayerSettings.Android.splashScreenScale
public static
AndroidSplashScreenScale
splashScreenScale
;
Description
Android splash screen scale mode.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class SplashScreenScaleSample : MonoBehaviour
{
[MenuItem("Build/Splash Screen Scal... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6f2a4c47a44c | unity_docs | audio | Show me a Unity C# example demonstrating `Networking.DownloadHandlerAudioClip`. | AudioClip
objects.
DownloadHandlerAudioClip stores received data in a pre-allocated Unity
AudioClip
object. It is optimized for downloading audio data from Web servers, and may perform audio data decompression and decoding on a worker thread.
For use cases where you wish to download an audio clip via HTTP and use i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_24c46c1bc551 | unity_docs | scripting | Show me a Unity C# example demonstrating `AndroidJNI.InvokeAttached`. | AndroidJNI.InvokeAttached
Declaration
public static void
InvokeAttached
(
Unity.Android.Gradle.Manifest.Action
action
);
Description
Calls
AndroidJNI.AttachCurrentThread
(if necessary) before invoking a delegate, and then calls
AndroidJNI.DetachCurrentThread
.
Note:
Use this method to invoke Java methods ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_5a0a62daf0e4_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | An interactable joystick that can move side to side, and forward and back by a direct interactor
Signature:
```csharp
public class XRJoystick : XRBaseInteractable
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_e5fc19961c06 | unity_docs | animation | What is `Animations.AnimatorControllerPlayable.GetCurrentAnimatorStateInfo` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable.GetCurrentAnimatorStateInfo
Declaration
public
AnimatorStateInfo
GetCurrentAnimatorStateInfo
(int
layerIndex
);
Parameters
Parameter
Description
layerIndex
The layer index.
Returns
AnimatorStateInfo
An
AnimatorStateInfo
with the information on the current state.
Descript... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e36a635b424 | unity_docs | scripting | What is `Build.Content.WriteParameters.preloadInfo` in Unity? Explain its purpose and usage. | WriteParameters.preloadInfo
public
Build.Content.PreloadInfo
preloadInfo
;
Description
The set of external object dependencies that need to be loaded when loading the resulting serialized file. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6b7d15e8f4d1 | unity_docs | rendering | Show me a Unity C# example demonstrating `Rendering.RenderStateBlock`. | iption
A set of values that Unity uses to override the GPU's render state.
When you call ScriptableRenderContext.DrawRenderers, you can use this to override the render state for some or all of the geometry.
Note:
You must set
mask
to tell Unity which parts of the render state to override to apply. For example, to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_983cb9579222_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Should we wait with finding the correct instance until a script tries to access it? If set to false,we load the instance on Awake.
Signature:
```csharp
public static bool LoadOnDemand = false;
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_93fa8685a461 | unity_docs | animation | What is `ClipAnimationMaskType` in Unity? Explain its purpose and usage. | ClipAnimationMaskType
enumeration
Description
AnimationClip mask options for
ModelImporterClipAnimation
.
Mask can be used to specify which transforms animation should be imported when generating the clip.
Additional resources:
ModelImporterClipAnimation.maskType
.
Properties
Property
Description
CreateFromT... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9c8c50b8d3d9 | unity_docs | rendering | In Unity's 'Preparing your model files for export', what is 'Preparing what you need to include' and how does it work? | The following table outlines special considerations you should make for each asset type to work most optimally in Unity:
Object Preparations Meshes
All NURBS, NURMS, splines, patches, and subdiv surfaces must be converted to polygons (triangulation or quadrangulation)
Bake deformers
Make sure that you bake deformers on... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_126dcffc5425 | unity_docs | rendering | Show me a Unity C# example demonstrating `Experimental.Rendering.GraphicsFormat`. | GraphicsFormat
enumeration
Description
Use this format to create either Textures or RenderTextures from scripts.
```csharp
using UnityEngine;
using UnityEngine.Experimental.Rendering;public class ExampleScript : MonoBehaviour
{
TextureCreationFlags flags;
void Start()
{
// Create a new texture and assign it to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5ede0ca25b4d | unity_docs | audio | In Unity's 'Audio Flange Effect', what is 'Properties' and how does it work? | Property:
Function:
Drymix
Percentage of original signal to pass to output from 0.0 to 100.0%. Default = 45%.
Wetmix
Percentage of flange signal to pass to output from 0.0 to 100.0%. Default = 55%.
Depth
Intensity of the flange effect from 0.01 to 1.0. Default = 1.0.
Rate
Speed of the flange effect from 0.1 to 20 Hz. D... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93be40518aad | unity_docs | scripting | What is `Animations.AimConstraint` in Unity? Explain its purpose and usage. | AimConstraint
class in
UnityEngine.Animations
/
Inherits from:
Behaviour
/
Implemented in:
UnityEngine.AnimationModule
Implements interfaces:
IConstraint
Description
Constrains the orientation of an object relative to the position of one or more source objects, such that the object is facing the average posit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7f824d6dc042 | unity_docs | editor | Show me a Unity C# example demonstrating `InitializeOnLoadAttribute`. | port completes, which means asset loading from this context can fail, resulting in a null object. To do initialization after a domain reload that requires asset operations, use the
AssetPostprocessor.OnPostprocessAllAssets
callback. This callback supports all asset operations and has a parameter that signals if there... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6014d57db44b | unity_docs | scripting | What is `Video.VideoPlayer.canSetTimeUpdateMode` in Unity? Explain its purpose and usage. | VideoPlayer.canSetTimeUpdateMode
public bool
canSetTimeUpdateMode
;
Description
Whether you can change the time source followed by the
VideoPlayer
. (Read Only)
Certain playback engines can only follow their own internal clock.
This value is only valid after the movie has been prepared. See
VideoPlayer.Prepar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_694e5dc05e43 | unity_docs | rendering | What is `Rendering.RenderTargetBlendState.sourceColorBlendMode` in Unity? Explain its purpose and usage. | RenderTargetBlendState.sourceColorBlendMode
public
Rendering.BlendMode
sourceColorBlendMode
;
Description
Blend factor used for the color (RGB) channel of the source.
Additional resources:
ShaderLab: Blending
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8273f6f484e2 | unity_docs | physics | What are the parameters of `Physics.SphereCastNonAlloc` in Unity? | Returns int The amount of hits stored into the results buffer. Description Cast sphere along the direction and store the results into buffer. This is variant of Physics.SphereCastAll , but instead of allocating the array with the results of the query, it stores the results into the user-provided array. It will only co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3caaa7ab0652 | unity_docs | audio | What are the parameters of `AudioSource.PlayClipAtPoint` in Unity? | Description Plays an AudioClip at a given position in world space. This function creates an audio source but automatically disposes of it once the clip has finished playing. ```csharp
using UnityEngine;public class Example : MonoBehaviour
{
public AudioClip clip; //make sure you assign an actual clip here in the in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c33e4ac8e3bf | unity_docs | rendering | What is `Rendering.TextureDimension.Any` in Unity? Explain its purpose and usage. | TextureDimension.Any
Description
Any texture type.
This is a special case value for material properties that can accept any texture type.
Additional resources:
Texture.dimension
,
MaterialProperty.textureDimension
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_120d72219861 | unity_docs | scripting | What is `TerrainDetailMeshWizard.ResetDefaults` in Unity? Explain its purpose and usage. | TerrainDetailMeshWizard.ResetDefaults
Declaration
public void
ResetDefaults
(
Terrain
terrain
,
int
index
);
Parameters
Parameter
Description
terrain
The Terrain object.
index
The detail's index.
Description
Initializes the mesh detail wizard's defaults.
Call this method when adding or editing a mesh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_52f14c8dbe0d | github | scripting | Write a Unity C# MonoBehaviour script called Path Bezier2d | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PathBezier2d : MonoBehaviour {
public Transform[] cubes;
public GameObject dude1;
public GameObject dude2;
private LTBezierPath visualizePath;
void Start () {
// move
Vector3[] path = new Vector3[]{cube... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_65777c7f27e8 | unity_docs | scripting | Show me a Unity C# example demonstrating `Component.GetComponentsInChildren`. | cified.
To find components attached to other GameObjects, you need a
reference to that other GameObject
(or any component attached to that GameObject). You can then call
GetComponentsInChildren
on that reference.
The following example gets a reference to all hinge joint components on the same GameObject as the scri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8af19eb4a079 | unity_docs | rendering | What is `LightProbes.positions` in Unity? Explain its purpose and usage. | LightProbes.positions
public Vector3[]
positions
;
Description
Positions of the baked light probes (Read Only).
Deprecated, use
LightProbes.SetPositionsSelf
and
LightProbes.GetPositionsSelf
instead.
Additional resources:
LightProbes.countSelf
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8d9773292468 | unity_docs | rendering | Show me a Unity C# example demonstrating `TextureMipmapLimitGroups.HasGroup`. | iption
groupName
Name of the texture mipmap limit group to verify.
Returns
bool
Returns
true
if a texture mipmap limit group named
groupName
exists in the project. If that is not the case, returns
false
.
Description
Checks whether a texture mipmap limit group with the indicated
groupName
exists in the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_56779adf8629 | unity_docs | xr | What is `Networking.DownloadHandler.error` in Unity? Explain its purpose and usage. | DownloadHandler.error
public string
error
;
Description
Error message describing a failure that occurred inside the download handler.
When a UnityWebRequest ends with the result,
UnityWebRequest.Result.DataProcessingError
, this property contains a message describing the error. For example, when an AssetBundle... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f658701f82f8 | unity_docs | scripting | Give me an overview of the `DrivenTransformProperties` class in Unity. | DrivenTransformProperties
enumeration
Description
An enumeration of transform properties that can be driven on a RectTransform by an object.
Additional resources:
RectTransform.reapplyDrivenProperties
.
Properties
Property
Description
None
Deselects all driven properties.
All
Selects all driven properties.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_48324129bcff | unity_docs | editor | What is `Device.SystemInfo.supportsMultisampleAutoResolve` in Unity? Explain its purpose and usage. | SystemInfo.supportsMultisampleAutoResolve
public static bool
supportsMultisampleAutoResolve
;
Description
This has the same functionality as
SystemInfo.supportsMultisampleAutoResolve
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_feaa08b6dc34 | unity_docs | scripting | In Unity's 'C# compiler and language version reference', what is 'Garbage collection' and how does it work? | Unity uses the
Boehm-Demers-Weiser garbage collector
for both the Mono and IL2CPP scripting backends
and incremental mode by default. For more information on the available garbage collection modes, their meaning, and how to switch between them, refer to
Garbage collection modes
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_799f72cdc999 | unity_docs | physics | What are the parameters of `Rigidbody.AddForceAtPosition` in Unity? | Description Applies force at position . As a result this will apply a torque and force on the object. For realistic effects position should be approximately in the range of the surface of the rigidbody.
This is most commonly used for explosions. When applying explosions it is best to apply forces over several frames in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9427374fae65 | github | scripting | Write a Unity C# UI script for Voxel World Generator | ```csharp
/*
* VoxelWorldGenerator.cs
* Created by Arian - GameDevBox
* YouTube Channel: https://www.youtube.com/@GameDevBox
*
* 🎮 Want more Unity tips, tools, and advanced systems?
* 🧠 Learn from practical examples and well-explained logic.
* 📦 Subscribe to GameDevBox for more game dev content!
*
... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_2239180c27b4 | unity_docs | scripting | What is `UnityEngine.PropertiesModule` in Unity? Explain its purpose and usage. | UnityEngine.PropertiesModule
Description
Interfaces and utilities to describe and visit data containers.
Classes
Class
Description
ArrayPropertyBag<T0>
An IPropertyBag_1 implementation for a built in array of TElement.
ConcreteTypeVisitor
Base class to implement a visitor responsible for getting an object... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f51b1ee1e9ab | unity_docs | editor | What is `PluginImporter.SetCompatibleWithEditor` in Unity? Explain its purpose and usage. | PluginImporter.SetCompatibleWithEditor
Declaration
public void
SetCompatibleWithEditor
(bool
enable
);
Parameters
Parameter
Description
enable
Is plugin compatible with editor.
Description
Sets compatibility with any editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7f9e05f030e | unity_docs | xr | What is `XR.XRDisplaySubsystem.GetPreferredMirrorBlitMode` in Unity? Explain its purpose and usage. | XRDisplaySubsystem.GetPreferredMirrorBlitMode
Declaration
public int
GetPreferredMirrorBlitMode
();
Returns
int
Display subsystem's preferred blit mode.
Description
Returns the XR display's preferred mirror blit mode. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_679bbe9ef32a | unity_docs | rendering | What is `Device.SystemInfo.supports2DArrayTextures` in Unity? Explain its purpose and usage. | SystemInfo.supports2DArrayTextures
public static bool
supports2DArrayTextures
;
Description
This has the same functionality as
SystemInfo.supports2DArrayTextures
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4c18f833dacd | unity_docs | scripting | What are the parameters of `EditorTools.EditorToolContext.PopulateMenu` in Unity? | Description Adds menu items to the Scene view context menu. Refer to MenuUtility for utility functions that add menu items to the Scene view context menu. ```csharp
public override void PopulateMenu(DropdownMenu menu)
{
// Add all clipboard operations to the context menu (Cut, Copy, Paste, Delete, and Duplicate).
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1cfb6f431e14 | unity_docs | input | In Unity's 'Android mobile scripting', what is 'Activity indicator' and how does it work? | Mobile operating systems have built-in activity indicators your application can use during slow operations. For more information, refer to
Handheld.StartActivityIndicator
.
To access device-specific properties, use these APIs:
Script
Device property
SystemInfo.deviceUniqueIdentifier
Always returns the md5 of
ANDROID_ID... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_67f333310795 | unity_docs | rendering | What are the parameters of `Texture2DArray.GetPixels32` in Unity? | Returns Color32[] An array that contains the pixel colors. Description Gets the pixel color data for a mipmap level of a slice as Color32 structs. This method gets pixel data from the texture in CPU memory. Texture.isReadable must be true . The array contains the pixels row by row, starting at the bottom left of the te... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fcb116237a66 | unity_docs | scripting | What is `MPE.ChannelClient.channelName` in Unity? Explain its purpose and usage. | ChannelClient.channelName
public string
channelName
;
Description
The name of the channel this
ChannelClient
is connected to. The name matches the route of the URL used to connect to Unity's
ChannelService
. For example, 127.0.0.1:8928/<my Channel Name>. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b283fd043079 | unity_docs | rendering | What is `Texture2DArray.activeMipmapLimit` in Unity? Explain its purpose and usage. | Texture2DArray.activeMipmapLimit
public int
activeMipmapLimit
;
Description
The number of high resolution mipmap levels from the texture that Unity doesn't upload to the GPU. (Read Only)
Unity takes a texture's mipmap limit settings into account to determine its active mipmap limit that affects how many textur... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c367025eaff8 | unity_docs | input | What is `UIElements.MouseLeaveWindowEvent.GetPooled` in Unity? Explain its purpose and usage. | MouseLeaveWindowEvent.GetPooled
Declaration
public static
UIElements.MouseLeaveWindowEvent
GetPooled
(
Event
systemEvent
);
Parameters
Parameter
Description
systemEvent
An IMGUI MouseLeaveWindow event.
Returns
MouseLeaveWindowEvent
An initialized event.
Description
Gets an event from the event po... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9980f5b2b53b | unity_docs | editor | What is `MouseCursor.FPS` in Unity? Explain its purpose and usage. | MouseCursor.FPS
Description
Cursor with an eye and stylized arrow keys for FPS navigation.
```csharp
//Create a folder and name it “Editor” if this doesn’t already exist
//Put this script in the folder//This script creates a new menu (“Examples”) and a menu item (“Mouse Cursor”). Click on this option. This displays... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bcad576a5260 | unity_docs | scripting | Show me a Unity C# example demonstrating `Screen.width`. | lso reflects the current resolution.
Note
: When accessed from the Editor events, such as
ContextMenu
methods, inspector enable/disable actions, or custom Editor scripts,
Screen.width
and
Screen.height
return the current Game view window resolution in the Unity Editor. These properties do not reflect the resoluti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5372d7c6dc78 | unity_docs | editor | In Unity's 'Collect performance data introduction', what is 'Collect performance data in Play mode' and how does it work? | It can be time-consuming to build your application every time you want to improve elements of its performance. To quickly assess the performance of your application you can
profile it directly in Play mode
in the Editor. The Profiler’s default target is Play mode.
Play mode runs in the same application and main thread ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bc23f0c4a815 | unity_docs | rendering | Show me a Unity C# example demonstrating `RenderSettings.ambientLight`. | RenderSettings.ambientLight
public static
Color
ambientLight
;
Description
Flat ambient lighting color.
Flat ambient lighting mode uses color. It has the same value as
ambientSkyColor
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
// Make the ambient lighting red
Ren... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c179a8dd4404 | unity_docs | scripting | What is `Experimental.GraphView.ISelection.AddToSelection` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ISelection.AddToSelection
Declaration
public void
AddToSelection
(
Experimental.GraphView.ISelectable
selectable
);
Parameters
Parameter
Description
selectable
Selectable element to add.
Description
Add element to sele... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1f935633692c | unity_docs | scripting | What is `Experimental.GraphView.Capabilities.Ascendable` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Capabilities.Ascendable
Description
The GraphElement will be brought to the front of its layer when it is selected. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5a72a0f277ba | unity_docs | rendering | Explain 'ShaderLab legacy functionality reference' in Unity. | ShaderLab includes a number of “fixed-function style” commands that allow you to write shaders without using any HLSL code.
Note
: These commands are legacy, and are documented for backwards compatibility only. If your
Shader object
source file includes HLSL code, Unity ignores these commands completely. If your shader... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_20c4080beb10 | unity_docs | rendering | Show me a Unity C# example demonstrating `Shader.globalKeywords`. | der keywords that currently exist. This includes enabled and disabled global shader keywords.
Shader keywords determine which shader variants Unity uses. For information on working with
local shader keywords
and
global shader keywords
and how they interact, see
Using shader keywords with C# scripts
.
This example... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_64c77fc4d52a | unity_docs | scripting | What is `Logger.filterLogType` in Unity? Explain its purpose and usage. | Logger.filterLogType
public
LogType
filterLogType
;
Description
To selective enable debug log message.
By settings filterLogType to
LogType.Log
(default setting) will display all log messages.
LogType.Warning
will display Warning, Assert, Error and Exception log messages.
LogType.Assert
will display ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d3cfbb4f78d | unity_docs | scripting | Show me a Unity C# example demonstrating `Unity.Profiling.IgnoredByDeepProfilerAttribute`. | egisters entrance and exit to each function. In some cases, you want some code to be ignored. This can happen for instance if it is some kind of wrapper or method or class that adds too much clatter to the Profiler Time Line view.
You can apply the [IgnoredByDeepProfiler] attribute to classes, structures, and methods. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e5ba1f5ffd92 | unity_docs | ui | Explain 'IMGUI Layout Modes' in Unity. | ## Fixed Layout vs Automatic Layout
There are two different modes you can use to arrange and organize your UI when using the IMGUI system: Fixed and Automatic. Up until now, every IMGUI example provided in this guide has used Fixed Layout. To use Automatic Layout, write GUILayout instead of GUI when calling control fu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d7ced11e1470 | unity_docs | audio | Explain 'Supported codecs for transparent videos (per-pixel alpha)' in Unity. | Choose compatible video codecs to ensure per-pixel alpha transparency in your Unity applications.
Certain video codecs support the use of transparency on individual pixels of a video (per-pixel alpha).
This information covers the transparent video codecs that Unity supports. For information about transparency types and... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_27319c75a821 | unity_docs | scripting | What is `Unity.Properties.IPropertyBagVisitor.Visit` in Unity? Explain its purpose and usage. | IPropertyBagVisitor.Visit
Declaration
public void
Visit
(IPropertyBag<TContainer>
properties
,
ref TContainer
container
);
Parameters
Parameter
Description
properties
The properties of the container.
container
The container being visited.
Description
Implement this method to accept visitation for a pro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c7fa68a71da8 | unity_docs | rendering | What is `Rendering.BatchDrawCommandProceduralIndirect` in Unity? Explain its purpose and usage. | BatchDrawCommandProceduralIndirect
struct in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
Represents a procedural indirect draw command for a
BatchRendererGroup
.
This type of draw command has a reference to a material, but all vertex data is fetched procedurally by the shader.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2c28c11c83b3 | unity_docs | rendering | Show me a Unity C# example demonstrating `GL.TexCoord2`. | Declaration
public static void
TexCoord2
(float
x
,
float
y
);
Description
Sets current texture coordinate (x,y) for all texture units.
In OpenGL this matches
glMultiTexCoord
for all texture units or
glTexCoord
when no multi-texturing is available. On other graphics APIs the same
functionality is emulated.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5e472225a25e | unity_docs | scripting | Explain 'Encapsulate UXML documents with logic' in Unity. | A Prefab is a pre-made GameObject that you can instantiate multiple times in a
scene
. Prefabs are useful for creating reusable components.
Visual elements
in UI Toolkit aren’t GameObjects and therefore Prefabs don’t apply. However, you can
create a custom control
as a reusable UI component that encapsulates a specific... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b8c968c63e55 | unity_docs | rendering | What is `Rendering.VirtualTexturing.Streaming.EnableMipPreloading` in Unity? Explain its purpose and usage. | Virtual Texturing is experimental and not ready for production use. The feature and documentation might be changed or removed in the future.
Streaming.EnableMipPreloading
Declaration
public static void
EnableMipPreloading
(int
texturesPerFrame
,
int
mipCount
);
Parameters
Parameter
Description
texturesPerFr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e3d6a8a94711 | unity_docs | scripting | What is `Audio.AudioMixerGroup` in Unity? Explain its purpose and usage. | AudioMixerGroup
class in
UnityEngine.Audio
/
Inherits from:
Object
/
Implemented in:
UnityEngine.AudioModule
Description
Object representing a group in the mixer.
Properties
Property
Description
audioMixer
Gain access to the AudioMixer that this AudioMixerGroup belongs to (Read Only).
Inherited Members
P... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e71837259a8 | unity_docs | scripting | What is `IMGUI.Controls.TreeView.IsExpanded` in Unity? Explain its purpose and usage. | TreeView.IsExpanded
Declaration
public bool
IsExpanded
(int
id
);
Parameters
Parameter
Description
id
TreeViewItem ID.
Description
Returns true if the TreeViewItem with ID id is currently expanded. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b37dab251fd6 | unity_docs | scripting | What are the parameters of `Vector3.ProjectOnPlane` in Unity? | Returns Vector3 The vector that results from projection of vector on the plane. Description Projects a vector onto a plane. This method resolves the input vector onto the plane and returns the resulting vector. The new vector is orthogonal to planeNormal and parallel to the plane.
Note ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93950c651eef | unity_docs | rendering | What is `MaterialPropertyType` in Unity? Explain its purpose and usage. | MaterialPropertyType
enumeration
Description
The type of a given material property.
Properties
Property
Description
Float
A Float Property.
Int
An Integer Property.
Vector
A Vector Property.
Matrix
A Matrix Property.
Texture
A Texture Property.
ConstantBuffer
A Constant Buffer Property.
ComputeBuffer
A Co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_98ed6d63e042 | unity_docs | rendering | In Unity's 'Smart merge', what is 'Setting up UnityYAMLMerge for use with third-party tools' and how does it work? | The UnityYAMLMerge tool is shipped with the Unity editor; assuming Unity is installed in the standard location, the path to UnityYAMLMerge will be:
```
C:\Program Files\Unity\Editor\Data\Tools\UnityYAMLMerge.exe
```
or
```
C:\Program Files (x86)\Unity\Editor\Data\Tools\UnityYAMLMerge.exe
```
…on Windows and
```
/Applic... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ea69a74115be | unity_docs | editor | In Unity's 'Unity Editor analytics', what is 'Examples of analytics' and how does it work? | The following are examples of some of the analytics that Unity collects:
Menu item use
: Unity tracks how often some menu items are used. If menu items are rarely used or not used at all, Unity might use this data to determine if the menus might be simplified or if some menu items could be hidden.
Build times
: Unity c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_123227127f82 | unity_docs | audio | What is `Build.Reporting.PackedAssetInfo` in Unity? Explain its purpose and usage. | PackedAssetInfo
struct in
UnityEditor.Build.Reporting
Description
Contains information about a single packed Asset.
Properties
Property
Description
id
The unique identifier of the packed Asset.
offset
The offset in a PackedAssets file that indicates the beginning of the packed Asset.
packedSize
The size of t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_072f1f11a651 | unity_docs | rendering | In Unity's 'Cubemap Skybox Shader Material Inspector Window reference', what is 'Properties' and how does it work? | Property Description Tint Color
The color to tint the skybox to. Unity adds this color to the Textures to change their appearance without altering the base Texture files.
Exposure
Adjusts the skybox’s exposure. This allows you to correct tonal values in the skybox Textures. Larger values produce a more exposed, seeming... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c27fdc5ad48f | unity_docs | editor | What is `Profiling.FrameDataView.GetAllCategories` in Unity? Explain its purpose and usage. | FrameDataView.GetAllCategories
Declaration
public void
GetAllCategories
(List<ProfilerCategoryInfo>
categoryInfoList
);
Parameters
Parameter
Description
categoryInfoList
List filled with ProfilerCategoryInfo.
Description
Gets all the available Profiler Categories for the current profiling session.
Use to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82bb32c5a875 | unity_docs | math | What is `GraphicsBuffer.UnlockBufferAfterWrite` in Unity? Explain its purpose and usage. | GraphicsBuffer.UnlockBufferAfterWrite
Declaration
public void
UnlockBufferAfterWrite
(int
countWritten
);
Parameters
Parameter
Description
countWritten
Number of elements written to the buffer. Counted from the first element.
Description
Ends a write operation to the buffer
This call ends a write operatio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ae2ba975a011 | unity_docs | rendering | In Unity's 'Texture properties', what is 'Texture HDR parameters' and how does it work? | {TextureName}
_HDR
- a float4 property with information on how to decode a potentially HDR (e.g. RGBM-encoded) texture depending on the
color space
used. See DecodeHDR function in
UnityCG.cginc
shader include file. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_860704481ac8 | unity_docs | physics | Give me an overview of the `BoxcastCommand` class in Unity. | BoxcastCommand
struct in
UnityEngine
/
Implemented in:
UnityEngine.PhysicsModule
Description
Use this struct to set up a box cast command to be performed asynchronously during a job.
When you use this struct to schedule a batch of box casts, the box casts will are performed asynchronously and in parallel. The r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4673187d39c3 | unity_docs | scripting | Explain 'Rotation and orientation in Unity' in Unity. | Unity uses a left-handed coordinate system. In Unity, you can use both Euler angles and quaternions to represent rotations and orientation. These representations are equivalent but have different uses and limitations.
Typically, you rotate objects in your scene using the
Transform component
, which displays orientation... | 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.