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_1a3775a0cfe0 | unity_docs | scripting | What is `AsyncOperation.progress` in Unity? Explain its purpose and usage. | AsyncOperation.progress
public float
progress
;
Description
What's the operation's progress. (Read Only)
Return an operation's progress. (Read Only)
This returns how close the operation is to finishing. The operation is finished when the progress float reaches 1.0 and isDone is called. If you set allowSceneActi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d9d87c2d75ca | unity_docs | scripting | Show me a Unity C# example demonstrating `PlayerPrefs.SetFloat`. | ame
variable in
PlayerPrefs.SetFloat
as an identifier, and
Value
as the contents to store. For example, you could use
PlayerPrefs.SetFloat
to store the user’s current health, like this: /PlayerPrefs.SetFloat(“CharacterHealth”, 60.5f)/.
The GetFloat function then uses the same
KeyName
variable to retrieve the v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3c8ecfcba4d7 | unity_docs | editor | In Unity's 'Manage packages in the Asset Store', what is 'Hiding packages from the My Assets list' and how does it work? | You can mark packages as hidden in your
My Assets
list. For example, if you no longer need a deprecated package, hiding it from your list in the Asset Store or the Package Manager window can reduce the clutter. Because you can’t remove Asset Store packages from your account, this is the equivalent of deleting the packa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_892da38edca6 | unity_docs | rendering | Explain 'Upgrade your Unity project' in Unity. | Upgrading your project gives you access to the latest features, improvements, and bug fixes introduced in a newer version of the Unity Editor.
This page details some recommended best practices to upgrade your project. However, how you apply those practices to your project depends on the circumstance of your project. Th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c2e07487ebdd | unity_docs | physics | What is `PhysicsMaterialCombine2D.Minimum` in Unity? Explain its purpose and usage. | PhysicsMaterialCombine2D.Minimum
Description
Uses a Minimum algorithm when combining friction or bounciness i.e. the minimum of the two values is used.
Given two friction or bounciness values, the
Minimum
algorithm used is:
valueA < valueB ? valueA : valueB
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_faff7017dd9d | github | scripting | Write a Unity C# MonoBehaviour script called Entity | ```csharp
using System;
using UnityEngine;
namespace starikcetin.Joy.Core
{
/// <summary>
/// This will be attached to a GameObject to make it an Entity for Joy framework.
/// </summary>
public class Entity : MonoBehaviour, IEquatable<Entity>
{
//
// Unique Entity ID assignment
... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_5fafb01d6b6a | unity_docs | ui | What is `ScriptableWizard.isValid` in Unity? Explain its purpose and usage. | ScriptableWizard.isValid
public bool
isValid
;
Description
Allows you to enable and disable the wizard create button, so that the user can not click it.
Additional resources:
ScriptableWizard.OnWizardUpdate
The finish button gets disabled until the user sets the number to 5.
```csharp
// Asks the user to set... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fe9775b3941a | unity_docs | scripting | Explain 'Deactivate GameObjects' in Unity. | To temporarily remove a GameObject from your scene , you can mark the GameObject as inactive.
To do this, navigate to the Inspector window and clear the checkbox to the left of the GameObject’s name. The names of deactivated GameObjects appear faded in the Hierarchy window.
To deactivate a GameObject through script, us... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6d6bff3fd581 | unity_docs | scripting | What is `Rendering.RenderPipelineGraphicsSettingsExtensions` in Unity? Explain its purpose and usage. | RenderPipelineGraphicsSettingsExtensions
class in
UnityEngine.Rendering
/
Implemented in:
UnityEngine.CoreModule
Description
Class that contains extensions for <see cref="IRenderPipelineGraphicsSettings"/>
Static Methods
Method
Description
NotifyValueChanged
Manually throw a notification event for your IRend... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fcee52e7e8f7 | unity_docs | scripting | Show me a Unity code example for 'The GameObject class'. | d to a GameObject are also Components themselves). To do this, the first step is to get a reference to the Component instance you want to work with. This is done with the GetComponent method. Typically, you want to assign the Component object to a variable, which is done in using the following code. In this example the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ff8a2a03c43 | unity_docs | rendering | What is `Media.VideoTrackEncoderAttributes` in Unity? Explain its purpose and usage. | VideoTrackEncoderAttributes
struct in
UnityEditor.Media
Description
Descriptor for video track format.
```csharp
using UnityEditor.Media;
using UnityEditor;
using UnityEngine;public class Recorder
{
public VideoTrackEncoderAttributes CreateEncoderAttributes()
{
H264EncoderAttributes h264Attr = new H264EncoderA... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_18ce45327686 | unity_docs | math | What is `Vector3.OrthoNormalize` in Unity? Explain its purpose and usage. | Vector3.OrthoNormalize
Declaration
public static void
OrthoNormalize
(ref
Vector3
normal
,
ref
Vector3
tangent
);
Description
Makes vectors normalized and orthogonal to each other.
Normalizes
normal
.
Normalizes
tangent
and makes sure it is orthogonal to
normal
(that is, angle between them is 90 degr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9b84119b17f5 | unity_docs | editor | What is `iOS.Xcode.PBXProject.UpdateBuildPropertyForConfig` in Unity? Explain its purpose and usage. | PBXProject.UpdateBuildPropertyForConfig
Declaration
public void
UpdateBuildPropertyForConfig
(string
configGuid
,
string
name
,
IEnumerable<string>
addValues
,
IEnumerable<string>
removeValues
);
Declaration
public void
UpdateBuildPropertyForConfig
(IEnumerable<string>
configGuids
,
string
name
,
IEnumerab... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d7fce68d8373 | unity_docs | editor | What is `AssetDatabase.GetLabels` in Unity? Explain its purpose and usage. | AssetDatabase.GetLabels
Declaration
public static string[]
GetLabels
(
Object
obj
);
Parameters
Parameter
Description
obj
The asset object to check.
Returns
string[]
Returns all labels attached to a given asset.
Description
Obtains all labels of a given asset.
```csharp
using System.Linq;
using Uni... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_3a1f6c0c1815 | unity_docs | editor | In Unity's 'Burst', what is 'Compatible with Unity' and how does it work? | These package versions are available in Unity version 6000.0:
Documentation location:
State
Versions available:
com.unity.burst@2.0 compatible 2.0.0-pre.1, 2.0.0-pre.2, 2.0.0-pre.3, 2.0.0-pre.4, 2.0.0-pre.5, 2.0.0-pre.6, 2.0.0-pre.7, 2.0.0-pre.10, 2.0.0-pre.11
com.unity.burst@1.8 released 1.8.29 | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c6efb1b69dbb | unity_docs | math | What is `AndroidJNI.GetShortArrayElement` in Unity? Explain its purpose and usage. | AndroidJNI.GetShortArrayElement
Declaration
public static short
GetShortArrayElement
(IntPtr
array
,
int
index
);
Description
Returns the value of one element of a primitive array.
This function is a special case of GetShortArrayRegion(), called with region size set to 1.
Additional resources:
Java Native In... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_03945ff2e37d | unity_docs | rendering | What is `LightingSettings.aoExponentDirect` in Unity? Explain its purpose and usage. | LightingSettings.aoExponentDirect
public float
aoExponentDirect
;
Description
Determines the degree to which direct lighting is considered when calculating ambient occlusion in lightmaps. (Editor only).
Ambient occlusion (AO) is an effect that approximates how much ambient light a given point on a surface rece... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_12fb01e3f595 | unity_docs | physics | Show me a Unity C# example demonstrating `MonoBehaviour.OnMouseUp`. | tached to the
Collider
. This function is not called on objects that belong to Ignore Raycast layer. This function is called on Colliders and 2D Colliders marked as trigger when the following properties are set to true:
For 3D physics:
Physics.queriesHitTriggers
For 2D physics:
Physics2D.queriesHitTriggers
OnMous... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5f0ba85300cf | unity_docs | editor | What are the parameters of `TypeCache.GetTypesDerivedFrom` in Unity? | Returns TypeCollection Returns an unordered collection of derived types. If assemblyName is specified, returns only types defined in this assembly. Description Retrieves an unordered collection of types derived from the T type. This method provides fast access to all classes loaded from a given assembly or all Unity do... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_486f3dc18652 | unity_docs | scripting | What is `Cloth.bendingStiffness` in Unity? Explain its purpose and usage. | Cloth.bendingStiffness
public float
bendingStiffness
;
Description
Bending stiffness of the cloth.
Must be between zero and one. Setting the value to zero disables bending stiffness simulation.
In many cases, when you want a cloth to be more stiff, actually reducing the number of vertices
will get you better ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6910d9d9a9ea_doc_8 | github | scripting | What does `OnDestroyAsObservable` do in this Unity script? Explain its purpose and signature. | This function is called when the MonoBehaviour will be destroyed.
Signature:
```csharp
public static IObservable<Unit> OnDestroyAsObservable(this Component component)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_5d211e644310 | unity_docs | scripting | Show me a Unity C# example demonstrating `SystemLanguage.Faroese`. | SystemLanguage.Faroese
Description
Faroese.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Faroese language
if (Application.systemLanguage == SystemLanguage.Faroese)
{
//Outputs into console that the system is Faroe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_93293935243f | unity_docs | scripting | What is `UIElements.IDataSourceViewHashProvider.GetViewHashCode` in Unity? Explain its purpose and usage. | IDataSourceViewHashProvider.GetViewHashCode
Declaration
public long
GetViewHashCode
();
Returns
long
The hash code of the view.
Description
Returns the hash code of the view, which can be used to notify the data binding system to refresh. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_649347278227 | unity_docs | scripting | What is `WaitTimeoutMode` in Unity? Explain its purpose and usage. | WaitTimeoutMode
enumeration
Description
Determines which mode of time measurement to use in wait operations.
Properties
Property
Description
Realtime
Evaluates timeout values as units of real time.
InGameTime
Evaluates timeout values as units of in-game time, which is scaled according to the value of ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_334c6744f764 | github | scripting | Write a Unity C# script called Extensions | ```csharp
using JetBrains.Annotations;
using UnityEngine.XR;
namespace Demo.UIs {
public static class Extensions {
[Pure]
public static bool? TryGetFeatureValue(this InputDevice device, InputFeatureUsage<bool> feature) =>
device.TryGetFeatureValue(feature, out var value) ? value ... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_783d54431dab | unity_docs | scripting | Show me a Unity C# example demonstrating `GameObject.CreatePrimitive`. | erer
BoxCollider
SphereCollider
To ensure you have the required references, declare private properties of these types to prevent them being stripped from the build. Your project must also reference the Default-Material. If it doesn't, the primitive object will be shown in pink to indicate the missing material.
For m... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8fdd11a92f7b | unity_docs | animation | What is `AnimationUtility.GetObjectReferenceValue` in Unity? Explain its purpose and usage. | AnimationUtility.GetObjectReferenceValue
Declaration
public static bool
GetObjectReferenceValue
(
GameObject
root
,
EditorCurveBinding
binding
,
out
Object
data
);
Parameters
Parameter
Description
root
The root GameObject of the animated hierarchy.
binding
The binding that defines the path and the p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cabb8e3f3cb0 | unity_docs | animation | What is `Animations.AnimatorControllerPlayable.CrossFadeInFixedTime` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable.CrossFadeInFixedTime(int,float,int,float,float)
Parameters
Parameter
Description
stateName
The name of the state.
stateHashName
The hash name of the state.
fixedTransitionDuration
The duration of the transition (in seconds).
layer
The layer where the crossfade occurs.
fixedTimeOf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_24444190e007 | unity_docs | physics | What is `FrameTimingManager.CaptureFrameTimings` in Unity? Explain its purpose and usage. | FrameTimingManager.CaptureFrameTimings
Declaration
public static void
CaptureFrameTimings
();
Description
This function triggers the FrameTimingManager to capture a snapshot of FrameTiming's data, that can then be accessed by the user.
The FrameTimingManager tries to capture as many frames as the platform allow... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_ad7674b7e65d | github | scripting | Write a Unity C# XR/VR script for Benchmark01 | ```csharp
using UnityEngine;
using System.Collections;
namespace TMPro.Examples
{
public class Benchmark01 : MonoBehaviour
{
public int BenchmarkType = 0;
public TMP_FontAsset TMProFont;
public Font TextMeshFont;
private TextMeshPro m_textMeshPro;
private TextContai... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_0087d8a3744a | unity_docs | rendering | What is `Rendering.ReflectionProbeMode` in Unity? Explain its purpose and usage. | ReflectionProbeMode
enumeration
Description
Reflection probe's update mode.
Properties
Property
Description
Baked
Reflection probe is baked in the Editor.
Realtime
Reflection probe is updating in real-time.
Custom
Reflection probe uses a custom texture specified by the user. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4cee8c279389 | unity_docs | physics | Explain 'Ragdoll physics' in Unity. | Ragdoll physics are a set of colliders , rigid bodies and joints that you can apply to a humanoid character, to simulate behaviour such as impact collisions and character death.
Unity provides a
Ragdoll Wizard
that allows you to configure ragdoll physics behaviours on your character.
Topic Description Create a ragdoll
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ad0ba3dca861 | unity_docs | rendering | Explain 'Introduction to post-processing' in Unity. | Unity provides a number of
post-processing
effects and full-screen effects that can greatly improve the appearance of your application with little set-up time. You can use these effects to simulate physical camera and film properties, or to create stylised visuals.
This page contains the following information:
Render p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c395a2e9545d | unity_docs | xr | What is `GizmoUtility.TryGetGizmoInfo` in Unity? Explain its purpose and usage. | GizmoUtility.TryGetGizmoInfo
Declaration
public static bool
TryGetGizmoInfo
(Type
type
,
out
GizmoInfo
info
);
Parameters
Parameter
Description
type
The type to get GizmoInfo for.
info
The output argument will contain a valid GizmoInfo when this function returns true.
Returns
bool
Returns true if Un... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_951747cb202b | unity_docs | ui | Show me a Unity C# example demonstrating `GUIStyle.alignment`. | GUIStyle.alignment
public
TextAnchor
alignment
;
Description
Text alignment.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Prints how text alignment is set. void OnGUI()
{
Debug.Log(GUI.skin.button.alignment);
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5afedfe182f9 | unity_docs | rendering | What is `Lightmapping.AdditionalBakeDelegate` in Unity? Explain its purpose and usage. | Lightmapping.AdditionalBakeDelegate
Declaration
public delegate void
AdditionalBakeDelegate
(ref float
progress
,
ref bool
done
);
Parameters
Parameter
Description
progress
The progress of the additional baking stage (0.0-1.0). This progress will be displayed in the progress bar.
done
Wether the additiona... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6715ed18be86 | unity_docs | xr | In Unity's 'Troubleshooting for Android', what is 'Cause' and how does it work? | When building a Unity Android application,
Gradle
generates the final application manifest by merging manifest files from various sources including
plug-ins
and packages. This process might automatically include certain unexpected permissions in the manifest based on the dependencies and the target SDK version. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d2f5b8dbf1f6 | unity_docs | scripting | What is `iOSLaunchScreenImageType` in Unity? Explain its purpose and usage. | iOSLaunchScreenImageType
enumeration
Description
iOS launch screen settings.
Properties
Property
Description
iPhonePortraitImage
Portrait oriented launch screen image on the iPhone.
iPhoneLandscapeImage
Landscape oriented launch screen image on the iPhone.
iPadImage
Launch screen image on the iPad. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d5fa0924f149 | unity_docs | scripting | What is `ISubsystem.running` in Unity? Explain its purpose and usage. | ISubsystem.running
public bool
running
;
Description
Will be true if asking the subsytem to start was successful. False in the case that the subsystem has stopped, was asked to stop or has not been started yet. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f97bff800b0b | unity_docs | rendering | What is `TerrainTools.PaintContext.GetClippedPixelRectInRenderTexturePixels` in Unity? Explain its purpose and usage. | PaintContext.GetClippedPixelRectInRenderTexturePixels
Declaration
public
RectInt
GetClippedPixelRectInRenderTexturePixels
(int
terrainIndex
);
Parameters
Parameter
Description
terrainIndex
Index of the Terrain.
Returns
RectInt
Returns the clipped pixel rectangle.
Description
Retrieves the clipped p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_9f4917548802_doc_1 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Destroys the child GameObject and creates a new child GameObject with the given TComponent component.TComponent will be initialized with the given arguments.The child Component to destroy.The TArgs object to be passed in on initialization.The type of Component to be created.The type of arguments to be given on initiali... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_790256ad230f | unity_docs | scripting | Explain 'Optimize application startup times' in Unity. | Android devices can optimize the startup process for an application to reduce the time it takes the application to become interactive. For Android to do this, the application must indicate when it finishes initialization and becomes interactive for end users. Android then prioritizes work that must complete before the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9cb282b6a456 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.AlignOf` in Unity? Explain its purpose and usage. | UnsafeUtility.AlignOf
Declaration
public static int
AlignOf
();
Returns
int
The alignment size in bytes required for the specified struct type.
Description
Retrieves the minimum memory alignment requirement for a specified struct type.
The
AlignOf
method calculates the minimum alignment required for a s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b0300cac3b7e | unity_docs | rendering | Explain 'Self-Illuminated Diffuse' in Unity. | Note.
Unity 5 introduced the
Standard Shader
which replaces this
shader
.
## Self-Illuminated Properties
Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shader allows you to define bright and dark parts of the object. The alpha channel of a secondary texture will define areas of the obje... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4ddfae5222bf_doc_1 | github | scripting | What does `HandRay` do in this Unity script? Explain its purpose and signature. | Initializes a new instance of the class.The half-life value is optional and is used for the smoothing or filtering function.A smaller half-life results in less smoothing.
Signature:
```csharp
public HandRay(float halfLife = 0.01f)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_638d1d5a3a27 | unity_docs | input | What is `TerrainTools.TerrainPaintUtility.FindTerrainLayerIndex` in Unity? Explain its purpose and usage. | TerrainPaintUtility.FindTerrainLayerIndex
Declaration
public static int
FindTerrainLayerIndex
(
Terrain
terrain
,
TerrainLayer
inputLayer
);
Parameters
Parameter
Description
terrain
Terrain tile.
inputLayer
Terrain layer to search for.
Returns
int
Returns the index of the terrain layer if it exists... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a1c9c5e26da0 | unity_docs | physics | What is `Rigidbody2D.excludeLayers` in Unity? Explain its purpose and usage. | Rigidbody2D.excludeLayers
public
LayerMask
excludeLayers
;
Description
The additional Layers that all
Collider2D
attached to this
Rigidbody2D
should exclude when deciding if a contact with another
Collider2D
should happen or not.
The Layer Collision Matrix defines which Layers can and cannot contact oth... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5af045f4a0da | unity_docs | scripting | In Unity's 'Make the camera perspective oblique', what is 'Setting frustum obliqueness with Lens Shift' and how does it work? | Enable a camera’s
Physical Camera
properties to expose the
Lens Shift
options. You can use these to offset the camera’s focal center along the X and Y axes in a way that minimizes distortion of the rendered image.
Shifting the lens reduces the frustum angle on the side opposite the direction of the shift. For example, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5feb95fd38fb | unity_docs | editor | What is `AI.NavMeshBuildDebugSettings` in Unity? Explain its purpose and usage. | NavMeshBuildDebugSettings
struct in
UnityEngine.AI
/
Implemented in:
UnityEngine.AIModule
Description
Specify which of the temporary data generated while building the NavMesh should be retained in memory after the process has completed.
It is possible to collect and display in the Editor the intermediate data u... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a9e64d1b947c | unity_docs | scripting | What is `Terrain.treeLODBiasMultiplier` in Unity? Explain its purpose and usage. | Terrain.treeLODBiasMultiplier
public float
treeLODBiasMultiplier
;
Description
The multiplier to the current LOD bias used for rendering LOD trees (i.e. SpeedTree trees).
The value by default is 1 and must be greater than 0. The exact LOD bias value used by tree rendering is
QualitySettings.lodBias
* value.
T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_dfeac5175bca | github | scripting | Write a Unity C# script called Environment Data | ```csharp
using RMC.Mini.Samples.Configurator.Standard;
using RMC.Mini.Samples.Configurator.Standard.Gameplay;
using UnityEngine;
namespace RMC.Mini.Samples.Configurator.Mini.Model.Data
{
/// <summary>
/// Defines the customizable characteristics for the <see cref="Environment"/>
/// </summary>
[System... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_316824f8b01a | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.InsertCopyFilesBuildPhase`. | The following usages are known:
10
for embedding frameworks.
13
for embedding app extension content.
16
for embedding watch content.
Returns
string
Returns the GUID of the new phase.
Description
Creates a new copy files build phase for a given target.
The build phase is inserted at the specified position. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_117afec0f67d | unity_docs | editor | Give me an overview of the `TextClipping` class in Unity. | TextClipping
enumeration
Description
Different methods for how the GUI system handles text being too large to fit the rectangle allocated.
Properties
Property
Description
Overflow
Text flows freely outside the element.
Clip
Text gets clipped to be inside the element.
Ellipsis
Text gets clipped to be inside th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b348d0eded0f | unity_docs | performance | What is `Mesh.ApplyAndDisposeWritableMeshData` in Unity? Explain its purpose and usage. | Mesh.ApplyAndDisposeWritableMeshData
Declaration
public static void
ApplyAndDisposeWritableMeshData
(
Mesh.MeshDataArray
data
,
Mesh
mesh
,
Rendering.MeshUpdateFlags
flags
);
Declaration
public static void
ApplyAndDisposeWritableMeshData
(
Mesh.MeshDataArray
data
,
Mesh[]
meshes
,
Rendering.MeshUpda... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6f53fefe43f8 | unity_docs | rendering | Show me a Unity code example for 'Web graphics'. | ame, which means the content of the frame buffer clears regardless of the
Camera.clearFlags
setting. However, you can change this behavior at instantiation time. To do this, set
webglContextAttributes.preserveDrawingBuffer to true
in the
index.html
file of your Web template.
Note
: If you set any
WebGL context attribut... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e124df997fd4 | unity_docs | animation | What is `Animations.ParentConstraint.RemoveSource` in Unity? Explain its purpose and usage. | ParentConstraint.RemoveSource
Declaration
public void
RemoveSource
(int
index
);
Parameters
Parameter
Description
index
The index of the source to remove.
Description
Removes a source from the component.
Throws InvalidOperationException, if the list of sources is empty. Throws ArgumentOutOfRangeException,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3b18aed0a974 | unity_docs | rendering | What is `ShaderUtil.CreateComputeShaderAsset` in Unity? Explain its purpose and usage. | ShaderUtil.CreateComputeShaderAsset
Declaration
public static
ComputeShader
CreateComputeShaderAsset
(
AssetImporters.AssetImportContext
context
,
string
source
);
Parameters
Parameter
Description
context
The context object the asset system uses to register shader dependencies.
source
The string that c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_87035e24068f | unity_docs | editor | What are the parameters of `Search.SearchIndexer.Finish` in Unity? | Description Finalizes the current index, sorting and compiling of all the indexes. ```csharp
using System.Linq;
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
/// <summary>
/// SearchIndexer.Finish is always a threaded operation, meaning that all indexes
/// will be computed in a thread and Search wil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae4352dde793 | unity_docs | scripting | What is `SpeedTreeImporter.bestWindQuality` in Unity? Explain its purpose and usage. | SpeedTreeImporter.bestWindQuality
public int
bestWindQuality
;
Description
Returns the best-possible wind quality on this asset (configured in SpeedTree modeler).
The possible wind quality values are as follows:
0
- Off
1
- Fastest
2
- Fast
3
- Better
4
- Best
5
- Palm (only available on palm-like t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1c6439b5f10e | unity_docs | scripting | What is `Rendering.RenderPipelineManager.activeRenderPipelineDisposed` in Unity? Explain its purpose and usage. | RenderPipelineManager.activeRenderPipelineDisposed
Description
Delegate that you can use to invoke custom code right before
RenderPipelineManager.currentPipeline
is disposed.
Whenever you switch
GraphicsSettings.currentRenderPipeline
or
QualitySettings.renderPipeline
, Unity will dispose the current
RenderPip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dda84b07ed99 | unity_docs | rendering | What is `ParticleSystem.ShapeModule.meshSpawnSpeed` in Unity? Explain its purpose and usage. | ParticleSystem.ShapeModule.meshSpawnSpeed
public
ParticleSystem.MinMaxCurve
meshSpawnSpeed
;
Description
In animated modes, this determines how quickly the particle emission position moves across the Mesh.
The value is specified in terms of the number of complete passes over the Mesh. A value of 2 would mean... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e3638f791235_doc_1 | github | scripting | What does `DefaultScriptTemplate` do in this Unity script? Explain its purpose and signature. | Default script template, used in
Signature:
```csharp
public T DefaultScriptTemplate => _defaultScriptTemplate;
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_a7ed6a416e53 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetImporters.AssetImporterEditor.Awake`. | AssetImporterEditor.Awake
Declaration
protected void
Awake
();
Description
This function is called when the Editor script is started.
Awake is called as the AssetImporterEditor script starts. This happens as the editor is launched and is similar to
MonoBehaviour.Awake
.
```csharp
using UnityEngine;
using Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_146923401ed7 | unity_docs | rendering | What is `Texture2D.requestedMipmapLevel` in Unity? Explain its purpose and usage. | Texture2D.requestedMipmapLevel
public int
requestedMipmapLevel
;
Description
The mipmap level to load.
By default, the mipmap streaming system selects which mipmap to load based on the position of all Cameras. Setting this field forces a specific mipmap to be loaded and overrides the mipmap streaming system. Th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6da2dcd4b0d5 | unity_docs | scripting | What is `IMGUI.Controls.TreeView.DoesItemMatchSearch` in Unity? Explain its purpose and usage. | TreeView.DoesItemMatchSearch
Declaration
protected bool
DoesItemMatchSearch
(
IMGUI.Controls.TreeViewItem
item
,
string
search
);
Parameters
Parameter
Description
item
Item used for matching against the search string.
search
The search string of the TreeView.
Returns
bool
True if item matches search ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fe5d27f27b4d | unity_docs | rendering | In Unity's 'Modify source assets from code', what is 'Applicable classes and properties' and how does it work? | The previously described programming pattern of using local or shared properties for temporary or permanent changes respectively applies for the following asset types:
Asset type
Property for temporary changes
Property for permanent changes Material Renderer.material
Renderer.sharedMaterial Mesh MeshFilter.mesh
MeshFil... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8d03c0bca757 | unity_docs | rendering | What is `PropertyName.ToString` in Unity? Explain its purpose and usage. | PropertyName.ToString
Declaration
public string
ToString
();
Description
For debugging purposes only. Returns the string value representing the string in the Editor.
Returns "UnityEngine.PropertyName" in the player. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ff6174e9740e | unity_docs | scripting | What is `Font.ctor` in Unity? Explain its purpose and usage. | Font Constructor
Declaration
public
Font
();
Declaration
public
Font
(string
name
);
Parameters
Parameter
Description
name
The name of the created Font object.
Description
Create a new Font.
You may want to use this if you need to create Font objects programmatically to set up your own font by assigni... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_086a4ee2bcfb | unity_docs | physics | Explain 'Optimizing arrays' in Unity. | The following page outlines examples to improve the performance of your code when using
arrays
.
## Pass arrays as parameters to methods
Sometimes it might be convenient to write a method that creates a new array, fills the array with values and then returns it. However, if this method is called repeatedly, then new ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6c1170e1e929 | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.AddFolderReference`. | orted.
Returns
string
The GUID of the added folder reference. You can use it later, for example, to add the file for building to targets.
Description
Adds a new folder reference to the list of known files.
The group structure is automatically created to correspond to the project path. To add the folder referen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_55f2625f4699 | github | scripting | Write a Unity C# XR/VR script for Hand Presence | ```csharp
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.XR;
public class HandPresence : MonoBehaviour
{
public bool showController = false;
public InputDeviceCharacteristics controllerCharacteristics;
public List<GameObject> controllerPrefabs;
public... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_0b72043d51e7 | unity_docs | scripting | Show me a Unity C# example demonstrating `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemMove`. | erlapping memory regions by ensuring that data is transferred correctly even when source and destination areas overlap.
This function is essential in scenarios where memory regions may overlap, such as moving elements within an array or buffer. Be cautious when using it to ensure both pointers are valid and the destina... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4740f6d1d463 | unity_docs | physics | In Unity's 'Introduction to rigid body physics', what is 'Rigid body GameObjects without physics-based movement' and how does it work? | There are some cases where you might want the physics system to detect a GameObject, but not to control it. For example, you might want Colliders to detect a GameObject, but you intend to control that GameObject’s movement and position via its
Transform
.
Movement in Unity that is not physics-based is called
kinematic ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7a637da87bbf | unity_docs | physics | What is `ArticulationBody.ResetInertiaTensor` in Unity? Explain its purpose and usage. | ArticulationBody.ResetInertiaTensor
Declaration
public void
ResetInertiaTensor
();
Description
Resets the inertia tensor value and rotation.
Computes the inertia tensor and the inertia tensor rotation from the colliders attached to this articulation body and stores it. When you call this method, the inertia te... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dfb48637443d | unity_docs | scripting | What is `Tilemaps.Tilemap.tilemapPositionsChanged` in Unity? Explain its purpose and usage. | Tilemap.tilemapPositionsChanged
Parameters
Parameter
Description
value
A callback set by a user to notify them when Tiles are changed on a Tilemap.
Description
Callback when Tiles on a Tilemap have changed.
This returns the list of positions on the Tilemap which have been updated. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_805addcc49fc | unity_docs | scripting | What is `Windows.Speech.PhraseRecognitionSystem.OnError` in Unity? Explain its purpose and usage. | PhraseRecognitionSystem.OnError
Parameters
Parameter
Description
value
Delegate that will be invoked when the event occurs.
Description
Event that gets invoked when phrase recognition system encounters an error.
If any errors occurred due to issues the user can fix (e.g. the microphone being unavailable), you ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_82a3aa4121e2 | unity_docs | rendering | What is `ParticleSystem.TrailModule` in Unity? Explain its purpose and usage. | TrailModule
struct in
UnityEngine
/
Implemented in:
UnityEngine.ParticleSystemModule
Description
Script interface for the TrailsModule.
This module adds trails to your particles. For example, you can make the trails stay in the wake of particles as they move, or make them connect each particle in the system to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a2a4d30d6936 | unity_docs | scripting | Show me a Unity C# example demonstrating `MenuItem`. | tem is also added to the context menu in the Project window. For example,
"Assets/Do something"
adds the
Do something
menu item to the context menu in the Project window.
Important:
Only initialize public fields of
[MenuItem]
via the corresponding constructor parameters. Modifying these fields later can lead to ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_12ca7e9e01d8 | unity_docs | scripting | Show me a Unity C# example demonstrating `GraphicsBuffer.Target.CopySource`. | GraphicsBuffer.Target.CopySource
Description
GraphicsBuffer can be used as a source for CopyBuffer.
The source buffer for
Graphics.CopyBuffer
or
CommandBuffer.CopyBuffer
must have
CopySource
target set.
This target is most often combined with other target flags.
```csharp
using UnityEngine;public class Examp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6f1bbda96c01 | unity_docs | ui | Explain 'Get custom styles in C# scripts' in Unity. | You can use the
VisualElement.customStyle
property to get the value of a
custom style property (variables)
applied to an element. However, you can’t directly query it as you would with
VisualElement.style or VisualElement.resolvedStyle
. Instead, do the following:
Register to the CustomStyleResolvedEvent event.
Call th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_48746821626e | unity_docs | physics | Explain 'Emission module reference' in Unity. | The properties in this module affect the rate and timing of
Particle System
emissions.
## Properties
For some properties in this section, you can use different modes to set their value. For information on the modes you can use, refer to
Vary Particle System properties over time
.
Property Function Rate over Time
The ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_27ad36a03c8b | unity_docs | physics | What is `Collider.OnTriggerEnter` in Unity? Explain its purpose and usage. | Collider.OnTriggerEnter(Collider)
Parameters
Parameter
Description
other
The other
Collider
involved in this collision.
Description
Called when a Collider with the
Collider.isTrigger
property overlaps another Collider.
OnTriggerEnter is invoked when two GameObjects with a Collider component touch or overla... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c15ecb071f13 | unity_docs | rendering | In Unity's 'Visualizing vertex data shader examples in the Built-In Render Pipeline', what is 'Visualizing UVs' and how does it work? | The following example shader visualizes the first set of UVs of a
mesh
. This shader is useful for debugging the coordinates.
The code defines a struct called appdata as its
vertex shader
input. This struct takes the vertex position and the first texture coordinate as its inputs.
```
Shader "Debug/UV 1" {
SubShader {
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5b7cf28557e7 | unity_docs | editor | What is `Tilemaps.Tilemap.SetEditorPreviewTile` in Unity? Explain its purpose and usage. | Tilemap.SetEditorPreviewTile
Declaration
public void
SetEditorPreviewTile
(
Vector3Int
position
,
Tilemaps.TileBase
tile
);
Parameters
Parameter
Description
position
Position of the editor preview Tile on the
Tilemap
.
tile
The editor preview
Tile
to be placed the cell.
Description
Sets an editor ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_479a461fceed | unity_docs | rendering | Explain 'Upgrade material assets to URP or HDRP' in Unity. | When you upgrade your project from the Built-In
Render Pipeline
(BiRP) to either the Universal Render Pipeline (URP) or the High Definition Render Pipeline (HDRP), you need to upgrade your materials, otherwise, the materials appear bright pink in Scene view.
Notes:
Make sure there are no shader-related errors in the co... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cc474b038928 | unity_docs | input | Show me a Unity C# example demonstrating `KeyCode.Mouse3`. | KeyCode.Mouse3
Description
Additional (fourth) mouse button.
Use this for detecting mouse button presses. The “3” mouse button is the fourth button on the user’s mouse if any additional buttons exist, for example, extra volume buttons. Unity defines this as the "3" mouse button, as the mouse button numbering begins... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f08e51160e0b | unity_docs | ui | What is `UIElements.ListViewController` in Unity? Explain its purpose and usage. | ListViewController
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.BaseListViewController
/
Implemented in:
UnityEngine.UIElementsModule
Description
List view controller. View controllers of this type are meant to take care of data virtualized by any
ListView
inheritor.
Properties
Property
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b3df5fefc4ce | unity_docs | scripting | Give me an overview of the `ProvisioningProfileType` class in Unity. | ProvisioningProfileType
enumeration
Description
The type of the iOS provisioning profile if manual signing is used.
Properties
Property
Description
Automatic
The provisioning profile type will be determined automatically when building the Xcode project.
Development
Development provisioning profiles are used to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_34836cdf9e69 | unity_docs | rendering | What is `MaterialPropertyBlock.SetTexture` in Unity? Explain its purpose and usage. | MaterialPropertyBlock.SetTexture
Declaration
public void
SetTexture
(string
name
,
Texture
value
);
Declaration
public void
SetTexture
(int
nameID
,
Texture
value
);
Declaration
public void
SetTexture
(string
name
,
RenderTexture
value
,
Rendering.RenderTextureSubElement
element
);
Declarat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_9730fb7b22b3 | unity_docs | networking | Explain 'Connect the profiler to UWP' in Unity. | You can use the Unity profiler to get performance information about your application. For more information, refer to
Profiling your application
.
Due to restrictions with UWP, you won’t be able to connect the profiler if the Unity Editor is running on the same machine as UWP. Therefore, make sure to run the Unity Edito... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_669178599c89 | unity_docs | rendering | In Unity's 'Toggle shader keywords in a script', what is 'Prevent global keyword objects affecting shaders' and how does it work? | To prevent global keyword objects affecting shader keywords, give the shader keyword local scope instead of global scope.
Add _local to the keyword directive. For example:
```
#pragma shader_feature_local RED
```
Now the shader isn’t affected by global Shader APIs. You can only enable or disable the keyword using Mater... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cb1e99068907 | unity_docs | scripting | What is `Windows.WebCam.PhotoCapture.CreateAsync` in Unity? Explain its purpose and usage. | PhotoCapture.CreateAsync
Declaration
public static void
CreateAsync
(
Windows.WebCam.PhotoCapture.OnCaptureResourceCreatedCallback
onCreatedCallback
);
Declaration
public static void
CreateAsync
(bool
showHolograms
,
Windows.WebCam.PhotoCapture.OnCaptureResourceCreatedCallback
onCreatedCallback
);
Param... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5b40001cb9a4 | unity_docs | scripting | What is `Android.AndroidAssetPackStatus.Downloading` in Unity? Explain its purpose and usage. | AndroidAssetPackStatus.Downloading
Description
Indicates that the device is downloading the Android asset pack.
Additional resources:
AndroidAssetPacks.DownloadAssetPackAsync
,
AndroidAssetPacks.GetAssetPackStateAsync
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8f4a6908cfca | unity_docs | scripting | What is `Search.ItemSelectors.CreateColumn` in Unity? Explain its purpose and usage. | ItemSelectors.CreateColumn
Declaration
public static
Search.SearchColumn
CreateColumn
(string
path
,
string
selector
,
string
provider
,
Search.SearchColumnFlags
options
);
Parameters
Parameter
Description
path
Column path.
selector
Column selector.
provider
Column provider.
options
Column flags... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4dfb2af4aa46 | unity_docs | scripting | What is `Search.SearchContext.asyncItemReceived` in Unity? Explain its purpose and usage. | SearchContext.asyncItemReceived
Parameters
Parameter
Description
value
Event is used to receive any asynchronous search result.
Description
This event is used to receive any asynchronous search result. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_40092db695ab | unity_docs | rendering | What is `Material.GetBuffer` in Unity? Explain its purpose and usage. | Material.GetBuffer
Declaration
public
GraphicsBufferHandle
GetBuffer
(string
name
);
Parameters
Parameter
Description
name
The name of the graphics buffer resource property to return.
Returns
GraphicsBufferHandle
Returns the handle of the graphics buffer resource property.
Description
Get a named ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4300a4d961ca | unity_docs | scripting | In Unity's 'tvOS Player Settings', what is 'Configuration' and how does it work? | tvOS has the same Configuration settings as iOS, except for one - the
Require Extended Game Controller
setting.
If your application requires a game controller, enable the
Require Extended Game Controller
setting. For more information, see the Apple Developer documentation on
Game Controllers
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7e871d2c83b9 | unity_docs | editor | Show me a Unity code example for 'Create looping transitions'. | y template.
In your
Project window
, create a folder named
loop-transition-example
.
Right-click in the folder, and select
Create
>
UI Toolkit
>
Editor Window
.
In the
UI Toolkit Editor Window Creator
window, enter
LoopingExample
.
Save your changes. This creates three files as
LoopingExample.cs
,
LoopingExample.uss
, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2e0381e6cbf7 | unity_docs | audio | In Unity's 'Native audio plug-in SDK', what is 'Important files your DSP and GUI code uses' and how does it work? | The
AudioPluginInterface.h
file has the necessary structures, types, and function declarations required to create a custom audio plug-in.
Both native DSP and GUI DLLs can contain multiple plug-ins. To add multiple plug-in effects within the same DLL, Unity provides additional code to handle the effect definition and pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_34a1c2438ba8 | unity_docs | rendering | What is `PlayerSettings.iOS.SetLaunchScreenImage` in Unity? Explain its purpose and usage. | PlayerSettings.iOS.SetLaunchScreenImage
Declaration
public static void
SetLaunchScreenImage
(
Texture2D
image
,
iOSLaunchScreenImageType
type
);
Description
Sets the image to display on screen when the game launches for the specified iOS device.
This function adds the specified image to the launch screen'... | 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.