id stringlengths 15 22 | source stringclasses 2
values | category stringclasses 12
values | instruction stringlengths 22 180 | response stringlengths 100 46.1k | system stringclasses 5
values |
|---|---|---|---|---|---|
local_man_6e1fd612cd17 | unity_docs | audio | Explain 'Audio Low Pass Filter' in Unity. | The
Audio Low Pass Filter
passes low frequencies of an AudioSource or all sound reaching an AudioListener while removing frequencies higher than the
Cutoff Frequency
.
## Properties
Property:
Function:
Cutoff Frequency
Lowpass cutoff frequency in Hertz (range 0.0 to 22000.0, default = 5000.0).
Lowpass Resonance Q
Low... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73201071aa09 | unity_docs | rendering | What is `SkinnedMeshRenderer.quality` in Unity? Explain its purpose and usage. | SkinnedMeshRenderer.quality
public
SkinQuality
quality
;
Description
The maximum number of bones per vertex that are taken into account during skinning.
The value can be either One Bone, Two Bones, Four Bones or Auto. Note that higher bone counts may have a performance cost, especially above 4 bones per vert... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6f6aea29c0b6 | unity_docs | editor | What is `Presets.Preset.GetAllDefaultTypes` in Unity? Explain its purpose and usage. | Preset.GetAllDefaultTypes
Declaration
public static PresetType[]
GetAllDefaultTypes
();
Description
Returns all the
PresetType
that have at least one
DefaultPreset
entry in the default Presets list.
Use this method to gather all existing
DefaultPreset
and all
Preset
used as default in a project.
```csh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_7732e5d319c3 | unity_docs | rendering | Explain '2D game development in URP' in Unity. | Techniques and resources for creating 2D lights, 2D lighting effects, and implementing the pixelated visual style with your projects.
2D features included with URP are the
2D Lighting
graphics pipeline which allows you to create 2D Lights and 2D lighting effects; and the
2D Pixel Perfect Camera
for implementing the pix... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eaf0151c67fa | unity_docs | networking | What is `Android.AndroidConfiguration.mobileNetworkCode` in Unity? Explain its purpose and usage. | AndroidConfiguration.mobileNetworkCode
public int
mobileNetworkCode
;
Description
Mirrors the Android property
mnc
.
For information about this property, refer to the Android developer documentation on
mnc
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68fb4f0ebae4 | unity_docs | scripting | Show me a Unity C# example demonstrating `QualitySettings.names`. | QualitySettings.names
public static string[]
names
;
Description
The indexed list of available Quality Settings.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
string[] names;
names = QualitySettings.names;
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6def4a110a06 | unity_docs | scripting | What is `CustomGridBrushAttribute.defaultBrush` in Unity? Explain its purpose and usage. | CustomGridBrushAttribute.defaultBrush
public bool
defaultBrush
;
Description
If set to true, brush will replace Unity built-in brush as the default brush in palette window.
Only one class at any one time should set defaultBrush to true. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4b07bb9c763e | unity_docs | scripting | Explain 'Gizmos and handles' in Unity. | Gizmos and handles are UI controls for interacting with the Scene view and Game view. The default 3D controls that Unity provides to manipulate items in the
Scene view
are a combination of gizmos and handles.
There are a number of built-in handle GUIs, such as the familiar tools to position, scale and rotate an object ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5a191fcfeb7d | unity_docs | scripting | What is `Rendering.Watermark.IsVisible` in Unity? Explain its purpose and usage. | Watermark.IsVisible
Declaration
public static bool
IsVisible
();
Returns
bool
True, if the watermark is visible.
Description
Returns
true
if the watermark is visible on-screen. Whether the watermark is visible depends on your build settings and Unity plan.
The following code sample checks if the waterma... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3569e39b60d4 | unity_docs | editor | What are the parameters of `Networking.PlayerConnection.PlayerConnectionGUIUtility.GetConnectionState` in Unity? | Returns IConnectionState Returns the unserialized state of the connection to a Player, which is used in PlayerConnectionGUI.ConnectionTargetSelectionDropdown or PlayerConnectionGUILayout.ConnectionTargetSelectionDropdown . The returned connection state object contains information on what target is connected to the Play... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b791cb2e2fe5 | unity_docs | scripting | What is `SceneTemplate.SceneTemplateService.newSceneTemplateInstantiated` in Unity? Explain its purpose and usage. | SceneTemplateService.newSceneTemplateInstantiated
Parameters
Parameter
Description
value
A user-defined handler that is called after a Scene template is instantiated.
Description
Events fired after a Scene template is instantiated. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ae4e52936088 | unity_docs | editor | What is `TypeCache.GetTypesWithAttribute` in Unity? Explain its purpose and usage. | TypeCache.GetTypesWithAttribute
Declaration
public static
TypeCache.TypeCollection
GetTypesWithAttribute
();
Declaration
public static
TypeCache.TypeCollection
GetTypesWithAttribute
(Type
attrType
);
Declaration
public static
TypeCache.TypeCollection
GetTypesWithAttribute
(string
assemblyName
);
D... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d9f87e9654f7 | unity_docs | editor | Show me a Unity C# example demonstrating `EditorGUIUtility.FindTexture`. | EditorGUIUtility.FindTexture
Declaration
public static
Texture2D
FindTexture
(string
name
);
Description
Get a texture from its source filename.
Checks the path of a texture.
```csharp
// Simple editor window that lets you quick check a path of
// a texture in the editor.
//
// If the path exists then it sh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_589bfcf2070f | unity_docs | math | What is `Vector3Int.FloorToInt` in Unity? Explain its purpose and usage. | Vector3Int.FloorToInt
Declaration
public static
Vector3Int
FloorToInt
(
Vector3
v
);
Description
Converts a
Vector3
to a
Vector3Int
by doing a Floor to each value.
As there is a conversion of float to integer, there is a loss of precision. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_edc47d2b87e5 | unity_docs | rendering | What are the parameters of `ImageConversion.EncodeArrayToTGA` in Unity? | Description Encodes this array into TGA format. This function returns a byte array which is the TGA file data. You can store the encoded data as a file or send it over the network without further processing. This function does not work on any compressed format.
The encoded TGA data will be uncompres... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_a5889bb29b1c_doc_12 | github | scripting | What does `BoxErase` do in this Unity script? Explain its purpose and signature. | Erases GameObjects from given bounds within the selected layers.The GameObjectBrush overrides this to provide GameObject box-erasing functionality.Grid to erase data from.Target of the erase operation. By default the currently selected GameObject.The bounds to erase data from.
Signature:
```csharp
public override void... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_a6866f1330e4 | unity_docs | scripting | Show me a Unity C# example demonstrating `AI.NavMeshAgent.CalculatePath`. | processing very long paths. It is recommended to only perform a few path finds per frame when, for example, evaluating distances to cover points.
Use the returned path to set the path for this agent, or an agent of the same type, with
NavMeshAgent.SetPath
. For SetPath to work, the agent must be close to the starting ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4b1bac821259 | github | scripting | Write a Unity C# script called Addressable Material | ```csharp
using UnityEngine;
namespace PassivePicasso.SimplyAddress
{
[ExecuteAlways]
public class AddressableMaterial : AddressableArrayAssigner<Renderer, Material>
{
protected override void Assign(Renderer renderer, Material material)
{
switch (renderer)
{
... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_man_7e5e94e2b57d | unity_docs | scripting | Explain 'Gizmos introduction' in Unity. | Gizmos are graphics associated with GameObjects in the
scene
. Some gizmos are only drawn when the GameObject is selected, while other gizmos are drawn by the Unity Editor regardless of which GameObjects are selected. They are usually wireframes, drawn with code rather than bitmap graphics, and can be interactive.
The ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_28d432c898d5 | unity_docs | scripting | Give me an overview of the `TerrainCallbacks` class in Unity. | TerrainCallbacks
class in
UnityEngine
/
Implemented in:
UnityEngine.TerrainModule
Description
This static class provides events that Unity triggers when Terrain data changes.
Events
Event
Description
heightmapChanged
This event is triggered after there are changes to Terrain height data.
textureChanged
This... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_694ab64d1d77 | unity_docs | scripting | What is `VersionControl.VersionControlAttribute.name` in Unity? Explain its purpose and usage. | VersionControlAttribute.name
public string
name
;
Description
Version control system name.
It must be unique within Unity project.
Additional resources:
VersionControlAttribute
,
VersionControlObject
,
VersionControlManager
,
VersionControlDescriptor
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_95f7ae56fa7d | unity_docs | scripting | What are the parameters of `Caching.MoveCacheBefore` in Unity? | Description Moves the source Cache before the destination Cache in the cache list. ```csharp
using System.IO;
using UnityEngine;public class Example : MonoBehaviour
{
void MoveCacheBeforeExample()
{
Directory.CreateDirectory("Cache1");
Directory.CreateDirectory("Cache2");
Directory.Creat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_83bfaa4ca7c0 | unity_docs | xr | Give me an overview of the `WebGLPowerPreference` class in Unity. | WebGLPowerPreference
enumeration
Description
An enum containing different power preference hints for the WebGL context.
This enum is used within the WebGL platform to hint to the underlying WebGL implementation how to choose its GPU configuration in multi-gpu systems.
Properties
Property
Description
Default
Th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b52bcb7624d9 | unity_docs | physics | Show me a Unity code example for 'Optimize performance of moving elements at runtime'. | oid unnecessary geometry regeneration.
If the transform of the element, such as position, rotation, or scale, changes frequently, set usage hint to
DynamicTransform
. This pushes transform updates directly to the GPU, bypassing CPU mesh updates and improving performance.
You can set the usage hints in UI Builder, UXML,... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2004bc7fa7a2 | unity_docs | rendering | Give me an overview of the `ShaderGUI` class in Unity. | ShaderGUI
class in
UnityEditor
Description
Abstract class to derive from for defining custom GUI for shader properties and for extending the material preview.
Derive from this class for controlling how shader properties should be presented. For a shader to use this custom GUI use the 'CustomEditor' property in th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fb917b01c767 | unity_docs | editor | Show me a Unity C# example demonstrating `Search.SearchProvider.fetchThumbnail`. | ture2D>
fetchThumbnail
;
Description
Handler to provide an asynchronous thumbnail for an item. Is called when the item is about to be displayed. Compared to preview a thumbnail should be small and returned as fast as possible. Use fetchPreview if you want to generate a preview that is bigger and slower to return. ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_46d2ae461af5 | unity_docs | rendering | What is `ShaderData.Pass.SourceCode` in Unity? Explain its purpose and usage. | ShaderData.Pass.SourceCode
public string
SourceCode
;
Description
The source code for this pass.
This is the source code used before any platform-specific processing occurs (similar to using define to map some keywords to another for language compatibility). | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_11c8e1bdc0f2 | unity_docs | ui | What is `UIElements.MouseButton` in Unity? Explain its purpose and usage. | MouseButton
enumeration
Description
Describes a MouseButton.
Properties
Property
Description
LeftMouse
The Left Mouse Button.
RightMouse
The Right Mouse Button.
MiddleMouse
The Middle Mouse Button. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fc07a57c099c | unity_docs | input | What is `XR.XRInputSubsystem.GetTrackingOriginMode` in Unity? Explain its purpose and usage. | XRInputSubsystem.GetTrackingOriginMode
Declaration
public
XR.TrackingOriginModeFlags
GetTrackingOriginMode
();
Returns
TrackingOriginModeFlags
The Tracking Origin Mode that this subsystem is in.
Description
Gets the Tracking Origin Mode.
See
TrackingOriginModeFlags
for more details on different modes. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c292e80dd9f2_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Base class for custom CodeGenerator
Signature:
```csharp
public abstract class BaseCodeGenerator<T> where T : BaseScriptTemplate
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_11d153443dfb | unity_docs | physics | What is `Joint.breakTorque` in Unity? Explain its purpose and usage. | Joint.breakTorque
public float
breakTorque
;
Description
The torque that needs to be applied for this joint to break. To be able to break, a joint must be _Locked_ or _Limited_ on the axis of rotation where the torque is being applied. This means that some joints cannot break, such as an unconstrained Configurab... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bdc7836fd307 | unity_docs | scripting | What is `SystemLanguage.Romanian` in Unity? Explain its purpose and usage. | SystemLanguage.Romanian
Description
Romanian.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Romanian language
if (Application.systemLanguage == SystemLanguage.Romanian)
{
//Outputs into console that the system is R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7a8211660d2f | unity_docs | rendering | What is `LightBakingOutput.probeOcclusionLightIndex` in Unity? Explain its purpose and usage. | LightBakingOutput.probeOcclusionLightIndex
public int
probeOcclusionLightIndex
;
Description
In case of a
LightmapBakeType.Mixed
light, contains the index of the light as seen from the occlusion probes point of view if any, otherwise -1. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7e0b41cd8675 | github | scripting | Write a Unity C# script called Read Only Attribute | ```csharp
using UnityEngine;
namespace RMC.Core.Attributes
{
/// <summary>
/// Allows already [SerializField] fields to be non-editable in the inspector.
/// This is useful to see values for debugging, but not permit (or purposefully support) changing values via inspector
/// Reference: https://answers.unity.com/... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_46318b296be1 | unity_docs | editor | What are the parameters of `VersionControl.Provider.GetAssetByGUID` in Unity? | Description Returns version control information about an asset from a given GUID. Returns null if the GUID is not known by the Unity Editor. ```csharp
using System.Collections.Generic;
using UnityEditor;
using UnityEditor.VersionControl;
using UnityEngine;public class EditorScript : MonoBehaviour
{
[MenuItem("Versi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_682a6789ff8f | unity_docs | xr | What is `AssetPreview` in Unity? Explain its purpose and usage. | AssetPreview
class in
UnityEditor
Description
Utility for fetching asset previews by instance ID of assets, See
AssetPreview.GetAssetPreview
. Since previews are loaded asynchronously methods are provided for requesting if all previews have been fully loaded, see
AssetPreview.IsLoadingAssetPreviews
. Loaded prev... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5adbeba02b77 | unity_docs | physics | Give me an overview of the `RelativeJoint2D` class in Unity. | RelativeJoint2D
class in
UnityEngine
/
Inherits from:
Joint2D
/
Implemented in:
UnityEngine.Physics2DModule
Description
Keeps two
Rigidbody2D
at their relative orientations.
Two
Rigidbody2D
connected together with this joint will have forces applied to them to keep them both at their relative linear and a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d907dc0b1e23 | unity_docs | rendering | What is `Texture2D.calculatedMipmapLevel` in Unity? Explain its purpose and usage. | Texture2D.calculatedMipmapLevel
public int
calculatedMipmapLevel
;
Description
The mipmap level calculated by the streaming system, which takes into account the streaming Cameras and the location of the objects containing this Texture. This is unaffected by
requestedMipmapLevel
or
minimumMipmapLevel
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6010370e622e | unity_docs | physics | What is `WheelCollider.suspensionSpring` in Unity? Explain its purpose and usage. | WheelCollider.suspensionSpring
public
JointSpring
suspensionSpring
;
Description
The parameters of wheel's suspension. The suspension attempts to reach a target position by applying a linear force and a damping force.
The value
suspensionSpring.spring
describes the stiffness of the spring. It is expressed ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5e67dc739f1d | unity_docs | scripting | What is `AI.NavMeshBuildSettings` in Unity? Explain its purpose and usage. | NavMeshBuildSettings
struct in
UnityEngine.AI
/
Implemented in:
UnityEngine.AIModule
Description
The NavMeshBuildSettings struct allows you to specify a collection of settings which describe the dimensions and limitations of a particular agent type.
You might want to define multiple NavMeshBuildSettings if your... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3846fe23b094 | unity_docs | scripting | What are the parameters of `Search.SearchViewState.ctor` in Unity? | Description Create search view flags used to create a new Search window. See SearchService.ShowWindow . Declaration public SearchViewState ( Search.SearchContext context , Search.SearchTable tableConfig , Search.SearchViewFlags flags ); Parameters Parameter Description context Initial search context. tableConfig Initia... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e3755dd35684 | unity_docs | rendering | In Unity's 'Lighting window reference', what is 'The Scene tab' and how does it work? | The Scene tab displays information about the
Lighting Settings Asset
that is assigned to the active Scene. If no Lighting Settings Asset is assigned to the active Scene, it displays information about the
default LightingSettings object
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7d7a241684c | unity_docs | scripting | What is `ChangeGameObjectOrComponentPropertiesEventArgs` in Unity? Explain its purpose and usage. | ChangeGameObjectOrComponentPropertiesEventArgs
struct in
UnityEditor
Description
A change of this type indicates that a property of a
GameObject
or
Component
has changed. This happens for example when
Undo.RecordObject
is used with an instance of a
Component
.
Properties
Property
Description
instanceId
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a8f998a65a22 | unity_docs | scripting | What is `RenderTargetSetup.depthStore` in Unity? Explain its purpose and usage. | RenderTargetSetup.depthStore
public
Rendering.RenderBufferStoreAction
depthStore
;
Description
Store Actions for Depth Buffer. It will override any actions set on RenderBuffer itself.
Please note that not all platforms have load/store actions, so this setting might be ignored at runtime. Generally mobile-orie... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_fb017783c87d | unity_docs | editor | In Unity's 'Create a tabbed menu', what is 'Create a TabView' and how does it work? | Create a UI Document and add a TabView to it.
Create a project in Unity with any template.
In the Assets folder, create a UI Document named
TabbedMenu.uxml
.
Double-click
TabbedMenu.uxml
to open it in the UI Builder.
Drag a TabView from the Library to the Hierarchy panel.
In the Inspector panel of the TabView, do the f... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8dd23a3c2bc7 | unity_docs | editor | What is `MonoImporter.GetExecutionOrder` in Unity? Explain its purpose and usage. | MonoImporter.GetExecutionOrder
Declaration
public static int
GetExecutionOrder
(
MonoScript
script
);
Parameters
Parameter
Description
script
The script to retrieve the execution order for.
Returns
int
Returns the execution order for the given
MonoScript
.
Description
Gets the execution order for a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_12f2a860bcc6 | unity_docs | scripting | What is `Search.SearchItem.CompareTo` in Unity? Explain its purpose and usage. | SearchItem.CompareTo
Declaration
public int
CompareTo
(object
other
);
Declaration
public int
CompareTo
(
Search.SearchItem
other
);
Parameters
Parameter
Description
other
Another SearchItem to compare.
Returns
int
Returns 0 if SearchItems have the same ID.
Description
Check if two SearchItems ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c3362dd1c236 | unity_docs | xr | Show me a Unity code example for 'Troubleshooting for Android'. | mat.
Go to the logs directory under
<your_project>/Library/Bee/Android/Prj/IL2CPP/Gradle/launcher/build/outputs
.
Open the appropriate log file based on the build type.
Release build
:
manifest-merger-release-report.txt
Development build
:
manifest-merger-debug-report.txt
Look for log entries that start with IMPLIED to... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_02a070dbe3d4 | unity_docs | scripting | What is `UIElements.Experimental.StyleValues.borderBottomWidth` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StyleValues.borderBottomWidth
public float
borderBottomWidth
;
Description
Space reserved for the bottom edge of the border during the layout phase. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_985c0cc67813 | unity_docs | editor | What is `EditorUtility.GetDirtyCount` in Unity? Explain its purpose and usage. | EditorUtility.GetDirtyCount
Declaration
public static int
GetDirtyCount
(int
instanceID
);
Declaration
public static int
GetDirtyCount
(
Object
target
);
Parameters
Parameter
Description
instanceID
The object's instance ID.
target
The object.
Description
Returns an integer that indicates the number... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_caf4abef6359 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.PinGCObjectAndGetAddress` in Unity? Explain its purpose and usage. | UnsafeUtility.PinGCObjectAndGetAddress
Declaration
public static void*
PinGCObjectAndGetAddress
(object
target
,
out ulong
gcHandle
);
Parameters
Parameter
Description
target
The object to pin. This should be a managed object whose memory location needs to remain fixed during garbage collection.
gcHandle
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_41786b7f86c5 | unity_docs | scripting | What is `Search.SearchUtils.SelectMultipleItems` in Unity? Explain its purpose and usage. | SearchUtils.SelectMultipleItems
Declaration
public static void
SelectMultipleItems
(IEnumerable<SearchItem>
items
,
bool
focusProjectBrowser
,
bool
pingSelection
);
Parameters
Parameter
Description
items
Search Items to select and ping.
focusProjectBrowser
If true, will focus the project browser before p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f0ff22019092 | unity_docs | scripting | Show me a Unity C# example demonstrating `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.AddressOf`. | s the memory address of a managed object. Use this in scenarios that need direct memory access or interaction with unmanaged code, where efficiency is crucial.
Exercise caution when you use this method. Improper handling of memory addresses may cause memory corruption or application instability. Use this method to enha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ea883a9bdb6a | unity_docs | scripting | What is `Overlays.OverlayAttribute.ussName` in Unity? Explain its purpose and usage. | OverlayAttribute.ussName
public string
ussName
;
Description
Name of the overlay's root visual element.
Set this if you want to specify the name of the root visual element, otherwise the id will be used. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_865541ba36c8 | unity_docs | physics | Explain 'Example scripts for collider events' in Unity. | The following examples demonstrate ways to call events from collision functions. They use OnCollisionEnter and OnTriggerEnter respectively, but the concepts apply to all OnCollision and OnTrigger functions.
## Example: Different events for different GameObject properties
You can configure your scripts to trigger diff... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68fc894b0541 | unity_docs | rendering | What is `TextureFormat.RG16` in Unity? Explain its purpose and usage. | TextureFormat.RG16
Description
Two channel (RG) texture format, 8-bits unsigned integer per channel.
Note that not all graphics cards support all texture formats, use
SystemInfo.SupportsTextureFormat
to check.
Additional resources:
Texture2D.format
,
texture assets
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_29efa120386f | unity_docs | scripting | What is `SceneManagement.EditorSceneManager.SceneClosingCallback` in Unity? Explain its purpose and usage. | EditorSceneManager.SceneClosingCallback
Declaration
public delegate void
SceneClosingCallback
(
SceneManagement.Scene
scene
,
bool
removingScene
);
Parameters
Parameter
Description
scene
The Scene that is going to be closed.
removingScene
Whether or not the Scene is also going to be removed from the Scen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cae71a04d024 | unity_docs | math | Show me a Unity C# example demonstrating `LightTransport.IProbeIntegrator.IntegrateDirectRadiance`. | e. The results are stored as L2 spherical harmonics coefficients that can be used for real-time lighting lookups.
Direct radiance includes contributions from:
Directional lights
Point lights
Spot lights
Area lights
Environment lighting (unless ignored)
The quality of the integration depends on the sample count - ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_462b96f11026 | unity_docs | scripting | What is `UIElements.Length` in Unity? Explain its purpose and usage. | Length
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Represents a distance value.
Properties
Property
Description
unit
The unit of the value property.
value
The length value.
Constructors
Constructor
Description
Length
Creates from a float and a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c3cb89dbdac | unity_docs | scripting | What is `Help.GetHelpURLForObject` in Unity? Explain its purpose and usage. | Help.GetHelpURLForObject
Declaration
public static string
GetHelpURLForObject
(
Object
obj
);
Parameters
Parameter
Description
obj
The object to retrieve documentation for.
Returns
string
The documentation URL for the object. Note that this could use the https: or file: schemas.
Description
Get the ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c27cd48028ae | unity_docs | editor | What are the parameters of `Networking.PlayerConnection.PlayerConnectionGUI.ConnectionTargetSelectionDropdown` in Unity? | Description Display a drop-down button and menu for the user to choose and establish a connection to a Player. This is the same control that is used in the toolbars of the Profiler Window , Frame Debugger or Console Window . The drop-down will list all available Players and Editors that your Editor can connect to and t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fc1610681905 | unity_docs | rendering | Give me an overview of the `MovieTexture` class in Unity. | Removed
MovieTexture
class in
UnityEngine
/
Inherits from:
Texture
/
Implemented in:
UnityEngine.AudioModule
Obsolete
MovieTexture is removed. Use VideoPlayer instead.
Description
MovieTexture has been removed. Use
VideoPlayer
instead.
Inherited Members
Static Properties Property Description
allowThr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_abf971248170 | unity_docs | scripting | What is `RuntimePlatform.tvOS` in Unity? Explain its purpose and usage. | RuntimePlatform.tvOS
Description
In the player on the Apple's tvOS.
Additional resources:
RuntimePlatform
,
Platform dependent compilation
.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
if (Application.platform == RuntimePlatform.tvOS)
{
Debug.Log("Do something special h... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_50562dfe0d0b | unity_docs | rendering | In Unity's 'Customize the Light Explorer', what is 'Example code' and how does it work? | The examples in this section show you how to extend the default Light Explorer class to only show the Name column for Lights, and change the number of tabs. In your own implementation, you can override as many or as few methods as you want.
The following example only shows the name column for Lights:
```csharp
using Un... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_90df7263d9bc | unity_docs | audio | What is `AudioHighPassFilter.highpassResonanceQ` in Unity? Explain its purpose and usage. | AudioHighPassFilter.highpassResonanceQ
public float
highpassResonanceQ
;
Description
Determines how much the filter's self-resonance isdampened.
Higher Highpass resonance Q indicates a lower rate of
energy loss i.e. the oscillations die out more slowly.
Highpass resonance Q value goes from 1.0 to 10.0. Default... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8f5ffe9e19ba | unity_docs | animation | What is `ParticleSystem.MinMaxCurve.curveMax` in Unity? Explain its purpose and usage. | ParticleSystem.MinMaxCurve.curveMax
public
AnimationCurve
curveMax
;
Description
Set a curve for the upper bound.
You should set the values between 0 and 1. Use the curve multiplier to define the overall range of the curve.
Useful when
ParticleSystem.MinMaxCurve.mode
is set to
ParticleSystemCurveMode.TwoC... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_13efff7fc3b8 | unity_docs | math | What is `TrueTypeFontImporter.fontNames` in Unity? Explain its purpose and usage. | TrueTypeFontImporter.fontNames
public string[]
fontNames
;
Description
An array of font names, to be used when includeFontData is set to false.
If you a trying to render a glyph which is not available in this font, Unity will walk through the list of font names given to find another font which has that glyph. F... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bd41bda6f806 | unity_docs | xr | What is `Font.textureRebuilt` in Unity? Explain its purpose and usage. | Font.textureRebuilt
Description
Set a function to be called when the dynamic font texture is rebuilt.
This lets you set a delegate function to be called when the dynamic font texture is rebuilt. This will happen when new characters added to the font no longer fit into the texture. The font texture will then be rebu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_02e8dd62f2b3_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Manages the active ordered dictionary new entry editor.
Signature:
```csharp
public static class OrderedDictionaryNewEntryManager
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_6b7bca367303 | unity_docs | rendering | In Unity's 'Sprite Asset properties reference', what is 'Fallback Sprite Assets' and how does it work? | When a glyph doesn’t exist in this sprite asset, TextCore searches the fallback sprite assets list for the missing glyph.
Property Description Fallback Sprite Asset List
This is the local fallback list. The local fallback list has precedence over the global fallback list set in the
UITK Text Settings
asset. You can add... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_749f47c2850a_doc_1 | github | scripting | What does `Spawn` do in this Unity script? Explain its purpose and signature. | The method instantiates a new instance of a given prefabA reference to a prefab that should be created dynamicallyA position of a new objectAn orientation of an object in a spaceA parent of a new created objectA reference to a new created entity which is attached to a new created GameObject
Signature:
```csharp
public... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_4e2885ffe0d1 | unity_docs | physics | What is `ColliderDistance2D.isValid` in Unity? Explain its purpose and usage. | ColliderDistance2D.isValid
public bool
isValid
;
Description
Gets whether the distance is valid or not.
When a function returns a
ColliderDistance2D
struct, it may not be valid because the
Collider2D
used as distance references were not valid in some way due to them being disabled or not having any valid sh... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e47c65638690 | unity_docs | scripting | What is `UIElements.ConverterGroup.TrySetValue` in Unity? Explain its purpose and usage. | ConverterGroup.TrySetValue
Declaration
public bool
TrySetValue
(ref TContainer
container
,
ref
Unity.Properties.PropertyPath
path
,
TValue
value
,
out
Unity.Properties.VisitReturnCode
returnCode
);
Parameters
Parameter
Description
container
The container whose property needs to be set.
path
The path... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8740b86da018 | unity_docs | math | What is `Quaternion.Normalize` in Unity? Explain its purpose and usage. | Quaternion.Normalize
Declaration
public static
Quaternion
Normalize
(
Quaternion
q
);
Description
Converts this quaternion to a quaternion with the same orientation but with a magnitude of 1.0.
Note that this method changes the current quaternion. If you
want to keep the current quaternion unchanged, use t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c5564a9cc8a9_doc_4 | github | scripting | What does `SetVR` do in this Unity script? Explain its purpose and signature. | Set VR mode.True (default) to set VR mode. False to set video see through mode.
Signature:
```csharp
public void SetVR(bool isVR = true)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_31acfea0b2cd | unity_docs | ui | What is `EditorPrefs.GetFloat` in Unity? Explain its purpose and usage. | EditorPrefs.GetFloat
Declaration
public static float
GetFloat
(string
key
);
Declaration
public static float
GetFloat
(string
key
,
float
defaultValue
= 0.0F);
Parameters
Parameter
Description
key
Name of key to read float from.
defaultValue
Float value to return if the key is not in the storage.
R... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f2846886b52 | unity_docs | scripting | What is `IMGUI.Controls.TreeView.ContextClicked` in Unity? Explain its purpose and usage. | TreeView.ContextClicked
Declaration
protected void
ContextClicked
();
Description
Override this method to handle context clicks outside any items (but still in the TreeView rect).
Additional resources:
ContextClickedItem
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_27ef6b532084 | unity_docs | physics | What is `Collider2D.OnCollisionStay2D` in Unity? Explain its purpose and usage. | Collider2D.OnCollisionStay2D(Collision2D)
Parameters
Parameter
Description
other
The Collision2D data associated with this collision.
Description
Sent each frame where a collider on another object is touching this object's collider (2D physics only).
Further information about the objects involved is reported i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4aa180e5124b | unity_docs | rendering | Show me a Unity code example for 'Write a shader for a Custom Render Texture'. | utility functions and built-in helper variables.
The following shader example fills the texture with a color multiplied by a color. When you write a shader for a Custom Render Texture, you must do the following:
#include "UnityCustomRenderTexture.cginc"
.
Use the provided
Vertex Shader
CustomRenderTextureVertexShader
.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_0f72083e418b | github | scripting | Write a Unity Editor script for Engine Commands | ```csharp
using UnityEditor;
using UnityEngine;
using InGame_Console.InGame_Console_System.Scripts;
internal static partial class EngineCommands
{
[ConsoleCommand("Application.Quit")]
static void Quit()
{
#if UNITY_EDITOR
EditorApplication.isPlaying = false;
#else
Application.... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_f3a257262133 | unity_docs | ui | What is `UIElements.ToggleButtonGroupState.operator_eq` in Unity? Explain its purpose and usage. | ToggleButtonGroupState.operator ==
public static bool
operator ==
(
UIElements.ToggleButtonGroupState
lhs
,
UIElements.ToggleButtonGroupState
rhs
);
Parameters
Parameter
Description
lhs
The first option set to be compared against.
rhs
The second option set to be compared against.
Returns
bool
True ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_76ee906a29e6 | unity_docs | animation | Explain 'Playables API' in Unity. | The Playables API provides a way to create tools, effects or other gameplay mechanisms by organizing and evaluating data sources in a tree-like structure known as the PlayableGraph. The PlayableGraph allows you to mix, blend, and modify multiple data sources, and play them through a single output.
The Playables API sup... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ff2082dc131e | unity_docs | scripting | What is `Search.QueryEngine_1.GetOperator` in Unity? Explain its purpose and usage. | QueryEngine<T0>.GetOperator
Declaration
public
Search.QueryFilterOperator
GetOperator
(string
op
);
Parameters
Parameter
Description
op
The operator identifier.
Returns
QueryFilterOperator
The global
QueryFilterOperator
.
Description
Get a custom operator added on the
QueryEngine
.
This method r... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4df52b45bc00 | unity_docs | input | Show me a Unity code example for 'Input in Web'. | typically used to control the orientation of the player’s angle.
Note:
As browser support for cursor locking varies, refer to the Mozilla documentation on the
Element: requestPointerLock() method
.
## Activate cursor locking
To lock the cursor, use the
Cursor.lockState
property. For example, the following code switch... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f5582a38c746 | unity_docs | scripting | Explain 'Testing and debugging' in Unity. | This section of the User Manual contains guidance on testing and debugging Android applications.
Topic Description Debug on Android devices
Debug your application on an Android device via a USB or wireless connection.
Android symbols
Generate symbols to help you debug a built Android application.
Simulate an Android de... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_93d4a4c77133 | unity_docs | ui | In Unity's 'Handle event callbacks and value changes', what is 'Send custom data to an event callback' and how does it work? | You can send custom data along with the callback to an event. To attach custom data, you must extend the call to register the callback.
The following example registers a callback for PointerDownEvent and sends custom data to the callback function:
```
// Send user data along to the callback
myElement.RegisterCallback<P... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_01ca58716c7a | unity_docs | ui | Give me an overview of the `PenData` class in Unity. | PenData
struct in
UnityEngine
/
Implemented in:
UnityEngine.InputLegacyModule
Description
Structure describing the status of a pen event.
The PenData struct is used by Unity to store data relating to a pen event. PenData contains information such as the position, pressure, and tilt of the pen for a given pen in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b950c03312ab | unity_docs | editor | What is `AndroidDeviceFilterData` in Unity? Explain its purpose and usage. | AndroidDeviceFilterData
struct in
UnityEditor
Description
Set of parameters used to define an Android device or group of Android devices.
Specify a list of parameters to identify an Android device or set of Android devices. Enter values for one or multiple parameters. The parameter values are processed using logi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7fc167d5d34d_doc_18 | github | scripting | What does `GetInstance` do in this Unity script? Explain its purpose and signature. | Get a created instance.
Signature:
```csharp
public static GlobalBehaviour GetInstance(in Type type)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_a086d68d1a0e | unity_docs | rendering | In Unity's 'Render pipeline feature comparison', what is 'Lights' and how does it work? | Feature
Built-in Render Pipeline URP HDRP Directional Yes Yes Yes Spot Yes
Supported shapes: Cone Yes Supported shapes: Cone Yes Supported shapes: Cone, Pyramid, Box Point Yes Yes Yes Area Yes
Supported shapes: Rectangle (only with Enlighten Realtime Global Illumination), Disc (baked only)
Yes
Supported shapes: Rectang... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_40436557e3c7 | unity_docs | physics | What is `Rigidbody2D.AddTorque` in Unity? Explain its purpose and usage. | Rigidbody2D.AddTorque
Declaration
public void
AddTorque
(float
torque
,
ForceMode2D
mode
= ForceMode2D.Force);
Parameters
Parameter
Description
torque
Torque to apply.
mode
The force mode to use.
Description
Apply a torque at the rigidbody's centre of mass.
Applying torque to the
Rigidbody2D
chang... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c41785e6cb5b | unity_docs | scripting | What is `Presets.Preset.IsEditorTargetAPreset` in Unity? Explain its purpose and usage. | Preset.IsEditorTargetAPreset
Declaration
public static bool
IsEditorTargetAPreset
(
Object
target
);
Description
Returns true if the given target is a temporary UnityEngine.Object instance created from inside a PresetEditor.
This method has to be used from inside a CustomEditor in order to change what values ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f9d984b215d7 | unity_docs | math | Show me a Unity C# example demonstrating `Matrix4x4.MultiplyPoint3x4`. | x4
(
Vector3
point
);
Description
Transforms a position by this matrix (fast).
Returns a position
v
transformed by the current transformation matrix.
This function is a faster version of
MultiplyPoint
; but it can only
handle regular 3D transformations.
MultiplyPoint
is slower, but can handle
projective tra... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b18e2d945343 | unity_docs | editor | Show me a Unity C# example demonstrating `Application.wantsToQuit`. | uaranteed to quit. For a guaranteed quit event take a look at
Application.quitting
.
Returns true and the quit process continues.
Returns false and the quit process cancels.
Note
: The return value of this event is ignored when exiting Play mode in the Editor.
Important
: The return value has no effect on iOS or iPadO... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d0bdefd923ea | unity_docs | scripting | What is `RigidbodyConstraints.FreezePosition` in Unity? Explain its purpose and usage. | RigidbodyConstraints.FreezePosition
Description
Freeze motion along all axes.
```csharp
//Attach this script to a GameObject with a Rigidbody. Press the up and down keys to move the Rigidbody up and down.
//Press the space key to freeze all positions.using UnityEngine;public class Example : MonoBehaviour
{
Rigidbo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0ae338e56a62 | unity_docs | scripting | What is `FontRenderingMode.OSDefault` in Unity? Explain its purpose and usage. | FontRenderingMode.OSDefault
Description
Use the OS default font rendering mode. This mode is only available for dynamic fonts, as static fonts are generated at build time.
This selects either
FontRenderingMode.HintedSmooth
or
FontRenderingMode.HintedRaster
on Windows, and either
FontRenderingMode.Smooth
or
F... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b37a35cabd27 | unity_docs | editor | What is `EditorUtility.DisplayDialogComplex` in Unity? Explain its purpose and usage. | EditorUtility.DisplayDialogComplex
Declaration
public static int
DisplayDialogComplex
(string
title
,
string
message
,
string
ok
,
string
cancel
,
string
alt
);
Parameters
Parameter
Description
title
Title for dialog.
message
Purpose for the dialog.
ok
Dialog function chosen.
cancel
Close dialog wi... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73178f33a368 | unity_docs | editor | Show me a Unity C# example demonstrating `MouseCursor`. | MouseCursor
enumeration
Description
Custom mouse cursor shapes used with EditorGUIUtility.AddCursorRect.
```csharp
//Create a folder and name it “Editor” if this doesn’t already exist
//Put this script in the folder//This script creates a new menu (“Examples”) and a menu item (“Mouse Cursor”). Click on this option... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1b2f8e42cb65 | unity_docs | editor | What is `AssetDatabase.GetImporterTypes` in Unity? Explain its purpose and usage. | AssetDatabase.GetImporterTypes
Declaration
public static Type[]
GetImporterTypes
(ReadOnlySpan<GUID>
guids
);
Parameters
Parameter
Description
guids
Array of asset GUIDs to check.
Returns
Type[]
Returns the importer type for each asset in the array.
Description
Returns the types of importers associat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_18179b69ad1f | unity_docs | input | In Unity's 'UnsignedLongField', what is 'Set a placeholder text' and how does it work? | You can set a placeholder text for the element. You can also hide the placeholder text on focus.
Note
: The placeholder text won’t display if you set a value for the element. To unset a value in UI Builder, right-click the Value field in the element’s Inspector tab and select
Unset
.
In C#, use the placeholder and the ... | 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.