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_4512d8aa8ac7 | unity_docs | editor | In Unity's 'Package states and lifecycle', what is 'Birth (A)' and how does it work? | While the package developer creates the package, it’s in the Custom state.
When it’s ready for Unity users to test it and provide feedback, a package enters the Experimental state. Unity doesn’t support experimental packages and doesn’t guarantee that experimental packages will be fully released and verified to be safe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_344f114cf0bf | unity_docs | editor | What is `AssetDatabase.importPackageStarted` in Unity? Explain its purpose and usage. | AssetDatabase.importPackageStarted
Parameters
Parameter
Description
value
Name of package.
Description
Callback raised whenever a package import starts.
```csharp
using UnityEditor;
using UnityEngine;[InitializeOnLoad]
public class AssetDatabaseExamples
{
static AssetDatabaseExamples()
{
AssetDatabase.impor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_659aed1af132 | unity_docs | scripting | What are the parameters of `Search.PropertyDatabase.Invalidate` in Unity? | Description Invalidates a single property record so it is no longer retrievable. ```
// Store a property.
var propertyRecordKey = PropertyDatabase.CreateRecordKey("path/to/my/asset", "m_Color");
propertyDatabase.Store(propertyRecordKey, new Color(1, 0, 1));
// Invalidate the property.
propertyDatabase.Invalidate(prope... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_394ac2d56e94 | unity_docs | rendering | What is `RenderTextureReadWrite.Default` in Unity? Explain its purpose and usage. | RenderTextureReadWrite.Default
Description
Default color space conversion based on project settings.
This value picks
sRGB
(when Linear color space is used) or
Linear
(when gamma color space is used) based on
PlayerSettings.colorSpace
.
See
RenderTextureReadWrite
overview page for more details. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e5e53d85c95a | unity_docs | math | What is `Search.IQueryEngineFilter.AddOperator` in Unity? Explain its purpose and usage. | IQueryEngineFilter.AddOperator
Declaration
public
Search.QueryFilterOperator
AddOperator
(string
op
);
Parameters
Parameter
Description
op
The operator identifier.
Returns
QueryFilterOperator
The added, or existing,
QueryFilterOperator
.
Description
Add a custom filter operator specific to the fil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b590a0c783fc | unity_docs | editor | What is `InitializeOnLoadMethodAttribute` in Unity? Explain its purpose and usage. | InitializeOnLoadMethodAttribute
class in
UnityEditor
Description
Allow an editor class method to be initialized when Unity loads without action from the user.
```csharp
using UnityEngine;
using UnityEditor;class MyClass
{
[InitializeOnLoadMethod]
static void OnProjectLoadedInEditor()
{
Debug.Log("Project load... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4b403cc7a5c9 | unity_docs | math | Show me a Unity C# example demonstrating `Graphics.RenderMeshPrimitives`. | od renders multiple instances of the same Mesh, similar to
Graphics.RenderMeshIndirect
, but provides the number of instances and other rendering command arguments as function arguments.
Use
SV_InstanceID
semantic in shaders to access the rendered instance.
The following example uses
RenderMeshPrimitives
to rende... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9ac666b3cdce | unity_docs | rendering | What is `Experimental.Rendering.GraphicsFormatUtility.IsPVRTCFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.IsPVRTCFormat
Declaration
public static bool
IsPVRTCFormat
(
Experimental.Rendering.GraphicsFormat
format
);
Declaration
public static bool
IsPVRTCFormat
(
TextureFormat
format
);
Description
Ret... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4c624abf1e60_doc_0 | github | scripting | What does `SetTargetRotationLocal` do in this Unity script? Explain its purpose and signature. | Sets a joint's targetRotation to match a given local rotation.The joint transform's local rotation must be cached on Start and passed into this method.
Signature:
```csharp
public static void SetTargetRotationLocal(this ConfigurableJoint joint, Quaternion targetLocalRotation, Quaternion startLocalRotation)
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_768c6a05fee9 | unity_docs | scripting | What is `Unity.Android.Gradle.Buildscript` in Unity? Explain its purpose and usage. | Buildscript
class in
Unity.Android.Gradle
/
Inherits from:
Unity.Android.Gradle.BaseBlock
Description
The C# definition of the
buildscript
element in a gradle file.
Configures the build script classpath for this project. For more information about the element, see Gradle's documentation:
buildscript
Propert... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_867b0c2878d0 | unity_docs | rendering | What is `TextureImporter.mipmapFadeDistanceEnd` in Unity? Explain its purpose and usage. | TextureImporter.mipmapFadeDistanceEnd
public int
mipmapFadeDistanceEnd
;
Description
Mip level where texture is faded out completely.
Additional resources:
mipmapEnabled
,
fadeout
,
mipmapFadeDistanceStart
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ca2a359505f2 | unity_docs | audio | Explain 'Set up your environment for Embedded Linux' in Unity. | Set up your environment to develop with Embedded Linux.
To create a Unity application for Embedded Linux, you first need to set up your Unity project to support Embedded Linux. To support Embedded Linux, a Unity project requires certain packages and dependencies.
Note:
You must install the Embedded Linux platform packa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_936a692ec8d5 | unity_docs | rendering | What is `Rendering.VertexAttribute.TexCoord5` in Unity? Explain its purpose and usage. | VertexAttribute.TexCoord5
Description
Additional texture coordinate.
UVs usually use
Vector2
format. Vector2 uses two 32-bit floats; 8 bytes in total.
This vertex attribute maps to the
TEXCOORD5
semantic in HLSL. This UV channel is also commonly called "UV5". It corresponds to
Mesh.uv6
.
Additional resources: ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_636b70feda79 | unity_docs | physics | What is `Physics2D.GetLayerCollisionMask` in Unity? Explain its purpose and usage. | Physics2D.GetLayerCollisionMask
Declaration
public static int
GetLayerCollisionMask
(int
layer
);
Parameters
Parameter
Description
layer
The layer to retrieve the collision layer mask for.
Returns
int
A mask where each bit indicates a layer and whether it can collide with
layer
or not.
Description
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_47fd4e2edc7c | unity_docs | scripting | What is `AI.NavMeshAgent.isOnOffMeshLink` in Unity? Explain its purpose and usage. | NavMeshAgent.isOnOffMeshLink
public bool
isOnOffMeshLink
;
Description
Is the agent currently positioned on an OffMeshLink? (Read Only)
This property is useful when
autoTraverseOffMeshLink
is false and custom movement is needed when crossing the link.
Additional resources:
autoTraverseOffMeshLink
,
Complete... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e13df16238b3 | unity_docs | scripting | Show me a Unity C# example demonstrating `Editor.CreateEditor`. | have created multiple custom editors, and each editor shows different properties of the object.
Returns NULL if
objects
are of different types or if no approprate editor was found. Editors created using this function have to be destroyed explicitly, using either
Object.Destroy
or
Object.DestroyImmediate
.
Consid... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65be3e375910 | unity_docs | scripting | Show me a Unity C# example demonstrating `Search.IPropertyDatabaseView.TryLoad`. | IPropertyDatabaseView.TryLoad
Declaration
public bool
TryLoad
(InAttribute)
recordKey
,
out object
data
);
Parameters
Parameter
Description
recordKey
A record key.
data
The property value.
Returns
bool
True if the record is found and is valid, false otherwise.
Description
Loads a single property, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_594092b71a32 | unity_docs | scripting | What is `ContactFilter2D.SetDepth` in Unity? Explain its purpose and usage. | ContactFilter2D.SetDepth
Declaration
public void
SetDepth
(float
minDepth
,
float
maxDepth
);
Parameters
Parameter
Description
minDepth
The value used to set
minDepth
.
maxDepth
The value used to set
maxDepth
.
Description
Sets the
minDepth
and
maxDepth
filter properties and turns on depth filteri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ba110c7ce190 | unity_docs | scripting | What is `Playables.PlayableBehaviour.OnPlayableDestroy` in Unity? Explain its purpose and usage. | PlayableBehaviour.OnPlayableDestroy
Declaration
public void
OnPlayableDestroy
(
Playables.Playable
playable
);
Parameters
Parameter
Description
playable
The
Playable
that owns the current PlayableBehaviour.
Description
This function is called when the
Playable
that owns the PlayableBehaviour is destro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4849275d4219 | unity_docs | math | What is `LightTransport.BufferSlice_1.SafeReinterpret` in Unity? Explain its purpose and usage. | BufferSlice<T0>.SafeReinterpret
Declaration
public BufferSlice<U>
SafeReinterpret
();
Returns
BufferSlice<U>
An alias of the same slice, but reinterpreted as the target type.
Description
Reinterpret the slice as having a different data type (type punning), performing checks to ensure the reinterpret is val... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2f2e92bf58ba | unity_docs | rendering | Show me a Unity C# example demonstrating `LineRenderer.textureMode`. | LineRenderer.textureMode
public
LineTextureMode
textureMode
;
Description
Choose whether the U coordinate of the line texture is tiled or stretched.
Stretching maps the texture along the line with no repeats. Tiling maps the texture along the line with repeats every world unit. To change the repeat rate, use... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e3d5244001c7 | unity_docs | xr | What is `Unity.IO.LowLevel.Unsafe.ReadHandle.GetBytesReadArray` in Unity? Explain its purpose and usage. | ReadHandle.GetBytesReadArray
Declaration
public ulong*
GetBytesReadArray
();
Returns
ulong*
An unsafe pointer to the array storing the number of bytes read for each ReadCommand in the request.
Description
Returns an array containing the number of bytes read by the
ReadCommand
operations during the asynch... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_23169f792132 | unity_docs | scripting | What is `Unity.Android.Types.DebugSymbolFormat` in Unity? Explain its purpose and usage. | DebugSymbolFormat
enumeration
Description
Determines the package format of debug metadata.
Additional resources:
UserBuildSettings.DebugSymbols.format
.
Properties
Property
Description
Zip
Includes debug metadata into the zip file.
IncludeInBundle
Embeds the debug metadata into the app bundle.This option doe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4fa3e3fc2a49 | unity_docs | rendering | What is `TerrainExtensions` in Unity? Explain its purpose and usage. | TerrainExtensions
class in
UnityEngine
/
Implemented in:
UnityEngine.TerrainModule
Description
Extension methods to the Terrain class, used only for the UpdateGIMaterials method used by the Global Illumination System.
Static Methods
Method
Description
UpdateGIMaterials
Schedules an update of the albedo and e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a3329d53be4c | unity_docs | scripting | What is `Unity.Loading.ContentFile.UnloadAsync` in Unity? Explain its purpose and usage. | ContentFile.UnloadAsync
Declaration
public
Unity.Loading.ContentFileUnloadHandle
UnloadAsync
();
Returns
ContentFileUnloadHandle
A handle that can be used to track the status of the unload operation.
Description
Begin an asynchronous unload of the
ContentFile
.
If you call this while a load is in progr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9b940d22716b | unity_docs | editor | What is `PlayerSettings.WSA.largeTileShowName` in Unity? Explain its purpose and usage. | PlayerSettings.WSA.largeTileShowName
public static bool
largeTileShowName
;
Description
The application name to display on the
Large Tile
.
In the Editor, Unity displays this under
Tile section
in
UWP Player Settings
.
Note
: If you do not set a logo image for
this tile size
, Unity ignores this property... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_478f73a0f669 | unity_docs | animation | Show me a Unity C# example demonstrating `AnimationState.time`. | AnimationState.time
public float
time
;
Description
The current time of the animation.
If the time is larger than length it will be wrapped according to wrapMode.
The value can be larger than the animations length.
In this case playback mode will remap the time before sampling.
This value usually goes from 0 to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6bb7888a4734 | unity_docs | scripting | Show me a Unity C# example demonstrating `LightTransport.RadeonRaysContext.ReadBuffer`. | entID
created with
IDeviceContext.CreateEvent
to track the completion status, if desired. This method returns immediately after enqueuing the command in the context.
Note:
EventID
is single-use. Once an
EventID
has been passed to this function, it may not be passed to subsequent
IDeviceContext.WriteBuffer
or ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_abd304ed5508 | unity_docs | scripting | What is `SystemLanguage.Thai` in Unity? Explain its purpose and usage. | SystemLanguage.Thai
Description
Thai.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Thai language
if (Application.systemLanguage == SystemLanguage.Thai)
{
//Outputs into console that the system is Thai
Debug.Log("... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8da408b0cf45 | unity_docs | audio | What is `Experimental.Video.VideoPlayerExtensions` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
VideoPlayerExtensions
class in
UnityEngine.Experimental.Video
/
Implemented in:
UnityEngine.VideoModule
Description
Extension methods for the
VideoPlayer
class.
Static Methods
Method
Description
GetAudioSampleProvider
R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4a4355fced1e | unity_docs | rendering | In Unity's 'Introduction to PSO tracing and warming', what is 'Supported graphics APIs' and how does it work? | You can use the GraphicsStateCollection API on the following graphics APIs:
DirectX 12 Vulkan Metal
Note
: On DirectX 11, OpenGL, OpenGLES, and WebGL , the GraphicsStateCollection API automatically falls back to shader warm up as outlined in
Other methods to warm up shaders
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4686dc6ed5ae | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.MainModule.startLifetime`. | etime
public
ParticleSystem.MinMaxCurve
startLifetime
;
Description
The total lifetime in seconds that each new particle has.
This value is set on the particle when the Particle System creates it. Assign a value of float.PositiveInfinity to particles to prevent the Particle System from destroying them. This ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3b6f4a3db036 | unity_docs | scripting | What is `Experimental.Audio.AudioSampleProvider` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
AudioSampleProvider
class in
UnityEngine.Experimental.Audio
/
Implemented in:
UnityEngine.AudioModule
Description
Provides access to the audio samples generated by Unity objects such as VideoPlayer.
This class is meant to be... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e86a02a432e8 | unity_docs | physics | What is `Collider.hasModifiableContacts` in Unity? Explain its purpose and usage. | Collider.hasModifiableContacts
public bool
hasModifiableContacts
;
Description
Specify whether this Collider's contacts are modifiable or not.
All pairs with Colliders that have this flag set will be available to scripts via Physics.ContactModifyEvent.
Note that pairs are only notified to scripts as long as the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ee5dd81a28d8 | unity_docs | editor | What is `Handles.DrawSolidRectangleWithOutline` in Unity? Explain its purpose and usage. | Handles.DrawSolidRectangleWithOutline
Declaration
public static void
DrawSolidRectangleWithOutline
(Vector3[]
verts
,
Color
faceColor
,
Color
outlineColor
);
Parameters
Parameter
Description
verts
The 4 vertices of the rectangle in world coordinates.
faceColor
The color of the rectangle's face.
outl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ffce438643ac | unity_docs | rendering | Show me a Unity C# example demonstrating `TrailRenderer.time`. | TrailRenderer.time
public float
time
;
Description
How long does the trail take to fade out.
```csharp
using UnityEngine;
using System.Collections;[RequireComponent(typeof(TrailRenderer))]
public class ExampleClass : MonoBehaviour
{
public float time = 1.0f;
private TrailRenderer tr; void Start()
{
tr = Ge... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_778086a52cef | unity_docs | rendering | What is `Material.Lerp` in Unity? Explain its purpose and usage. | Material.Lerp
Declaration
public void
Lerp
(
Material
start
,
Material
end
,
float
t
);
Description
Interpolate properties between two materials.
Makes all color and float values of a material be interpolated from
start
to
end
,
based on
t
.
When
t
is 0, all values are taken from
start
.
When
t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a1b0f5baac20 | unity_docs | animation | What is `UIElements.Experimental.ValueAnimation_1.autoRecycle` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ValueAnimation<T0>.autoRecycle
public bool
autoRecycle
;
Description
Returns true if this animation object will be automatically returned to the instance pool after the animation has completed. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_17243a953b5a | unity_docs | physics | What is `PhysicsVisualizationSettings` in Unity? Explain its purpose and usage. | PhysicsVisualizationSettings
class in
UnityEditor
Description
This class contains the settings controlling the Physics Debug Visualization.
Additional resources:
PhysicsDebugWindow
.
Static Properties
Property
Description
articulationBodyColor
Color for Articulation Bodies.
baseAlpha
Alpha amount used for t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a244f0c29140 | unity_docs | scripting | In Unity's 'Make the camera perspective oblique', what is 'Setting frustum obliqueness using a script' and how does it work? | The following script example shows how to quickly achieve an oblique frustum by altering the camera’s projection matrix. Note that you can only see the effect of the script while the game is running Play mode.
```csharp
using UnityEngine;
using System.Collections;
public class ExampleScript : MonoBehaviour {
void Set... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2708bf4aa810 | unity_docs | editor | What is `AI.NavMeshBuildDebugFlags` in Unity? Explain its purpose and usage. | NavMeshBuildDebugFlags
enumeration
Description
Bitmask used for operating with debug data from the NavMesh build process.
Used in two situations:
within
NavMeshBuildSettings.debug
to specify which debug data to retain after the build process has completed, preserving the world position and orientation;
as a pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5088d51ab3c7 | unity_docs | editor | What is `Device.SystemInfo.supportsIndirectArgumentsBuffer` in Unity? Explain its purpose and usage. | SystemInfo.supportsIndirectArgumentsBuffer
public static bool
supportsIndirectArgumentsBuffer
;
Description
This property has the same functionality as
SystemInfo.supportsIndirectArgumentsBuffer
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_ab716b05cbd8 | unity_docs | scripting | In Unity's 'Animate trees with Wind Zones', what is 'Wind modes' and how does it work? | There are two modes for wind:
In Directional mode, the wind affects the whole Terrain at once. This is useful for creating effects like the natural movement of the trees.
In Spherical mode, the wind blows outwards within a sphere defined by the Radius property. This is useful for creating special effects like explosion... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_397a3fbafee0 | unity_docs | scripting | What are the parameters of `Search.SearchExpression.GetNumberValue` in Unity? | Returns double Returns a numerical representation of the expression. Description Try to parse the innerText and convert it to a double value. ```csharp
[SearchExpressionEvaluator(SearchExpressionType.Iterable | SearchExpressionType.Variadic)]
[SearchExpressionEvaluatorSignatureOverload(SearchExpressionType.Number, Sear... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec2289a3e5c4 | unity_docs | scripting | What is `ParticleSystem.MainModule.prewarm` in Unity? Explain its purpose and usage. | ParticleSystem.MainModule.prewarm
public bool
prewarm
;
Description
If
ParticleSystem.MainModule.loop
is true, when you enable this property, the Particle System looks like it has already simulated for one loop when first becoming visible.
```csharp
using UnityEngine;
using System.Collections;[RequireCompone... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6488f61392e2 | unity_docs | math | Show me a Unity C# example demonstrating `Mathf.Abs`. | Mathf.Abs
Declaration
public static float
Abs
(float
f
);
Description
Returns the absolute value of
f
.
```csharp
using UnityEngine;public class ScriptExample : MonoBehaviour
{
void Start()
{
// Prints 10
Debug.Log(Mathf.Abs(-10.0f));
// Prints 0
Debug.Log(Mathf.Abs(0.0f));
// Prints 10
Debug.Log(Mat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4c02662d98bf | unity_docs | scripting | Show me a Unity C# example demonstrating `Transform.SetAsLastSibling`. | Transform.SetAsLastSibling
Declaration
public void
SetAsLastSibling
();
Description
Move the transform to the end of the local transform list.
```csharp
using UnityEngine;
using System.Collections;
using UnityEngine.UI; //Required when using UI Elements.
using UnityEngine.EventSystems; // Required when using e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9bc40c46e9ff_doc_0 | github | scripting | What does `Awake` do in this Unity script? Explain its purpose and signature. | / -------------------------------------------------------------------------------------------/ Events Begin/ -------------------------------------------------------------------------------------------
Signature:
```csharp
protected virtual void Awake()
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1bf6a32a854d | unity_docs | rendering | What is `TerrainDetailTextureWizard.ResetDefaults` in Unity? Explain its purpose and usage. | TerrainDetailTextureWizard.ResetDefaults
Declaration
public void
ResetDefaults
(
Terrain
terrain
,
int
index
);
Parameters
Parameter
Description
terrain
The Terrain object.
index
The detail's index.
Description
Initializes the texture detail wizard's defaults.
Call this method when adding or editing ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5404005a2e88 | unity_docs | scripting | What is `Unity.Hierarchy.Hierarchy.GetChildIndex` in Unity? Explain its purpose and usage. | Hierarchy.GetChildIndex
Declaration
public int
GetChildIndex
(ref
Unity.Hierarchy.HierarchyNode
node
);
Parameters
Parameter
Description
node
The hierarchy node.
Description
Gets the index of a child node in the parent's children list. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f036cff2b737 | unity_docs | rendering | In Unity's 'Reuse HLSL code', what is 'Apply a pragma directive to multiple files' and how does it work? | To apply a
#pragma
directive to multiple shader files, use the Unity
#include_with_pragmas
directive.
You can use this method to add an argument in multiple files, but toggle the arguments on and off by updating only one file. For example, you can create and toggle a debugging keyword that enables and disables conditio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f0130ac240bb | unity_docs | scripting | What is `Playables.PlayableGraph.IsDone` in Unity? Explain its purpose and usage. | PlayableGraph.IsDone
Declaration
public bool
IsDone
();
Returns
bool
A boolean indicating if the graph is done playing or not.
Description
Indicates that a graph has completed its operations.
Returns true if a graph has
PlayableOutput
s, and the source playable on all of its outputs have completed their ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dbae2b3a623e | unity_docs | scripting | What is `FilterMode.Trilinear` in Unity? Explain its purpose and usage. | FilterMode.Trilinear
Description
Trilinear filtering - texture samples are averaged and also blended between mipmap levels.
For textures without mipmaps, this setting is the same as
Bilinear
.
Additional resources:
Texture.filterMode
,
texture assets
.
```csharp
//This script changes the filter mode of your Tex... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f2688cba357a | unity_docs | scripting | What is `SubsystemsImplementation.SubsystemWithProvider` in Unity? Explain its purpose and usage. | SubsystemWithProvider
class in
UnityEngine.SubsystemsImplementation
/
Implemented in:
UnityEngine.SubsystemsModule
Implements interfaces:
ISubsystem
Description
A subsystem is initialized from a SubsystemDescriptorWithProvider for a given subsystem (Session, Plane, Face, etc.) and provides an interface to inter... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c405e3c01c95_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Gets or sets the pool data for this configuration.The array of PoolDatum containing the pool configurations.
Signature:
```csharp
public PoolDatum[] PoolData
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_991cc3c1db57 | unity_docs | editor | What is `Callbacks.RunBeforeAssemblyAttribute` in Unity? Explain its purpose and usage. | RunBeforeAssemblyAttribute
class in
UnityEditor.Callbacks
Description
Add this attribute to a callback method to indicate that this callback must be run before any callbacks that are part of the specified assembly.
To define dependencies for a callback, use the following attributes:
RunAfterClassAttribute
,
Run... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a89e0805ddb9 | unity_docs | scripting | Give me an overview of the `ApplicationMemoryUsage` class in Unity. | ApplicationMemoryUsage
enumeration
Description
Describes the application memory usage level.
Properties
Property
Description
Unknown
The memory usage level of the application is not known.
Low
Application can safely allocate significant amounts of memory.
Medium
Application is at safe memory usage level and h... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_529338cac532 | unity_docs | scripting | What is `Accessibility.AssistiveSupport` in Unity? Explain its purpose and usage. | AssistiveSupport
class in
UnityEngine.Accessibility
/
Implemented in:
UnityEngine.AccessibilityModule
Description
Access point to assistive technology support APIs.
The currently supported platforms are:
RuntimePlatform.Android
(requires at least API level 26)
RuntimePlatform.IPhonePlayer
This class co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8873996c3038 | unity_docs | rendering | Explain 'Create Neighbor Terrains' in Unity. | The
Create Neighbor Terrains
tool allows you to create adjacent Terrain tiles, which automatically connect. In the
Terrain Inspector
, click the
Create Neighbor Terrains
icon.
To access the
Create Neighbor Terrains
tool from an overlay:
In the
Terrain Tools
overlay, select
Neighbor Terrains Mode
. Neighbor Terrain tool... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_245a7d76a468 | unity_docs | animation | What is `Animations.AnimatorControllerLayer.GetOverrideBehaviours` in Unity? Explain its purpose and usage. | AnimatorControllerLayer.GetOverrideBehaviours
Declaration
public StateMachineBehaviour[]
GetOverrideBehaviours
(
Animations.AnimatorState
state
);
Parameters
Parameter
Description
state
The state which we want to get the behaviour list.
Description
Gets the override behaviour list for the state on the giv... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93e6d89a885e | unity_docs | rendering | What is `Rendering.SupportedRenderingFeatures.mixedLightingModes` in Unity? Explain its purpose and usage. | SupportedRenderingFeatures.mixedLightingModes
public
Rendering.SupportedRenderingFeatures.LightmapMixedBakeModes
mixedLightingModes
;
Description
Specifies what
LightmapMixedBakeModes
that are supported. Please define a
SupportedRenderingFeatures.defaultMixedLightingModes
in case multiple modes are support... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_23f299d251bd | unity_docs | math | What is `XR.XRMeshSubsystem.SetBoundingVolume` in Unity? Explain its purpose and usage. | XRMeshSubsystem.SetBoundingVolume
Declaration
public bool
SetBoundingVolume
(
Vector3
origin
,
Vector3
extents
);
Description
Set the bounding volume to restrict the space in which Unity generates and tracks Meshes.
The bounding volume is an Axis Aligned Bounding Box (AABB) centered at the
origin
and exte... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_387968b7b50a | unity_docs | rendering | What is `Rendering.RayTracingShader.Dispatch` in Unity? Explain its purpose and usage. | RayTracingShader.Dispatch
Declaration
public void
Dispatch
(string
rayGenFunctionName
,
int
width
,
int
height
,
int
depth
,
Camera
camera
);
Parameters
Parameter
Description
rayGenFunctionName
The name of the ray generation shader.
width
The width of the ray generation shader thread grid.
height
T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_63a1ec3b69b8 | unity_docs | scripting | What is `UIElements.Vector4Field` in Unity? Explain its purpose and usage. | Vector4Field
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.BaseCompositeField_3
/
Implemented in:
UnityEngine.UIElementsModule
Description
A
Vector4
field. For more information, refer to
UXML element Vector4Field
.
Static Properties
Property
Description
inputUssClassName
USS class nam... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f9fa31fad1c6 | unity_docs | rendering | What is `TextureFormat.DXT5` in Unity? Explain its purpose and usage. | TextureFormat.DXT5
Description
Compressed color with alpha channel texture format.
DXT5 (BC3) format compresses textures to 8 bits per pixel, and is widely supported on PC and console platforms.
It is a good format to compress most of RGBA textures. For RGB (without alpha) textures,
DXT1
is better. When targeting... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fa900c8e0111 | unity_docs | scripting | What is `XR.XRDisplaySubsystem.GetRenderPass` in Unity? Explain its purpose and usage. | XRDisplaySubsystem.GetRenderPass
Declaration
public void
GetRenderPass
(int
renderPassIndex
,
out
XR.XRDisplaySubsystem.XRRenderPass
renderPass
);
Parameters
Parameter
Description
renderPassIndex
The index of the render pass to get. Must be less than
GetRenderPassCount
.
renderPass
Render pass to popul... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_01020ac735d4 | unity_docs | scripting | Show me a Unity code example for 'Encapsulate UXML documents with logic'. | hierarchy UXML document.
The following C# and UXML examples demonstrate how to use the UXML-first approach to create reusable UI.
## Create the custom control class
Create a C# script that defines the CardElement custom control. In addition to
defining a constructor to assign an image and badge values to CardElement
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ccf5d5cea12c | unity_docs | editor | What is `GlobalObjectId.assetGUID` in Unity? Explain its purpose and usage. | GlobalObjectId.assetGUID
public GUID
assetGUID
;
Description
The GUID for the asset that the referenced object belongs to.
The
assetGUID
constitutes the
{a}
element in the string representation of a
GlobalObjectId
, the format of which is:
GlobalObjectId_V1-{i}-{a}-{l}-{p}
The GUID is a globally unique ide... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_42054662174c | unity_docs | scripting | In Unity's 'ProgressBar', what is 'Create a ProgressBar' and how does it work? | You can create a ProgressBar with UI Builder, UXML, and C#.
To create a ProgressBar with C#, create a new instance of a ProgressBar object. For example:
```
ProgressBar myElement = new ProgressBar("Label text");
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce5d691003d2 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUI.BeginDisabledGroup`. | up of controls that can be disabled.
If disabled is true, the controls inside the group will be disabled.
If false, the enabled/disabled state will not be changed.
Note: The use of
DisabledScope
is usually preferred over EditorGUI.BeginDisabledGroup()/EditorGUI.EndDisabledGroup(), as it provides a safer, scoped mech... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0ddef924cd7c | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.Android.minimumWindowWidth`. | PlayerSettings.Android.minimumWindowWidth
public static int
minimumWindowWidth
;
Description
The minimum horizontal size of the Android Player window in pixels.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Build;public class MinimumWindowWidthSample : MonoBehaviour
{
[MenuItem("Build/Mini... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c39a50ab87a7 | unity_docs | physics | What is `JointLimits.bounceMinVelocity` in Unity? Explain its purpose and usage. | JointLimits.bounceMinVelocity
public float
bounceMinVelocity
;
Description
The minimum impact velocity which will cause the joint to bounce.
Additional resources:
bounciness
.
Setting this very low, like zero, will cause the joint to never stop bouncing. This can lead to jittering and performance problems.
Se... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6da3fe9a4874 | unity_docs | editor | In Unity's 'Contents of the Asset Database', what is 'Asset Database structure' and how does it work? | The Asset Database consists of the following database files in the Library folder:
The source Asset Database (
Library\SourceAssetDB
): Contains meta-information about your source asset files which Unity uses to determine whether the file has been modified, and therefore whether it should reimport the files. This inclu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c42435f8c4b2 | unity_docs | physics | What is `ArticulationBody.GetClosestPoint` in Unity? Explain its purpose and usage. | ArticulationBody.GetClosestPoint
Declaration
public
Vector3
GetClosestPoint
(
Vector3
point
);
Parameters
Parameter
Description
point
The point of interest.
Returns
Vector3
The point on the surfaces of all Colliders attached to this articulation body that is closest to the given one.
Description
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c73896586879 | github | scripting | Write a Unity C# UI script for Console Input Handler | ```csharp
using System.Collections.Generic;
using TMPro;
using UnityEngine;
using System.Linq;
using InGame_Console.InGame_Console_System.Scripts;
using UnityEngine.UI;
public class ConsoleInputHandler : MonoBehaviour
{
[SerializeField] O2_IGConsole console;
[Header("UI Elements")] [SerializeField]... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_1b959801402b | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.BaseElement.AddCustomElement` in Unity? Explain its purpose and usage. | BaseElement.AddCustomElement
Declaration
public
Unity.Android.Gradle.Manifest.BaseElement
AddCustomElement
(string
elementName
,
Dictionary<string,string>
attributes
);
Parameters
Parameter
Description
elementName
Elemenet name.
attributes
Dictionary of attributes to add.
Description
Adds a new elemen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_34377e30997c | unity_docs | scripting | What is `MPE.EventService.Log` in Unity? Explain its purpose and usage. | EventService.Log
Declaration
public static void
Log
(string
msg
);
Declaration
public static void
Log
(string
msg
,
LogType
logType
);
Parameters
Parameter
Description
msg
The message to send.
logType
The type of the message (i.e. Info, Warning or Error).
Description
Sends a log message to the
C... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ec7eef362a27 | unity_docs | input | Show me a Unity C# example demonstrating `Screen.orientation`. | itions
are rotated clockwise or counter-clockwise to match screen
coordinates.
Web
: On Web, this property's functionality depends on the browser's `ScreenOrientation.lock()` method. For current browser compatibility information, refer to
caniuse.com/wf-screen-orientation-lock
. Most browsers prefer to avoid locking w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_485cc6538fbf | unity_docs | rendering | What is `ParticleSystem.ShapeModule.radiusSpeedMultiplier` in Unity? Explain its purpose and usage. | ParticleSystem.ShapeModule.radiusSpeedMultiplier
public float
radiusSpeedMultiplier
;
Description
A multiplier of the radius speed of the particle emission shape.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall speed multiplier.
Additional resour... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_312c95e89953 | unity_docs | scripting | Give me an overview of the `ArticulationDriveAxis` class in Unity. | ArticulationDriveAxis
enumeration
Description
An axis of a drive of an ArticulationBody.
Properties
Property
Description
X
The ArticulationBody drive that acts about the X axis.
Y
The ArticulationBody drive that acts about the Y axis.
Z
The ArticulationBody drive that acts about the Z axis. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65eacdc568f2 | unity_docs | editor | Show me a Unity C# example demonstrating `DragAndDrop.AddDropHandler`. | ior for the corresponding window. Multiple handlers can be registered on the same window. If a handler returns
DragAndDropVisualMode.None
the system will check the next handler. Any other results (
DragAndDropVisualMode.Rejected
or others
DragAndDropVisualMode
) means this handler has processed the drop event and n... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_132270c5c5ce | unity_docs | scripting | What is `ParticleSystem.CollisionModule.dampenMultiplier` in Unity? Explain its purpose and usage. | ParticleSystem.CollisionModule.dampenMultiplier
public float
dampenMultiplier
;
Description
Change the dampen multiplier.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall dampen multiplier.
```csharp
using UnityEngine;
using System.Collections;[R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_bf1536c72725 | github | scripting | Write a Unity C# MonoBehaviour script called Entity Injector | ```csharp
using System.Security.Cryptography.X509Certificates;
using Unity.Entities;
using UnityEngine;
using Object = UnityEngine.Object;
using System.Collections.Generic;
using Unity.Collections;
using System.Linq;
namespace HybridEZS
{
public class EntityInjector : MonoBehaviour, IEntityConverted
{
... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_man_407948c82456 | unity_docs | physics | In Unity's 'Name your package', what is 'Guidelines and restrictions for the official name' and how does it work? | The official name must conform to the following guidelines and restrictions:
The name must use reverse domain name notation, which means it must start with
<domain-name-extension>.<company-name>
, such as
com.example or net.example
. This restriction applies even if your company or website name begins with a digit. Fol... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fa81f09811a2 | unity_docs | rendering | What is `AssetPostprocessor.OnPostprocessSprites` in Unity? Explain its purpose and usage. | AssetPostprocessor.OnPostprocessSprites(Texture2D, Sprite[])
Description
Add this function to a subclass to get a notification when an texture of sprite(s) has completed importing.
For Multiple sprite-mode assets each sprite will be passed in the second argument as an array of sprites.
```csharp
using UnityEngine;... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1e5f7dbf7a1a | unity_docs | ui | In Unity's 'Foldout', what is 'Create a Foldout' and how does it work? | A Foldout has the following elements:
Label
: A label you can use as the name of the Foldout.
Toggle
: Click the toggle to expand or collapse the container sub-element. It is styled to look like an arrow rather than the default checkbox. When the container is collapsed, the arrow points right. When the container is exp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b2e840c634be | unity_docs | scripting | What is `Unity.Properties.TypeUtility.GetTypeDisplayName` in Unity? Explain its purpose and usage. | TypeUtility.GetTypeDisplayName
Declaration
public static string
GetTypeDisplayName
(Type
type
);
Parameters
Parameter
Description
type
The <see cref="System.Type" /> we want the name of.
Returns
string
The display name of the type.
Description
Utility method to get the name of a type which includes ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73dd7eaa0c06 | unity_docs | rendering | What is `XR.XRDisplaySubsystem.BeginRecordingIfLateLatched` in Unity? Explain its purpose and usage. | XRDisplaySubsystem.BeginRecordingIfLateLatched
Declaration
public void
BeginRecordingIfLateLatched
(
Camera
camera
);
Parameters
Parameter
Description
camera
The camera where late latch recording is to be enabled.
Description
This function enables late latching recording of constant buffer memory location... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c9e5090af953 | unity_docs | editor | Show me a Unity C# example demonstrating `SerializedProperty.DeleteArrayElementAtIndex`. | SerializedProperty.DeleteArrayElementAtIndex
Declaration
public void
DeleteArrayElementAtIndex
(int
index
);
Description
Delete the element at the specified index in the array.
Additional resources:
isArray
,
InsertArrayElementAtIndex
,
MoveArrayElement
,
DeleteCommand
.
```csharp
using System.Collections... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f79927b0caac | unity_docs | physics | What are the parameters of `Rigidbody.AddExplosionForce` in Unity? | Description Applies a force to a rigidbody that simulates explosion effects. The explosion is modelled as a sphere with a certain centre position and radius in world space; normally, anything outside the sphere is not affected by the explosion and the force decreases in proportion to distance from the centre. However, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c89c3aa2fd08 | unity_docs | editor | What is `TestTools.Coverage` in Unity? Explain its purpose and usage. | Coverage
class in
UnityEngine.TestTools
/
Implemented in:
UnityEngine.CoreModule
Description
Describes the interface for the code coverage data exposed by mono.
Use one of the following methods to enable coverage:
1) Use the
Coverage.enabled
API
2) Use the
Command line argument
-enableCodeCoverage
in ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0d8886ee543d | unity_docs | editor | What are the parameters of `VersionControl.Provider.DiffHead` in Unity? | Description Starts a task for showing a diff of the given assest versus their head revision. Do note that some asset types do not save their changes to disk right after making them so it is recommended to manually save the asset using AssetDatabase.SaveAssets before calling the diff tool. ```csharp
using System.Collect... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0a03f22914a7 | unity_docs | rendering | What are the parameters of `GUI.Toggle` in Unity? | Returns bool The new value of the button. Description Make an on/off toggle button. ```csharp
// Draws 2 toggle controls, one with a text, the other with an image.using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
public Texture aTexture; private bool toggleTxt = false;
p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d70be589622 | unity_docs | scripting | What is `XR.XRMeshSubsystemDescriptor` in Unity? Explain its purpose and usage. | XRMeshSubsystemDescriptor
class in
UnityEngine.XR
/
Inherits from:
IntegratedSubsystemDescriptor
/
Implemented in:
UnityEngine.XRModule
Description
Information about an
XRMeshSubsystem
.
Inherited Members
Properties Property Description
id
A unique string that identifies the subsystem that this Descriptor ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_56403a645137 | unity_docs | editor | What is `Selection.activeInstanceID` in Unity? Explain its purpose and usage. | Selection.activeInstanceID
public static int
activeInstanceID
;
Description
Returns the instanceID of the actual object selection. Includes Prefabs, non-modifiable objects.
When working with objects that are primarily in a Scene, it is strongly recommended to use
Selection.activeTransform
instead. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ea4314a20d67 | unity_docs | scripting | What is `Windows.Speech.PhraseRecognitionSystem.StatusDelegate` in Unity? Explain its purpose and usage. | PhraseRecognitionSystem.StatusDelegate
Declaration
public delegate void
StatusDelegate
(
Windows.Speech.SpeechSystemStatus
status
);
Parameters
Parameter
Description
status
The new status of the phrase recognition system.
Description
Delegate for OnStatusChanged event. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6b6b1e0734cf_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Switches the build platform to Android
Signature:
```csharp
public class BuildTargetSetupStep : ISetupStep, IActiveBuildTargetChanged
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1ed46bedb260 | unity_docs | ui | What is `UIElements.ToggleButtonGroupState.CreateFromOptions` in Unity? Explain its purpose and usage. | ToggleButtonGroupState.CreateFromOptions
Declaration
public static
UIElements.ToggleButtonGroupState
CreateFromOptions
(IList<bool>
options
);
Parameters
Parameter
Description
options
A list of booleans that is used to generated a ToggleButtonGroupState.
Returns
ToggleButtonGroupState
a ToggleButtonGro... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_471af049e71c | unity_docs | xr | What is `AssetBundle.LoadFromStreamAsync` in Unity? Explain its purpose and usage. | AssetBundle.LoadFromStreamAsync
Declaration
public static
AssetBundleCreateRequest
LoadFromStreamAsync
(Stream
stream
);
Declaration
public static
AssetBundleCreateRequest
LoadFromStreamAsync
(Stream
stream
,
uint
crc
);
Declaration
public static
AssetBundleCreateRequest
LoadFromStreamAsync
(Stream ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_71dd15ae5578 | unity_docs | scripting | What is `AudioType.WAV` in Unity? Explain its purpose and usage. | AudioType.WAV
Description
The audio file you want to stream has the Microsoft WAV audio file format.
Use this enumeration value to ensure the format type of the audio file has the Microsoft WAV audio file format. Use this audio type for files with the extension .wav
. If the audio file has a different format, Unity... | 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.