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_9df5dd707231 | unity_docs | scripting | What is `RenderPickingArgs.NeedToRenderForPicking` in Unity? Explain its purpose and usage. | RenderPickingArgs.NeedToRenderForPicking
Declaration
public bool
NeedToRenderForPicking
(
GameObject
go
);
Parameters
Parameter
Description
go
The GameObject to test.
Returns
bool
True if the GameObject should be rendered.
Description
Checks whether a GameObject should be rendered in the current ren... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5148b8f6b68c | unity_docs | scripting | What is `ObjectChangeEvents.ObjectChangeEventsHandler` in Unity? Explain its purpose and usage. | ObjectChangeEvents.ObjectChangeEventsHandler
Declaration
public delegate void
ObjectChangeEventsHandler
(ref
ObjectChangeEventStream
stream
);
Parameters
Parameter
Description
stream
The stream of events that have been recorded since the last frame.
Description
The delegate used for the event publishing ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2289a2093b91 | unity_docs | editor | What is `PrefabUtility.ApplyAddedGameObject` in Unity? Explain its purpose and usage. | PrefabUtility.ApplyAddedGameObject
Declaration
public static void
ApplyAddedGameObject
(
GameObject
gameObject
,
string
assetPath
,
InteractionMode
action
);
Parameters
Parameter
Description
gameObject
The added GameObject on the Prefab instance to apply.
assetPath
The path of the Prefab Asset to appl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_292ccc30f347 | unity_docs | scripting | What is `JsonUtility.FromJsonOverwrite` in Unity? Explain its purpose and usage. | JsonUtility.FromJsonOverwrite
Declaration
public static void
FromJsonOverwrite
(string
json
,
object
objectToOverwrite
);
Parameters
Parameter
Description
json
The JSON representation of the object.
objectToOverwrite
The object that should be overwritten.
Description
Overwrite data in an object by readi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a705c55fa063 | unity_docs | ui | What is `UIElements.RadioButton.ctor` in Unity? Explain its purpose and usage. | RadioButton Constructor
Declaration
public
RadioButton
();
Description
Creates a
RadioButton
with no label.
Declaration
public
RadioButton
(string
label
);
Parameters
Parameter
Description
label
The Label text.
Description
Creates a
RadioButton
with a Label and a default manipulator.
The ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_87ece60c7c19 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormatUtility.IsSRGBFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.IsSRGBFormat
Declaration
public static bool
IsSRGBFormat
(
Experimental.Rendering.GraphicsFormat
format
);
Description
Returns true if the format performs sRGB to linear on read and linear to sRGB on w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a603881c749e | unity_docs | scripting | What is `UIElements.PanelSettings` in Unity? Explain its purpose and usage. | PanelSettings
class in
UnityEngine.UIElements
/
Inherits from:
ScriptableObject
/
Implemented in:
UnityEngine.UIElementsModule
Description
Defines a Panel Settings asset that instantiates a panel at runtime. The panel makes it possible for Unity to display
UXML-file based UI in the Game view.
The UIDocum... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5a8308d22f1b | unity_docs | xr | What is `AssetPreview.IsLoadingAssetPreview` in Unity? Explain its purpose and usage. | AssetPreview.IsLoadingAssetPreview
Declaration
public static bool
IsLoadingAssetPreview
(int
instanceID
);
Parameters
Parameter
Description
instanceID
InstanceID of the assset that a preview has been requested for by: AssetPreview.GetAssetPreview().
Description
Loading previews is asynchronous so it is use... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_611505968336 | unity_docs | rendering | What is `Rect` in Unity? Explain its purpose and usage. | Rect
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
A 2D Rectangle defined by X and Y position, width and height.
Unity uses a number of 2D coordinate spaces, most of which define X as increasing to the right, and Y increasing upwards.
The one exception is in the GUI and GUILayout c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b0b4748acda3 | unity_docs | editor | Show me a Unity C# example demonstrating `FileUtil.CopyFileOrDirectory`. | FileUtil.CopyFileOrDirectory
Declaration
public static void
CopyFileOrDirectory
(string
source
,
string
dest
);
Description
Copies a file or a directory.
This function's path can be relative to the project root folder or be an absolute path.
All file separators should be forward ones "/".
Make sure to include... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3eb863572bdc | unity_docs | editor | What is `Search.SearchExpressionEvaluatorSignatureOverloadAttribute` in Unity? Explain its purpose and usage. | SearchExpressionEvaluatorSignatureOverloadAttribute
class in
UnityEditor.Search
Description
Allows user to add more function signature overload to a
SearchExpressionEvaluatorAttribute
.
Here is an evaluator with 2 functional signatures:
```csharp
[Description("Convert arguments to a string allowing you to forma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c376f159230 | unity_docs | physics | Give me an overview of the `JointMotor2D` class in Unity. | JointMotor2D
struct in
UnityEngine
/
Implemented in:
UnityEngine.Physics2DModule
Description
Parameters for the optional motor force applied to a Joint2D.
Additional resources:
HingeJoint2D
class,
SliderJoint2D
class.
Properties
Property
Description
maxMotorTorque
The maximum force that can be applied t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8536a8533af6 | unity_docs | editor | Give me an overview of the `ArrayUtility` class in Unity. | ArrayUtility
class in
UnityEditor
Description
Helpers for builtin arrays.
Static Methods
Method
Description
Add
Appends item to the end of array.
AddRange
Appends items to the end of array.
ArrayEquals
Compares two arrays.
ArrayReferenceEquals
Compares two array references.
Clear
Clears the array.
Contain... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_81380eda49f3 | unity_docs | physics | What are the parameters of `Physics.Linecast` in Unity? | Description Returns true if there is any collider intersecting the line between start and end . ```csharp
using UnityEngine;
using System.Collections;public class ExampleClass : MonoBehaviour
{
public Transform target;
void Update()
{
if (Physics.Linecast(transform.position, target.position))
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c0eb8290d5f2 | unity_docs | xr | What is `XR.XRDisplaySubsystem.GetMirrorViewBlitDesc` in Unity? Explain its purpose and usage. | XRDisplaySubsystem.GetMirrorViewBlitDesc
Obsolete
GetMirrorViewBlitDesc(RenderTexture, out XRMirrorViewBlitDesc) is deprecated. Use GetMirrorViewBlitDesc(RenderTexture, out XRMirrorViewBlitDesc, int) instead.
Declaration
public bool
GetMirrorViewBlitDesc
(
RenderTexture
mirrorRt
,
out
XR.XRDisplaySubsystem.XRM... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_e88aa342a4c2_doc_5 | github | scripting | What does `Initialize` do in this Unity script? Explain its purpose and signature. | Initializes the voice provider with a JSON configuration and 3D audio properties.JSON configuration string for the voice provider.Properties for 3D audio positioning.
Signature:
```csharp
public void Initialize(string _configuration, Voice3DProperties _voice3DProperties)
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_31e961051beb | unity_docs | math | What is `XR.XRNodeState.TryGetPosition` in Unity? Explain its purpose and usage. | XRNodeState.TryGetPosition
Declaration
public bool
TryGetPosition
(out
Vector3
position
);
Returns
bool
True if the position was set in the output parameter. False if the position is not available due to limitations of the underlying platform or if the node is not presently tracked.
Description
Attempt ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1b2e23386ead | unity_docs | rendering | What is `MaterialEditor.GetRectAfterLabelWidth` in Unity? Explain its purpose and usage. | MaterialEditor.GetRectAfterLabelWidth
Declaration
public static
Rect
GetRectAfterLabelWidth
(
Rect
r
);
Parameters
Parameter
Description
r
Line Rect.
Returns
Rect
A sub rect of the input Rect.
Description
Utility method for GUI layouting ShaderGUI. This is the rect after the label which can be use... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0198118e2afc | unity_docs | rendering | What is `TerrainLayer.smoothnessSource` in Unity? Explain its purpose and usage. | TerrainLayer.smoothnessSource
public
TerrainLayerSmoothnessSource
smoothnessSource
;
Description
Choose the source for smoothness value.
Used for choosing where smoothness value comes from when
TerrainLayer.diffuseTexture
has an alpha channel.
Setting to
TerrainLayerSmoothnessSource.Constant
results in ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6ab650cdf3ef | unity_docs | rendering | In Unity's 'Smart merge', what is 'Setting up smart merging in Unity' and how does it work? | In the Version Control project settings (menu:
Edit
>
Project Settings
>
Version Control
), when you select a third-party version control tool in the Mode field, for example Perforce or PlasticSCM, the
Smart Merge
is displayed. The menu has the following options:
Off
: use only the default merge tool set in the prefere... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6ea0274cae47 | unity_docs | editor | What is `EditorUserBuildSettings.SwitchActiveBuildTarget` in Unity? Explain its purpose and usage. | EditorUserBuildSettings.SwitchActiveBuildTarget
Obsolete
Please use SwitchActiveBuildTarget(BuildTargetGroup targetGroup, BuildTarget target).
Declaration
public static bool
SwitchActiveBuildTarget
(
BuildTarget
target
);
Declaration
public static bool
SwitchActiveBuildTarget
(
BuildTargetGroup
targetGrou... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45e01b4db6d5 | unity_docs | scripting | What is `Callbacks.OnOpenAssetAttributeMode` in Unity? Explain its purpose and usage. | OnOpenAssetAttributeMode
enumeration
Description
Indicates whether
OnOpenAssetAttribute
decorated method is a validation function that checks if asset opening is handled by Unity or a custom script.
Properties
Property
Description
Execute
Indicates that OnOpenAssetAttribute decorated method is an opening func... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0754f853b908 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetImporters.ScriptedImporterAttribute.fileExtensions`. | ssign the same file name extension to more than one ScriptedImporter. If you do, an error message is thrown, and files with that file name extension will not be imported by any ScriptedImporter.
Note: You cannot override Unity's built-in default importers. For example, if you include ".prefab" in your file name extens... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4872aa868fd0 | unity_docs | audio | What is `AudioChorusFilter.delay` in Unity? Explain its purpose and usage. | AudioChorusFilter.delay
public float
delay
;
Description
Chorus delay in ms. 0.1 to 100.0. Default = 40.0 ms.
```csharp
using UnityEngine;[RequireComponent(typeof(AudioSource))]
[RequireComponent(typeof(AudioChorusFilter))]
public class Example : MonoBehaviour
{
// Dont use delay on the filter.
void Start()
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8f96e9c476b3 | unity_docs | rendering | What is `TerrainDetailMeshRenderMode.Grass` in Unity? Explain its purpose and usage. | TerrainDetailMeshRenderMode.Grass
Description
Uses the grass shader for rendering details
In this mode, Unity uses a custom grass shader for rendering details.
Additional resources:
DetailRenderMode.Grass
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_fdaea37fea4e | github | scripting | Write a Unity C# UI script for Game Process | ```csharp
using System.Threading;
using AntiMonoBehaviour.Views;
using Cysharp.Threading.Tasks;
using UnityEngine;
using VContainer;
namespace AntiMonoBehaviour.Processes
{
public interface IGameProcessParams
{
GameObject GameViewPrefab { get; }
}
public class GameProcess : ProcessBase
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c8349d299d3c | unity_docs | rendering | Show me a Unity C# example demonstrating `EditorUtility.SaveFilePanel`. | lays a dialog that prompts the user for a path to save an asset to. It does not create the file or parent directories. You are responsible for creating and writing to the file at the returned path location.
Note:
The dialog has a Save button and a Cancel button. If you click the Cancel button, the window closes wit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5b0c5e9d3ed0 | unity_docs | scripting | What is `Rendering.RasterState.conservative` in Unity? Explain its purpose and usage. | RasterState.conservative
public bool
conservative
;
Description
Enables conservative rasterization. Before using check for support via
SystemInfo.supportsConservativeRaster
property.
Additional resources:
SystemInfo
class. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1a82f34c2564 | unity_docs | performance | What is `Unity.Jobs.IJobForExtensions.Schedule` in Unity? Explain its purpose and usage. | IJobForExtensions.Schedule
Declaration
public static
Unity.Jobs.JobHandle
Schedule
(T
jobData
,
int
arrayLength
,
Unity.Jobs.JobHandle
dependency
);
Parameters
Parameter
Description
jobData
The job and data to schedule.
arrayLength
The number of iterations to execute the for loop over.
dependency
T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1c1c35a815a3 | unity_docs | editor | In Unity's 'Customize the asset package cache location', what is 'Using the Preferences window' and how does it work? | To use the
Preferences window
to override the default location of the asset package cache, follow these steps.
Use one of the following methods to open the Preferences window:
Use the Unity Editor’s menus, as described in
Preferences
.
Open the Package Manager window, click the settings icon
, and select
Preferences
.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c4ee3ec15b11 | unity_docs | rendering | What is `LightmapsMode` in Unity? Explain its purpose and usage. | LightmapsMode
enumeration
Description
Lightmap (and lighting) configuration mode, controls how lightmaps interact with lighting and what kind of information they store.
Properties
Property
Description
NonDirectional
Light intensity (no directional information), encoded as 1 lightmap.
CombinedDirectional
Direct... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_364f0d673a7e | github | scripting | Write a Unity C# MonoBehaviour script called Pooling | ```csharp
using System.Collections.Generic;
using UnityEngine;
namespace pooling
{
//Class responsable for pooling Monobehaviours
//No GameObject is destroyed, is Released (each class that inherits PoolingObject may implement this method and others if need)
public class Pooling<T> : List<T> where T : MonoBehavi... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_3f53ef67a3be | unity_docs | editor | Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.AddRemotePackageReferenceAtBranch`. | t.AddRemotePackageReferenceAtBranch
Declaration
public string
AddRemotePackageReferenceAtBranch
(string
url
,
string
branch
);
Parameters
Parameter
Description
url
The URL of the repository.
branch
The name of the branch in the repository.
Returns
string
Returns the GUID of the remote package referenc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6927e601019e | unity_docs | animation | In Unity's 'Avatar Mapping tab reference', what is 'Saving and reusing Avatar data (Human Template files)' and how does it work? | You can save the mapping of bones in your skeleton to the Avatar on disk as a
Human Template file
(extention
*.ht
). You can reuse this mapping for any character. For example, you want to put the Avatar mapping under source control and you prefer to commit text-based files; or perhaps you want to parse the file with yo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_18fa51875142 | unity_docs | scripting | What is `Rendering.BatchFilterSettings.layer` in Unity? Explain its purpose and usage. | BatchFilterSettings.layer
public byte
layer
;
Description
The layer to use for draw commands in this draw range.
This corresponds to
GameObject.layer
and allows you to control which draw commands Unity renders in this draw range. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_60118965c1d2 | unity_docs | scripting | Give me an overview of the `WindZoneMode` class in Unity. | WindZoneMode
enumeration
Description
Modes a Wind Zone can have, either Spherical or Directional.
You can have more than one Spherical Wind Zone in a Scene, but it does not make much
sense to have more than one Directional Wind Zone in your Scene as it affects
the whole Scene. This Wind Zone Mode is used by the
W... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8c4e5326d255 | unity_docs | rendering | Show me a Unity C# example demonstrating `GL.invertCulling`. | nvertCulling
;
Description
Select whether to invert the backface culling (true) or not (false).
This flag can "flip" the culling mode of all rendered objects. Major use case: rendering reflections for mirrors, water etc. Since virtual camera for rendering the reflection is mirrored, the culling order has to be inv... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f47005897064 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.LoadAllAssetRepresentationsAtPath`. | ll sub-assets at
assetPath
.
This method only returns sub-assets that are visible in the Project view.
All paths are relative to the project folder, for example: "Assets/MyTextures/hello.png"
Note
: Sub-assets can be added explicitly via
AssetDatabase.AddObjectToAsset
Additional resources:
AssetDatabase.LoadMainA... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_37c4a8bff223 | unity_docs | rendering | What is `ModelImporterMaterialSearch.Local` in Unity? Explain its purpose and usage. | ModelImporterMaterialSearch.Local
Description
Search in local Materials folder.
Unity will try to locate the material in local Materials folder, i.e. in path modelFilePath/Materials.
For example: if model is Assets/Model/MyModel.fbx, then it will try to locate the material in Assets/Model/Materials folder.
Addition... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f3c2dbe5030b | unity_docs | editor | What is `AnimationMode.AddPropertyModification` in Unity? Explain its purpose and usage. | AnimationMode.AddPropertyModification
Declaration
public static void
AddPropertyModification
(
EditorCurveBinding
binding
,
PropertyModification
modification
,
bool
keepPrefabOverride
);
Parameters
Parameter
Description
binding
Description of the animation clip curve being modified.
modification
Objec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_64bfad459347 | unity_docs | xr | What is `MPE.EventService` in Unity? Explain its purpose and usage. | EventService
class in
UnityEditor.MPE
Description
The EventService is a singleton implementation of a
ChannelClient
that runs on all instances of Unity. It is connected to the "events" channel and allows a Unity instance to send JSON messages to other
EventService
s in external process, or other instances of Un... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1aa6b10bd21d | unity_docs | editor | What are the parameters of `EditorGUI.ProgressBar` in Unity? | Description Makes a progress bar. Value goes from 0 to 1, where 0 means 0% of the bar filled and 1
means the bar is at 100% fully filled Progress bar in an Editor Window. ```csharp
using UnityEngine;
using System.Collections;
using UnityEditor;// Draw the armor and damage with bars in an Editor Windowpublic class Edit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0ffabf6aa50b | unity_docs | rendering | Explain 'Upgrade to Unity 2022 LTS' in Unity. | This page lists changes in Unity 2022 LTS version which might affect existing projects when you upgrade them from a 2021 version to 2022 LTS.
Note
: 2022 LTS is also known as 2022.3.0.
## Page Outline
Articulation Drive forceLimit property now accepts force input instead of impulse
Change to generated lightmap UVs
Ch... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e4b4aadc1b7 | unity_docs | scripting | What is `ParticleSystem.MainModule.useUnscaledTime` in Unity? Explain its purpose and usage. | ParticleSystem.MainModule.useUnscaledTime
public bool
useUnscaledTime
;
Description
When true, use the unscaled delta time to simulate the Particle System. Otherwise, use the scaled delta time.
This is useful for playing effects whilst the game is paused and [[Time.timeScale] is set to zero.
```csharp
using U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b1fcd0c900bf | unity_docs | physics | In Unity's 'Choose a collision detection mode', what is 'Select a collision detection mode' and how does it work? | To select an algorithm, set the physics body’s
Collision Detection
property in one of the following ways:
In the Editor: On the Rigidbody or Articulation Body component Inspector , change the
Collision Detection
property.
In code: Use the API properties
Rigidbody.collisionDetectionMode and ArticulationBody.collisionDet... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2f0cedc56ce9 | unity_docs | scripting | Show me a Unity C# example demonstrating `Networking.DownloadHandlerAssetBundle`. | way the AssetBundle system works, all AssetBundles must have an address associated with them. Generally, this is the nominal URL at which they're located (meaning the URL before any redirects). In almost all cases, you should pass in the same URL as you passed to the UnityWebRequest. When using the High Level API (HLAP... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7b37d55e6a2b | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.Category.ctor` in Unity? Explain its purpose and usage. | Category Constructor
Declaration
public
Category
();
Declaration
public
Category
(
Unity.Android.Gradle.Manifest.Category
category
);
Parameters
Parameter
Description
category
Element to copy.
Description
Element constructor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d693c151645d | unity_docs | ui | What is `UIElements.RadioButton.checkmarkUssClassName` in Unity? Explain its purpose and usage. | RadioButton.checkmarkUssClassName
public static string
checkmarkUssClassName
;
Description
USS class name of checkmark in RadioButton elements.
Unity adds this USS class to the checkmark sub-element of the
RadioButton
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0bb8838e67f0 | unity_docs | scripting | Give me an overview of the `Editor` class in Unity. | Editor
class in
UnityEditor
/
Inherits from:
ScriptableObject
Description
Derive from this base class to create a custom inspector or editor for your custom object.
```csharp
using UnityEngine;
using System.Collections;// This is not an editor script.
public class MyPlayer : MonoBehaviour
{
public int armor = ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce1575715ead | unity_docs | scripting | What is `InspectorOrderAttribute.ctor` in Unity? Explain its purpose and usage. | InspectorOrderAttribute Constructor
Declaration
public
InspectorOrderAttribute
(
InspectorSort
inspectorSort
,
InspectorSortDirection
sortDirection
);
Parameters
Parameter
Description
inspectorSort
Defines if enum should be shown sorted by name or by value.
sortDirection
Defines if enum should be shown... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_518d99dc99f6 | unity_docs | scripting | What is `UIElements.Experimental.StyleValues.borderColor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StyleValues.borderColor
public
Color
borderColor
;
Description
Color of the border to paint inside the element's box. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5d1445c8a4a6 | unity_docs | xr | What is `UnityEngine.UnityWebRequestTextureModule` in Unity? Explain its purpose and usage. | UnityEngine.UnityWebRequestTextureModule
Description
The UnityWebRequestTexture module provides the DownloadHandlerTexture class to use UnityWebRequest to download Textures.
Classes
Class
Description
DownloadHandlerTexture
A DownloadHandler subclass specialized for downloading images for use as Texture objects.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce03d0c399cf | unity_docs | editor | What is `HyperLinkClickedEventArgs` in Unity? Explain its purpose and usage. | HyperLinkClickedEventArgs
class in
UnityEditor
Description
Arguments for the event
EditorGUI.hyperLinkClicked
.
Properties
Property
Description
hyperLinkData
Parameters found in the hyperlink tag. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4a082a36b6a8 | unity_docs | scripting | What is `Rendering.CommandBufferExtensions.SwitchIntoFastMemory` in Unity? Explain its purpose and usage. | CommandBufferExtensions.SwitchIntoFastMemory
Declaration
public static void
SwitchIntoFastMemory
(
Rendering.CommandBuffer
cmd
,
Rendering.RenderTargetIdentifier
rid
,
Rendering.FastMemoryFlags
fastMemoryFlags
,
float
residency
,
bool
copyContents
);
Parameters
Parameter
Description
rid
The render t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7c49924c3483 | unity_docs | editor | Explain 'SpeedTree Import Settings window' in Unity. | When you put SpeedTree files in your Unity project’s Assets folder, Unity automatically imports and stores them as Unity assets. To view the import settings in the Inspector , select the file in the Project window. To customize how Unity imports the selected file, use the properties on the Model and Materials tabs on t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f50f54b994b5 | unity_docs | scripting | What is `MonoBehaviour.OnTransformChildrenChanged` in Unity? Explain its purpose and usage. | MonoBehaviour.OnTransformChildrenChanged()
Description
Called when the list of direct children of a GameObject's Transform changes.
The following changes to direct children of a GameObject invoke
OnTransformChildrenChanged
:
Adding a new child object to the GameObject's Transform.
Removing a child object.
Movi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_81d0906eeefa | unity_docs | scripting | Show me a Unity C# example demonstrating `AudioSource.SetScheduledEndTime`. | eaning that the sound will stop when reaching that time, regardless of when it was started. So if you have a 5 second long sound and want it to play at time T and stop after 3 seconds (i.e. silencing the last 2 seconds of the sound), you need to specify the end time to be T+3. This function is useful in music systems t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ecef5bd81f49 | unity_docs | ui | Explain 'Bindable elements reference' in Unity. | This page lists the bindable elements from different namespaces.
## UnityEditor.UIElements
The following are the bindable elements from the
UnityEditor.UIElements
namespace:
## Base Class
BaseField BaseSlider BaseBoolField BaseCompositeField BaseListView BaseTreeView BaseVerticalCollectionView TextInputBaseField Ba... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a729d9481b32 | unity_docs | scripting | What is `HumanTrait.GetParentBone` in Unity? Explain its purpose and usage. | HumanTrait.GetParentBone
Declaration
public static int
GetParentBone
(int
i
);
Parameters
Parameter
Description
i
Humanoid bone index to get parent from.
Returns
int
Humanoid bone index of parent.
Description
Returns parent humanoid bone index of a bone. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_b28f84f894a0 | github | scripting | Write a Unity C# XR/VR script for Hide Object When Interactor Blocked | ```csharp
using UnityEngine.XR.Interaction.Toolkit.Interactors;
using UnityEngine.XR.Interaction.Toolkit.Interactors.Visuals;
namespace UnityEngine.XR.Interaction.Toolkit.Samples.Hands
{
/// <summary>
/// Hides the specified GameObject when the associated interactor is blocked by an interaction within its grou... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_19d0813c1f1b | unity_docs | scripting | Give me an overview of the `DecoratorDrawer` class in Unity. | DecoratorDrawer
class in
UnityEditor
/
Inherits from:
GUIDrawer
Description
Base class to derive custom decorator drawers from.
A DecoratorDrawer is similar to a
PropertyDrawer
, except that it doesn't draw a property but rather draws decorative elements based purely on the data it gets from its corresponding ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e8e8f65f42ee | unity_docs | rendering | In Unity's 'SubShader tags in ShaderLab reference', what is 'Render pipeline compatibility' and how does it work? | Feature name Universal Render Pipeline
(URP)
High Definition Render Pipeline (HDRP)
Custom SRP
Built-in Render Pipeline
ShaderLab: SubShader Tags block Yes Yes Yes Yes
ShaderLab: RenderPipeline SubShader tag Yes Yes No No
ShaderLab: Queue SubShader tag Yes Yes Yes Note:
in a custom SRP, you can define your own renderin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_28dc1424c485 | unity_docs | scripting | What is `AI.NavMeshBuildSettings.agentHeight` in Unity? Explain its purpose and usage. | NavMeshBuildSettings.agentHeight
public float
agentHeight
;
Description
The height of the agent for baking in world units.
NavMesh will be removed from areas with a ceiling lower than this height. The build process does some quantization, so make sure that spaces you intend to be walkable have some extra head r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0e2117a8bdf2 | unity_docs | rendering | Show me a Unity C# example demonstrating `Resources.LoadAll`. | Loads all assets in a folder or file at
path
in a Resources folder.
If
path
refers to a folder, all assets in the folder will be returned.
If
path
refers to a file, only that asset will be returned.
The
path
is relative to any Resources folder inside the Assets folder of your project.
Note:
All asset names an... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9d0193e3ae39 | unity_docs | animation | What is `AnimationClip.events` in Unity? Explain its purpose and usage. | AnimationClip.events
public AnimationEvent[]
events
;
Description
Animation Events for this animation clip.
Modified events will only persist until play mode
is exited or the player is quit. If you want to add an event to a clip persistently,
use
AnimationUtility.SetAnimationEvents
from the Unity editor.
Add... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_59d4df313a57 | github | scripting | Write a Unity C# ScriptableObject for Global Settings | ```csharp
using UnityEngine;
namespace E
{
/// <summary>
/// Settings of global system.
/// </summary>
public class GlobalSettings : ScriptableObject
{
public enum UpdateMethod
{
Update,
LateUpdate,
FixedUpdate
}
private static Gl... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
gh_b763f076b344 | github | scripting | Write a Unity C# XR/VR script for On Button Press | ```csharp
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.InputSystem;
/// <summary>
/// Checks for button input on an input action
/// </summary>
public class OnButtonPress : MonoBehaviour
{
[Tooltip("Actions to check")]
public InputAction action = null;
// When the button is pressed
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7632fa7f1475 | unity_docs | rendering | What is `CanvasRenderer.SetAlpha` in Unity? Explain its purpose and usage. | CanvasRenderer.SetAlpha
Declaration
public void
SetAlpha
(float
alpha
);
Parameters
Parameter
Description
alpha
Alpha.
Description
Set the alpha of the renderer. Will be multiplied with the
UIVertex
alpha and the
Canvas
alpha. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4a685e14bffe | unity_docs | rendering | What is `LightingSettings.environmentImportanceSampling` in Unity? Explain its purpose and usage. | LightingSettings.environmentImportanceSampling
public bool
environmentImportanceSampling
;
Description
Determines whether Progressive Lightmappers use importance sampling when they sample environment lighting while baking.
Using importance sampling for environment lighting can reduce noise and produce cleaner ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f61454039626 | unity_docs | rendering | What is `PlayerSettings.virtualRealitySplashScreen` in Unity? Explain its purpose and usage. | PlayerSettings.virtualRealitySplashScreen
public static
Texture2D
virtualRealitySplashScreen
;
Description
Virtual Reality specific splash screen.
This is only utilized if Virtual Reality support is enabled. The image is displayed in front of the user while loading the first Scene in a black room. Any size i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_113767eb2ce5 | unity_docs | math | What is `Compilation.CompilationPipeline.GetSystemAssemblyDirectories` in Unity? Explain its purpose and usage. | CompilationPipeline.GetSystemAssemblyDirectories
Declaration
public static string[]
GetSystemAssemblyDirectories
(
ApiCompatibilityLevel
apiCompatibilityLevel
);
Returns
string[]
Returns an array populated by absolute directory paths.
Description
Use this to get a list of directories containing system re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4bc2f30e169d | unity_docs | editor | What is `Unity.Profiling.Memory.MemoryProfiler.TakeSnapshot` in Unity? Explain its purpose and usage. | MemoryProfiler.TakeSnapshot
Declaration
public static void
TakeSnapshot
(string
path
,
Action<string,bool>
finishCallback
,
Unity.Profiling.Memory.CaptureFlags
captureFlags
);
Declaration
public static void
TakeSnapshot
(string
path
,
Action<string,bool>
finishCallback
,
Action<string,bool,DebugScreenCapt... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6632fa94d66b | unity_docs | scripting | Show me a Unity C# example demonstrating `GameObject.scene`. | GameObject.scene
public
SceneManagement.Scene
scene
;
Description
The Scene that contains the GameObject.
```csharp
//Output the name of the Scene this GameObject belongs tousing UnityEngine;
using UnityEngine.SceneManagement;public class Example : MonoBehaviour
{
void Start()
{
Scene scene = gameObject.s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_29fe83ffbcb6 | unity_docs | scripting | What is `Networking.UnityWebRequest.SendWebRequest` in Unity? Explain its purpose and usage. | UnityWebRequest.SendWebRequest
Declaration
public
Networking.UnityWebRequestAsyncOperation
SendWebRequest
();
Description
Begin communicating with the remote server.
After calling this method, the
UnityWebRequest
will perform DNS resolution (if necessary), transmit an HTTP request to the remote server at th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_898b71032023 | unity_docs | rendering | In Unity's 'Change or detect the active render pipeline', what is 'Determining the active render pipeline' and how does it work? | Settings in both
Graphics settings and Quality settings
determine the active render pipeline.
For each quality level in the Quality settings window, Unity uses the Render Pipeline Asset assigned to
Render Pipeline Asset
. If the property is unassigned, Unity uses the Render Pipeline Asset assigned to
Default Render Pip... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_71ceedeff9d4 | unity_docs | scripting | What is `Input.mouseScrollDelta` in Unity? Explain its purpose and usage. | Input.mouseScrollDelta
public static
Vector2
mouseScrollDelta
;
Description
The current mouse scroll delta. (Read Only)
Note
: This API is part of the legacy Input Manager. The recommended best practice is that you don't use this API in new projects. For new projects, use the Input System package. To learn mo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e7d0ace9e31 | unity_docs | editor | What is `SerializedProperty.NextVisible` in Unity? Explain its purpose and usage. | SerializedProperty.NextVisible
Declaration
public bool
NextVisible
(bool
enterChildren
);
Description
Move to next visible property.
Additional resources:
Next
,
hasVisibleChildren
,
isExpanded
,
Reset
,
HideInInspector
.
```csharp
using System;
using System.Text;
using UnityEngine;
using UnityEditor;pub... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_916db49791df | unity_docs | rendering | What is `SpeedTreeImporter.windQualities` in Unity? Explain its purpose and usage. | SpeedTreeImporter.windQualities
public int[]
windQualities
;
Description
Gets and sets an array of integers of the wind qualities on each LOD. Values will be clamped by
SpeedTreeImporter.bestWindQuality
internally.
The available wind quality values are as follows:
0
- Off
1
- Fastest
2
- Fast
3
- Bett... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c1d0ba3b2c1a | unity_docs | editor | Show me a Unity C# example demonstrating `PrefabUtility.RevertRemovedGameObject`. | ain exist on the Prefab instance.
The GameObject's components and children will also exist again, unless they had previously been removed.
Note that added GameObjects and added component overrides, which were in the hierarchy of the reverted GameObject before it was removed, will not be restored.
Additional resources: ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e4ccd30f325b | unity_docs | rendering | What is `UIElements.Button.iconUssClassName` in Unity? Explain its purpose and usage. | Button.iconUssClassName
public static string
iconUssClassName
;
Description
The USS class name for Button elements with an icon.
Unity adds this USS class to an instance of the Button element if the instance's
Button.iconImage
property contains a valid Texture. Any styling applied to this class
affects ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_51d1ff9d57b5 | unity_docs | math | What are the parameters of `Mesh.SetVertices` in Unity? | Description Assigns a new vertex positions array. Additional resources: vertices property. Declaration public void SetVertices (Vector3[] inVertices ,
int start ,
int length , Rendering.MeshUpdateFlags flags = MeshUpdateFlags.Default); Declaration public void SetVertices (List<Vector3> inVertices ,
int start ,
int leng... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d7fb9b39ce9e | unity_docs | scripting | What is `VideoImporterTargetSettings.enableTranscoding` in Unity? Explain its purpose and usage. | VideoImporterTargetSettings.enableTranscoding
public bool
enableTranscoding
;
Description
Controls whether the movie file will be transcoded during import. When transcoding is not enabled, the file will be imported in its original format. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cb79a1affe81 | unity_docs | physics | Show me a Unity C# example demonstrating `PhysicsScene.InterpolateBodies`. | PhysicsScene
with
Rigidbody.interpolation
set to either
RigidbodyInterpolation.Interpolate
or
RigidbodyInterpolation.Extrapolate
with the current
Time.time
value.
This method is called automatically for the default
PhysicsScene
and therefore any manual calls on the
defaultPhysicsScene
will fail.
Additional... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae2cb9fdb110 | unity_docs | editor | What is `Build.IProcessSceneWithReport` in Unity? Explain its purpose and usage. | IProcessSceneWithReport
interface in
UnityEditor.Build
Implements interfaces:
IOrderedCallback
Description
Implement this interface to receive a callback for each scene during the build.
If the scene or related content in the project is unchanged from the previous Player build, Unity doesn't build the scene and ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_aca0d64693f0 | unity_docs | performance | In Unity's 'Mono scripting back end', what is 'Building a project with Mono' and how does it work? | To start the build process, open the
Build Profiles
window (Menu:
File
>
Build Profiles
) and select
Build
.
You can change the scripting back end Unity uses to build your application in one of two ways:
Through the
Player Settings
menu in the Editor. Perform the following steps to change the scripting back end through... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_de7a88540084 | unity_docs | scripting | What is `Windows.Speech.DictationRecognizer.DictationHypothesis` in Unity? Explain its purpose and usage. | DictationRecognizer.DictationHypothesis
Parameters
Parameter
Description
value
Delegate to be triggered in the event of a hypothesis changed event.
Description
Event that is triggered when the recognizer changes its hypothesis for the current fragment. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_509e88395a88 | unity_docs | rendering | What is `SystemInfo.supportsMultisampled2DArrayTextures` in Unity? Explain its purpose and usage. | SystemInfo.supportsMultisampled2DArrayTextures
public static bool
supportsMultisampled2DArrayTextures
;
Description
Boolean that indicates whether multisampled texture arrays are supported (true if supported, false if not supported).
Additional resources:
Texture2DArray
class and
RenderTexture.bindTextureMS
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_48f05e22488c | unity_docs | scripting | What is `UIElements.Tab.ctor` in Unity? Explain its purpose and usage. | Tab Constructor
Declaration
public
Tab
();
Description
Constructs a Tab.
Declaration
public
Tab
(string
label
);
Parameters
Parameter
Description
label
The text to use as the header label.
Description
Constructs a Tab.
Declaration
public
Tab
(
UIElements.Background
iconImage
);
Parameter... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6472d9e4e360 | github | scripting | Write a Unity C# script called Simple Touch | ```csharp
using FfalconXR;
using RayNeo.API;
using System;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.InputSystem;
using UnityEngine.Serialization;
namespace RayNeo
{
public class SimpleTouch : MonoSingleton<SimpleTouch>
{
RayNeoInput m_Action;
public bool m_CustomConfi... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_045b3f36ea9c | unity_docs | editor | What is `iOS.Xcode.PBXProject.RemoveAssetTagFromDefaultInstall` in Unity? Explain its purpose and usage. | PBXProject.RemoveAssetTagFromDefaultInstall
Declaration
public void
RemoveAssetTagFromDefaultInstall
(string
targetGuid
,
string
tag
);
Parameters
Parameter
Description
targetGuid
The GUID of the target, such as the one returned by
TargetGuidByName
.
tag
The name of the asset tag.
Description
Removes t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c25e027c3943 | unity_docs | xr | What is `Networking.IMultipartFormSection` in Unity? Explain its purpose and usage. | IMultipartFormSection
interface in
UnityEngine.Networking
Description
An interface for composition of data into multipart forms.
In order to provide a finer level of control for those wishing to generate multipart form data, but without forcing most users to refer to
RFC 2388
, Unity provides this simple interfa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_425b428e4317 | unity_docs | rendering | Explain 'Introduction to scenes' in Unity. | Scenes are where you work with content in Unity. They are assets that contain all or part of a game or application. For example, you might build a simple game in a single scene , while for a more complex game, you might use one scene per level, each with its own environments, characters, obstacles, decorations, and UI.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_faa111bf3a4f | unity_docs | ui | Show me a Unity C# example demonstrating `ParticleSystem.MainModule.startDelayMultiplier`. | ParticleSystem.MainModule.startDelayMultiplier
public float
startDelayMultiplier
;
Description
A multiplier for
ParticleSystem.MainModule.startDelay
in seconds.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall start delay multiplier.
```csharp
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_46a01a467e20 | unity_docs | editor | What are the parameters of `PrefabUtility.FindAllInstancesOfPrefab` in Unity? | Returns GameObject[] The root GameObjects for all instances of the Prefab asset with root prefabRoot . Description Retrieves the root GameObjects for all instances of the Prefab asset with root prefabRoot found in all currently loaded scenes. If prefabRoot is not a valid Prefab asset root GameObject, an ArgumentExcepti... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6229ec97057e | unity_docs | math | What is `Unity.Properties.TypeUtility` in Unity? Explain its purpose and usage. | TypeUtility
class in
Unity.Properties
/
Implemented in:
UnityEngine.PropertiesModule
Description
Utility class around System.Type.
Static Methods
Method
Description
CanBeInstantiated
Returns true if the specified type is instantiatable.
GetRootType
Utility method to return the base type.
GetType... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_d33afe84bfe6 | unity_docs | animation | Explain '2D Animation' in Unity. | com.unity.2d.animation
## Description
2D Animation provides all the necessary tooling and runtime components for skeletal animation using Sprites.
## Released for Unity
Package version 10.2.2 is released for Unity Editor version 6000.0. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8a4ba09e6283 | unity_docs | scripting | Show me a Unity C# example demonstrating `Color.HSVToRGB`. | V
,
bool
hdr
);
Parameters
Parameter
Description
H
Hue [0..1].
S
Saturation [0..1].
V
Brightness value [0..1].
hdr
Output HDR colours. If true, the returned colour will not be clamped to [0..1].
Returns
Color
An opaque colour with HSV matching the input.
Description
Creates an RGB colour from HSV ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0861ba75e671 | unity_docs | networking | What is `Android.AndroidHardwareKeyboardHidden.Yes` in Unity? Explain its purpose and usage. | AndroidHardwareKeyboardHidden.Yes
Description
Mirrors the Android property value
HARDKEYBOARDHIDDEN_YES
.
For information about the property value, refer to the Android developer documentation on
HARDKEYBOARDHIDDEN_YES
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a417bea6eda9 | unity_docs | scripting | What is `iOS.Device.lowPowerModeEnabled` in Unity? Explain its purpose and usage. | Device.lowPowerModeEnabled
public static bool
lowPowerModeEnabled
;
Description
Indicates whether Low Power Mode is enabled on the device.
While the Low Power Mode is enabled, iOS conserves battery life by enacting certain energy-saving measures, such as reducing CPU and GPU performance and reducing screen bri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f66cd887779e | unity_docs | scripting | What is `WaitForSecondsRealtime.waitTime` in Unity? Explain its purpose and usage. | WaitForSecondsRealtime.waitTime
public float
waitTime
;
Description
The given amount of seconds that the yield instruction will wait for.
```csharp
using System.Collections;
using UnityEngine;public class WaitForSecondsRealtimeExample : MonoBehaviour
{
public float waitTime = 3; WaitForSecondsRealtime waitForS... | 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.