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_6aa5dad78c9b | unity_docs | performance | In Unity's 'Native memory allocators', what is 'Native memory allocator types' and how does it work? | Unity uses different allocator types, which all use different algorithms to organize memory. Unity’s memory manager uses these allocator types in different areas to organize the memory in your application effectively. You can adjust the size of each allocation for each area, either through the
Player settings
window in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_69c168580419 | github | scripting | Write a Unity Editor script for Entity Observer Editor | ```csharp
using System;
using System.Reflection;
using TinyECS.Interfaces;
using TinyECSUnityIntegration.Impls;
using UnityEditor;
using UnityEngine;
namespace TinyECSUnityIntegrationEditor.Inspectors
{
[CustomEditor(typeof(EntityObserver), true)]
public class EntityObserverEditor: Editor
{
prote... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_9a451222d704 | unity_docs | scripting | What is `Gyroscope.gravity` in Unity? Explain its purpose and usage. | Gyroscope.gravity
public
Vector3
gravity
;
Description
Returns the gravity acceleration vector expressed in the device's reference frame.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
float movementScale; void Update()
{
// A "spirit level" - the dot product of the gravity and the Y ax... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2e198d97a656 | unity_docs | scripting | Show me a Unity C# example demonstrating `Gyroscope.gravity`. | Gyroscope.gravity
public
Vector3
gravity
;
Description
Returns the gravity acceleration vector expressed in the device's reference frame.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
float movementScale; void Update()
{
// A "spirit level" - the dot product of the gravity and the Y ax... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ee8884594214 | unity_docs | scripting | What is `CanvasGroup` in Unity? Explain its purpose and usage. | CanvasGroup
class in
UnityEngine
/
Inherits from:
Behaviour
/
Implemented in:
UnityEngine.UIModule
Implements interfaces:
ICanvasRaycastFilter
Description
A
Canvas
placable element that can be used to modify children Alpha, Raycasting, Enabled state.
A canvas group can be used to modify the state of childr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d656405d8c85 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.GetDependencies`. | ched to them. In this case,
GetDependencies
() will return the path to the Material Assets, but not the GameObjects as those are not Assets on your disk.
If
recursive
is true, the list returned will also include the input paths themselves. Note that this function returns all assets that are referenced by the input ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_69194960f58c | unity_docs | scripting | What is `CharacterController.SimpleMove` in Unity? Explain its purpose and usage. | CharacterController.SimpleMove
Declaration
public bool
SimpleMove
(
Vector3
speed
);
Description
Moves the character with
speed
.
Velocity along the y-axis is ignored.
Speed is in units/s. Gravity is automatically applied.
Returns true if the character is grounded.
It is recommended that you make only one c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a345838d802b | unity_docs | rendering | What is `Experimental.Rendering.GraphicsFormatUtility.IsPackedFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.IsPackedFormat
Declaration
public static bool
IsPackedFormat
(
Experimental.Rendering.GraphicsFormat
format
);
Declaration
public static bool
IsPackedFormat
(
TextureFormat
format
);
Description
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a52e0fb2fe19 | unity_docs | physics | What is `ContactPoint2D.normalImpulse` in Unity? Explain its purpose and usage. | ContactPoint2D.normalImpulse
public float
normalImpulse
;
Description
Gets the impulse applied at the contact point along the
ContactPoint2D.normal
.
The impulse is applied to both the
rigidbody
and the
otherRigidbody
at the
point
along the
normal
and the inverse
normal
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d35333d1dcce_doc_6 | github | scripting | What does `OnDisable` do in this Unity script? Explain its purpose and signature. | If you override this Unity Magic™ method, BE SURE TO CALL base.OnDisable() from your method
Signature:
```csharp
protected virtual void OnDisable()
=> UnsubscribeAll();
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_893602bc6e3d | unity_docs | scripting | Explain 'Manually install an APK expansion file' in Unity. | Main and patch expansion files must be in a particular location on the device for the application to read from them. If you
Build and Run
your application, Unity installs both the APK and the main APK expansion file on the device.
If you instead want to install the application manually, or want to install a patch expan... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2142faeada02 | unity_docs | scripting | In Unity's 'Introduction to instantiating prefabs', what is 'Common scenarios' and how does it work? | Instantiating prefabs at runtime is useful in the following common scenarios:
Building a structure out of a single prefab by replicating it multiple times in different positions, for example in a grid or circle formation.
Firing a projectile prefab from a launcher. The projectile prefab can be a complex configuration c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_25e1303d1b2e | unity_docs | scripting | What is `Device.Application.backgroundLoadingPriority` in Unity? Explain its purpose and usage. | Application.backgroundLoadingPriority
public static
ThreadPriority
backgroundLoadingPriority
;
Description
This has the same functionality as
Application.backgroundLoadingPriority
. At the moment, the Device Simulator doesn't support simulation of this property. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ceb5437e637b | unity_docs | scripting | Show me a Unity C# example demonstrating `GeometryUtility.TestPlanesAABB`. | dless of whether it is rendered or not.
The test is conservative and can give false positive results. A bounding box can intersect the planes outside of the frustum because the planes are infinite and extend beyond the frustum volume. A typical false positive result is produced by a big bounding box near the frustum e... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8d64184a2bac | unity_docs | scripting | In Unity's 'Deliver applications to the Mac App Store', what is 'Signing identity' and how does it work? | To distribute your application via the Mac App Store, Apple requires you to use one of the following signing identities when you
code sign
your application:
Signing Identity Format Mac App Distribution
3rd Party Mac Developer Application: TTT
Apple Distribution
Apple Distribution: TTT
Note
: Replace TTT with your team ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5a79326aa3ea | unity_docs | rendering | What is `TextureImporterSwizzle.B` in Unity? Explain its purpose and usage. | TextureImporterSwizzle.B
Description
Use the blue color channel.
Additional resources:
TextureImporter.swizzleR
,
TextureImporter.swizzleG
,
TextureImporter.swizzleB
,
TextureImporter.swizzleA
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_84656c471f59 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R32G32B32_SInt` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R32G32B32_SInt
Description
A three-component, 96-bit signed integer format that has a 32-bit R component in bytes 0..3, a 32-bit G component in bytes 4..7, and a 32-bit B component in bytes 8..11. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_792354179ee9 | unity_docs | scripting | In Unity's 'Create a binding with the Inspector', what is 'Example overview' and how does it work? | This example creates the following:
A custom Inspector UI component with two fields that bind to a
GameObject
’s name and the scale of a USS transform.
A custom Editor window that creates the same bindings inside an
InspectorElement
.
You can find the completed files that this example creates in this
GitHub repository
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3e2234bb9608_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | TOY ONLY: deterministic fake belt source for visualization experiments.Not authoritative simulation and must not be used to validate gameplay systems.
Signature:
```csharp
public sealed class ToyBeltScenarioMinimapSource : GridMinimapSourceBase
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_93366f194d09 | github | scripting | Write a Unity C# script called Event Subscription | ```csharp
using System;
using UnityEngine;
namespace Hudossay.AttributeEvents.Assets.Runtime.CouplingStructure
{
[Serializable]
public class EventSubscription
{
// These fields should be readonly, but if they were, then their values couldn't be saved during hot recompilation.
public GameOb... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_e6e137f231b3 | unity_docs | rendering | What is `Rendering.FilteringSettings.renderQueueRange` in Unity? Explain its purpose and usage. | FilteringSettings.renderQueueRange
public
Rendering.RenderQueueRange
renderQueueRange
;
Description
Unity renders objects whose
Material.renderQueue
value is within range specified by this
RenderQueueRange
.
Additional resources: ScriptableRenderContext.DrawRenderers,
Material.renderQueue
,
RenderQueueRa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0883d4250dc1 | unity_docs | rendering | What is `TerrainLayer.maskMapRemapMax` in Unity? Explain its purpose and usage. | TerrainLayer.maskMapRemapMax
public
Vector4
maskMapRemapMax
;
Description
A Vector4 value specifying the maximum RGBA value that the mask map texture maps to when the value of the channel is 1. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_39c4287be505 | unity_docs | scripting | What is `SerializedProperty.CountInProperty` in Unity? Explain its purpose and usage. | SerializedProperty.CountInProperty
Declaration
public int
CountInProperty
();
Description
Count visible children of this property, including this property itself.
This is useful for allocating height for drawing this property including its children. Note that calling the method will move the property forward, s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_4698d2d4ac62 | unity_docs | rendering | In Unity's 'Video Player component reference', what is 'Render Mode dropdown' and how does it work? | The following options are available in the
Render Mode
dropdown. For further information about these targets, refer to
Video Player component targets
.
Value Description Camera Far Plane
Render the video on the Camera’s
far plane
. If you choose this option, the video plays in the background of the Scene.
Camera Near P... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f17b8ca3078c | unity_docs | editor | What is `PrefabUtility.IsAnyPrefabInstanceRoot` in Unity? Explain its purpose and usage. | PrefabUtility.IsAnyPrefabInstanceRoot
Declaration
public static bool
IsAnyPrefabInstanceRoot
(
GameObject
gameObject
);
Parameters
Parameter
Description
gameObject
The GameObject to check.
Returns
bool
True if the GameObject is the root GameObject of any Prefab instance.
Description
Is the GameObjec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_50ea3a9c404b | unity_docs | scripting | What is `Build.Reporting.CommonRoles.engineLibrary` in Unity? Explain its purpose and usage. | CommonRoles.engineLibrary
public static string
engineLibrary
;
Description
The
BuildFile.role
value of the main Unity runtime when it is built as a separate library.
On most platforms, the Unity runtime is also the main executable for the player, but on some platforms it is split into a separate file, allowin... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7845bc291c82 | unity_docs | scripting | What is `Rendering.AsyncGPUReadback.Request` in Unity? Explain its purpose and usage. | AsyncGPUReadback.Request
Declaration
public static
Rendering.AsyncGPUReadbackRequest
Request
(
ComputeBuffer
src
,
Action<AsyncGPUReadbackRequest>
callback
);
Declaration
public static
Rendering.AsyncGPUReadbackRequest
Request
(
GraphicsBuffer
src
,
Action<AsyncGPUReadbackRequest>
callback
);
Declar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_5b96ec760e07_doc_2 | github | scripting | What does `StartCoroutine` do in this Unity script? Explain its purpose and signature. | Starts a coroutine named methodName.Name of coroutine.
Signature:
```csharp
protected Coroutine StartCoroutine(string methodName)
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_a0a1c5c3d622 | unity_docs | xr | What is `XR.XRDevice.UpdateEyeTextureMSAASetting` in Unity? Explain its purpose and usage. | XRDevice.UpdateEyeTextureMSAASetting
Declaration
public static void
UpdateEyeTextureMSAASetting
();
Returns
void
Nothing.
Description
Recreates the XR platform's eye texture swap chain with the appropriate anti-aliasing sample count. The reallocation of the eye texture will only occur if the MSAA quality s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dac8c07429d7 | unity_docs | scripting | What is `XR.MeshChangeState` in Unity? Explain its purpose and usage. | MeshChangeState
enumeration
Description
The state of a tracked mesh since the last query.
This enum is used by
MeshInfo
to indicate which meshes have been added, updated, or removed.
Additional resources:
XRMeshSubsystem.TryGetMeshInfos
Properties
Property
Description
Added
The mesh has been added since t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5b0ff5c5a4a9 | unity_docs | scripting | What is `SpriteAlignment` in Unity? Explain its purpose and usage. | SpriteAlignment
enumeration
Description
How a Sprite's graphic rectangle is aligned with its pivot point.
Additional resources:
Sprite
class.
Properties
Property
Description
Center
Pivot is at the center of the graphic rectangle.
TopLeft
Pivot is at the top left corner of the graphic rectangle.
TopCenter
P... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4d52bf308995 | unity_docs | math | What is `Rendering.CommandBuffer.SetRayTracingMatrixParam` in Unity? Explain its purpose and usage. | CommandBuffer.SetRayTracingMatrixParam
Declaration
public void
SetRayTracingMatrixParam
(
Rendering.RayTracingShader
rayTracingShader
,
string
name
,
Matrix4x4
val
);
Declaration
public void
SetRayTracingMatrixParam
(
Rendering.RayTracingShader
rayTracingShader
,
int
nameID
,
Matrix4x4
val
);
Para... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_32b10bfde8d2 | unity_docs | scripting | What is `ShortcutManagement.IShortcutManager.ClearShortcutOverride` in Unity? Explain its purpose and usage. | IShortcutManager.ClearShortcutOverride
Declaration
public void
ClearShortcutOverride
(string
shortcutId
);
Parameters
Parameter
Description
shortcutId
ID of shortcut to clear override for.
Description
Clears the binding for shortcut with given shortcut ID from the active profile.
Throws
ArgumentNullExcep... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8952197297ec | unity_docs | scripting | What is `PlayerSettings.SetVirtualTexturingSupportEnabled` in Unity? Explain its purpose and usage. | PlayerSettings.SetVirtualTexturingSupportEnabled
Declaration
public static void
SetVirtualTexturingSupportEnabled
(bool
enabled
);
Parameters
Parameter
Description
enabled
True to enable, false to disable.
Description
Enable virtual texturing.
This is the user prefered state excluding platform support. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aef399b676a2 | unity_docs | scripting | Show me a Unity C# example demonstrating `Color32.g`. | Color32.g
public byte
g
;
Description
Green component of the color.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
Color32 color = Color.white;
void Start()
{
color.g = 0;
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1be4211f5d07 | unity_docs | networking | What is `Networking.DownloadHandler.nativeData` in Unity? Explain its purpose and usage. | DownloadHandler.nativeData
public ReadOnly<byte>
nativeData
;
Description
Provides direct access to downloaded data.
Allocation-free access to downloaded data, stored inside download handler. See also GetNativeData. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d7c1ac378ab5 | unity_docs | ui | What is `UIElements.BindingMode` in Unity? Explain its purpose and usage. | BindingMode
enumeration
Description
Binding mode to control how a binding is updated.
To let the data binding system know that the value in the UI changed, use VisualElement.NotifyPropertyChanged.
Properties
Property
Description
TwoWay
Changes on the data source will be replicated in the UI.
Changes on t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f360ebf75adf | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.B8G8R8A8_UInt` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.B8G8R8A8_UInt
Description
A four-component, 32-bit unsigned integer format that has an 8-bit B component in byte 0, an 8-bit G component in byte 1, an 8-bit R component in byte 2, and an 8-bit A component in byte 3... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_456592fc9e41 | unity_docs | editor | What is `MouseCursor.Link` in Unity? Explain its purpose and usage. | MouseCursor.Link
Description
Arrow with a Link badge (for assigning pointers).
```csharp
//Create a folder and name it “Editor” if this doesn’t already exist
//Put this script in the folder//This script creates a new menu (“Examples”) and a menu item (“Mouse Cursor”). Click on this option. This displays a small win... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_dc06681dc119 | unity_docs | rendering | What are the parameters of `Rendering.VirtualTexturing.Streaming.RequestRegion` in Unity? | Description Make a rectangle in UV space resident for a given Virtual Texture Stack. The system will do it’s best to make this rectangle resident at the requested resolution as fast as possible but due to time and memory constraints this data may take a while to become resident or even never become resident.
This funct... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_67ffe1caea29 | unity_docs | rendering | What is `TextureImporterPlatformSettings.compressionQuality` in Unity? Explain its purpose and usage. | TextureImporterPlatformSettings.compressionQuality
public int
compressionQuality
;
Description
The quality of Crunch texture compression. The range is 0 through 100. A higher quality means larger textures and longer compression times.
Additional resources:
TextureCompressionQuality
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_49622f4fd821 | unity_docs | rendering | In Unity's 'Audio Chorus Filter', what is 'Properties' and how does it work? | Property:
Function:
Dry Mix
Volume of original signal to pass to output. 0.0 to 1.0. Default = 0.5.
Wet Mix 1
Volume of 1st chorus tap. 0.0 to 1.0. Default = 0.5.
Wet Mix 2
Volume of 2nd chorus tap. This tap is 90 degrees out of phase of the first tap. 0.0 to 1.0. Default = 0.5.
Wet Mix 3
Volume of 3rd chorus tap. This... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_974569fec846 | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.RGB_BC6H_SFloat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.RGB_BC6H_SFloat
Description
A three-component, block-compressed format where each 128-bit compressed texel block encodes a 4×4 rectangle of signed floating-point RGB texel data. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ddb5aff9f4cf | unity_docs | math | What is `BillboardAsset.GetVertices` in Unity? Explain its purpose and usage. | BillboardAsset.GetVertices
Declaration
public Vector2[]
GetVertices
();
Declaration
public void
GetVertices
(List<Vector2>
vertices
);
Parameters
Parameter
Description
vertices
The list that receives the array.
Description
Get the vertices of the billboard mesh.
Each vertex is a
Vector2
in UV space... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ce6319ade49d | unity_docs | physics | What is `Rigidbody2D.SlideMovement.maxIterations` in Unity? Explain its purpose and usage. | Rigidbody2D.SlideMovement.maxIterations
public int
maxIterations
;
Description
Controls the maximum number of iterations to perform when determining how a
Rigidbody2D
will slide.
When a
Rigidbody2D.Slide
occurs, each contact that is detected is counted as an interation. An attempt will be made to change dir... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f78190e7dae4 | unity_docs | rendering | Explain 'Shadowmask texture Import Settings window reference' in Unity. | The Shadowmask texture type formats the texture asset so that it can be used as a
shadowmask
. Unity locks
Texture Shape to 2D
for this texture type. For more information, refer to
Texture Shape
.
Property Description Non Power of 2
Specifies how Unity scales the dimension size if the texture source file has a non-powe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_6e6c7d07c83e | github | scripting | Write a Unity C# MonoBehaviour script called Pool Datum | ```csharp
using System;
using UnityEngine;
namespace Pool.Runtime
{
/// <summary>
/// PoolDatum defines the configuration for a single object pool.
/// It contains settings such as the pool's size, the prefab for MonoBehaviour-based objects,
/// and the class type of the objects in the pool.
/// ... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_5dd32b25d9b6 | unity_docs | physics | What is `Rigidbody2D.SlideMovement` in Unity? Explain its purpose and usage. | SlideMovement
struct in
UnityEngine
/
Implemented in:
UnityEngine.Physics2DModule
Description
The configuration that controls how a
Rigidbody2D.Slide
method behaves.
NOTE:
This struct can be used in the Unity Inspector for configuration purposes.
Additional resources:
Rigidbody2D.Slide
and
SlideResults
.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_acd381c615b5 | github | scripting | Write a Unity C# script called Player Loop System Extensions | ```csharp
using System;
using UnityEngine.LowLevel;
namespace UnityMainThreadDispatcher
{
internal static class PlayerLoopSystemExtensions
{
public static ref PlayerLoopSystem Find<T>(this PlayerLoopSystem root)
{
for (int i = 0; i < root.subSystemList.Length; i++)
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_10d0a75886f9 | unity_docs | scripting | What is `Rendering.AttachmentDescriptor.resolveTarget` in Unity? Explain its purpose and usage. | AttachmentDescriptor.resolveTarget
public
Rendering.RenderTargetIdentifier
resolveTarget
;
Description
When the renderpass that uses this attachment ends, resolve the MSAA surface into the given target. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_68fe4abc247f | unity_docs | math | What is `GlobalObjectId.GetGlobalObjectIdsSlow` in Unity? Explain its purpose and usage. | GlobalObjectId.GetGlobalObjectIdsSlow
Declaration
public static void
GetGlobalObjectIdsSlow
(Object[]
objects
,
out GlobalObjectId[]
outputIdentifiers
);
Parameters
Parameter
Description
objects
Array of objects to obtain unique identifiers for.
outputIdentifiers
Array of
GlobalObjectId
objects to write... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fc5c85b232df | unity_docs | math | What is `Bounds` in Unity? Explain its purpose and usage. | Bounds
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Represents an axis aligned bounding box.
An axis-aligned bounding box, or AABB for short, is a box aligned with coordinate axes and fully enclosing
some object. Because the box is never rotated with respect to the axes, it can be ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8a7e3f6ee3ea | unity_docs | scripting | What are the parameters of `Pool.ObjectPool_1.ctor` in Unity? | Description Creates a new ObjectPool instance. ```csharp
using System.Text;
using UnityEngine;
using UnityEngine.Pool;// This component returns the particle system to the pool when the OnParticleSystemStopped event is received.
[RequireComponent(typeof(ParticleSystem))]
public class ReturnToPool : MonoBehaviour
{
p... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f081d16e16cc | unity_docs | scripting | Give me an overview of the `CanAppendBuild` class in Unity. | CanAppendBuild
enumeration
Description
Whether you can append an existing build using
BuildOptions.AcceptExternalModificationsToPlayer
.
Properties
Property
Description
Unsupported
The target platform does not support appending builds.
Yes
The target platform supports appending builds, and the build can be ap... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_0b3124908675 | unity_docs | input | In Unity's 'Mobile Keyboard', what is 'GUI Elements' and how does it work? | The keyboard will appear automatically when a user taps on editable GUI elements. Currently,
GUI.TextField
,
GUI.TextArea and GUI.PasswordField
will display the keyboard; see the
GUI class
documentation for further details. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_eef68fa56b82 | unity_docs | rendering | What is `Rendering.VirtualTexturing.Resolver.CurrentWidth` in Unity? Explain its purpose and usage. | Virtual Texturing is experimental and not ready for production use. The feature and documentation might be changed or removed in the future.
Resolver.CurrentWidth
public int
CurrentWidth
;
Description
Width of the texture that the internal buffers can hold. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4a501adef187 | unity_docs | physics | What are the parameters of `PhysicsShapeGroup2D.SetShapeAdjacentVertices` in Unity? | Description Sets the adjacent vertices of a shape. NOTE : Calling this on a PhysicsShape2D that does not have a shapeType of PhysicsShapeType2D.Edges will result in an exception being thrown. ```csharp
using System;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Assertions;public class Example :... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_20bf9588503c | unity_docs | editor | What is `Unity.Jobs.LowLevel.Unsafe.JobsUtility.JobDebuggerEnabled` in Unity? Explain its purpose and usage. | JobsUtility.JobDebuggerEnabled
public static bool
JobDebuggerEnabled
;
Description
Set whether to use the jobs debugger at runtime.
The jobs debugger is only supported in the Editor, so this property only has effect in the Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_dfff90d775e1 | unity_docs | rendering | Explain 'Rendering paths in Unity' in Unity. | A
rendering path
is the series of operations that draws and lights GameObjects the camera sees. Different rendering paths have different capabilities and performance characteristics.
There are two main types of rendering path in Unity:
Forward
Deferred
## Forward
The
Forward rendering
path is the default rendering pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_969fa2ff56b6 | unity_docs | scripting | What is `SkinWeights.OneBone` in Unity? Explain its purpose and usage. | SkinWeights.OneBone
Description
One bone affects each vertex. When used to access
Mesh.GetBoneWeightBuffer
the Bone Weight buffer will contain only indices to the bones, as the weight will be set to 1.
Additional resources:
QualitySettings.skinWeights
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_db6252b7f00d | unity_docs | rendering | What is `RenderParams` in Unity? Explain its purpose and usage. | RenderParams
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Rendering parameters used by various rendering functions.
This struct defines common parameters shared across various rendering functions.
Additional resources:
Graphics.RenderMesh
,
Graphics.RenderMeshInstanced
,
Graphic... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3c3e0a8aa240 | unity_docs | physics | What is `Joint.enablePreprocessing` in Unity? Explain its purpose and usage. | Joint.enablePreprocessing
public bool
enablePreprocessing
;
Description
Toggle preprocessing for this joint.
This flag has a connection with rigidbodies that have some of their rotational degrees of freedom frozen. The common example is a 2D game that uses 3D rigidbodies with some of their translational and rot... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0f0737dd5174 | unity_docs | scripting | What is `SystemLanguage.Danish` in Unity? Explain its purpose and usage. | SystemLanguage.Danish
Description
Danish.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
//This checks if your computer's operating system is in the Danish language
if (Application.systemLanguage == SystemLanguage.Danish)
{
//Outputs into console that the system is in Danish... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_12fbdcf2114c | unity_docs | physics | What is `Collider2D.forceReceiveLayers` in Unity? Explain its purpose and usage. | Collider2D.forceReceiveLayers
public
LayerMask
forceReceiveLayers
;
Description
The Layers that this
Collider2D
can receive forces from during a Collision contact with another
Collider2D
.
When a collision occurs between two
Collider2D
, both Colliders would normally receive a force from each other that s... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ecd16fa2ed60 | unity_docs | math | What is `Mesh.GetBlendShapeFrameVertices` in Unity? Explain its purpose and usage. | Mesh.GetBlendShapeFrameVertices
Declaration
public void
GetBlendShapeFrameVertices
(int
shapeIndex
,
int
frameIndex
,
Vector3[]
deltaVertices
,
Vector3[]
deltaNormals
,
Vector3[]
deltaTangents
);
Parameters
Parameter
Description
shapeIndex
The shape index of the frame.
frameIndex
The frame index to ge... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f522b91ce703_doc_29 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Represents an object which can receive six or more arguments as part of its initialization process,with the sixth one being an object of type . Type of the sixth argument.
Signature:
```csharp
public interface ISixthArgument<TSixthArgument>
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_d4fc62a7437a | unity_docs | scripting | In Unity's 'Host a scoped registry for your organization', what is 'Supported registry types' and how does it work? | Hosting tools aren’t provided by Unity, but the Package Manager supports registries based on the npm protocol.
Important
: When you set up your own package registry server:
Make sure that whatever registry server you choose implements the
/-/v1/search
or
/-/all
endpoints.
Make sure you use only those features that are ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_051034c3cd97 | unity_docs | math | What is `Bounds.Encapsulate` in Unity? Explain its purpose and usage. | Bounds.Encapsulate
Declaration
public void
Encapsulate
(
Vector3
point
);
Description
Grows the Bounds to include the
point
.
Declaration
public void
Encapsulate
(
Bounds
bounds
);
Description
Grow the bounds to encapsulate the bounds. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3a1c264facc4 | unity_docs | physics | What are the parameters of `PhysicsShapeGroup2D.AddBox` in Unity? | Returns int Returns the shape index the shape was added to in the PhysicsShapeGroup2D . This index is used as the main reference when retrieving a shape. Description Adds a box shape ( PhysicsShapeType2D.Polygon ) to the shape group. A box shape is a form of convex polygon with four vertices and an edgeRadius that exte... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_632610fd3ae8 | unity_docs | rendering | What is `SceneView.CameraSettings.accelerationEnabled` in Unity? Explain its purpose and usage. | SceneView.CameraSettings.accelerationEnabled
public bool
accelerationEnabled
;
Description
Enables Camera movement acceleration in the
SceneView
. This makes the Camera accelerate for the duration of movement.
When acceleration is disabled, the camera moves at a constant speed based on the
speed
value. When ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_78e5a9ab695c | unity_docs | editor | What is `EditorPrefs.GetInt` in Unity? Explain its purpose and usage. | EditorPrefs.GetInt
Declaration
public static int
GetInt
(string
key
);
Declaration
public static int
GetInt
(string
key
,
int
defaultValue
= 0);
Parameters
Parameter
Description
key
Name of key to read integer from.
defaultValue
Integer value to return if the key is not in the storage.
Returns
int... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_07a1aaa3af3c | unity_docs | scripting | What is `MPE.ChannelService.ChannelNameToId` in Unity? Explain its purpose and usage. | ChannelService.ChannelNameToId
Declaration
public static int
ChannelNameToId
(string
channelName
);
Parameters
Parameter
Description
channelName
The ChannelName.
Returns
int
The ChannelId.
Description
Closes a specific channel and all connections to that channel. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e6b695ff602c | unity_docs | scripting | Explain 'UI systems' in Unity. | Unity provides three UI systems: UI Toolkit, uGUI, and IMGUI. You can use these systems to create user interfaces (UI) for the Unity Editor and applications made in the Unity Editor.
Topic Description Comparison of UI systems in Unity
Unity intends for
UI Toolkit
to become the recommended UI system for new UI developme... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e25f23ac740 | unity_docs | math | What is `Experimental.GraphView.StickyNote.defaultSize` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StickyNote.defaultSize
public static
Vector2
defaultSize
;
Description
The default size of the [StickyNote]. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c1f1b0a8910b | unity_docs | rendering | What is `DefaultLightingExplorerExtension` in Unity? Explain its purpose and usage. | DefaultLightingExplorerExtension
class in
UnityEditor
Implements interfaces:
ILightingExplorerExtension
Description
Default definition for the Lighting Explorer. Can be overridden completely or partially.
Constructors
Constructor
Description
DefaultLightingExplorerExtension
Constructor.
Public Methods
Metho... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_449f1f44d98f | unity_docs | editor | What are the parameters of `Search.SearchIndexer.GetDocument` in Unity? | Returns SearchDocument Indexed search document. Description Returns a search document by its index. ```csharp
using UnityEditor;
using UnityEditor.Search;
using UnityEngine;
static class Example_SearchIndexer_GetDocument
{
[MenuItem("Examples/SearchIndexer/GetDocument")]
public static void Run()
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8593729076d9 | unity_docs | rendering | What is `LightProbeProxyVolume.refreshMode` in Unity? Explain its purpose and usage. | LightProbeProxyVolume.refreshMode
public
LightProbeProxyVolume.RefreshMode
refreshMode
;
Description
Sets the way the Light Probe Proxy Volume refreshes.
Additional resources:
RefreshMode
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_75a667772980 | unity_docs | rendering | What is `GraphicsBuffer.Target.Raw` in Unity? Explain its purpose and usage. | GraphicsBuffer.Target.Raw
Description
GraphicsBuffer can be used as a raw byte-address buffer.
In HLSL shaders, this maps to
ByteAddressBuffer
or
RWByteAddressBuffer
. The underlying DirectX 11 format for
shader access is typeless R32.
See Microsoft's HLSL documentation on
ByteAddressBuffer
and
RWByteAddressB... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_63de78d08de4 | unity_docs | editor | What is `Search.QueryGraphOptimizationOptions` in Unity? Explain its purpose and usage. | QueryGraphOptimizationOptions
struct in
UnityEditor.Search
Description
Structure containing the different options used to optimize a query graph.
Properties
Property
Description
propagateNotToLeaves
Propagate "Not" operations to leaves, so only leaves can have "Not" operations as parents.
swapFilterFunctionsT... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7b9f7aaa98e3 | unity_docs | scripting | What is `Windows.Speech.KeywordRecognizer.ctor` in Unity? Explain its purpose and usage. | KeywordRecognizer Constructor
Declaration
public
KeywordRecognizer
(string[]
keywords
);
Declaration
public
KeywordRecognizer
(string[]
keywords
,
Windows.Speech.ConfidenceLevel
minimumConfidence
);
Parameters
Parameter
Description
keywords
The keywords that the recognizer will listen to.
minimumCon... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5ac50ef67cae | unity_docs | audio | What is `Windows.Speech.SpeechError` in Unity? Explain its purpose and usage. | SpeechError
enumeration
Description
Represents an error in a speech recognition system.
Properties
Property
Description
NoError
No error occurred.
TopicLanguageNotSupported
Supplied grammar file language is not supported.
GrammarCompilationFailure
Speech recognition engine failed to compiled specified grammar... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_d1c3e5361c6d | github | scripting | Write a Unity Editor script for Styles | ```csharp
#region
using System;
using UnityEditor;
using UnityEngine;
#endregion
namespace MagicLeap.SetupTool.Editor
{
/// <summary>
/// IMGUI Styles for editor window
/// </summary>
public static class Styles
{
public static GUIStyle TitleStyleDefaultFont = new GUIStyle(EditorStyles.l... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_6933a99beada | unity_docs | scripting | Give me an overview of the `Projector` class in Unity. | Projector
class in
UnityEngine
/
Inherits from:
Behaviour
/
Implemented in:
UnityEngine.CoreModule
Description
A script interface for a
projector component
.
The Projector can be used to project any material onto the Scene - just like a real world projector.
The properties exposed by this class are an exact... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_97d89c90e580 | unity_docs | animation | What is `Animations.AnimationStream.rootMotionPosition` in Unity? Explain its purpose and usage. | AnimationStream.rootMotionPosition
public
Vector3
rootMotionPosition
;
Description
Gets the root motion position for the evaluated frame. (Read Only)
Additional resources:
Animator.applyRootMotion
, and
IAnimationJob.ProcessRootMotion
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e5aae8ac7742 | unity_docs | rendering | Show me a Unity C# example demonstrating `LightingWindowEnvironmentSection`. | LightingWindowEnvironmentSection
class in
UnityEditor
Description
Base class for the Inspector that overrides the Environment section of the Lighting window.
See also
SupportedOnRenderPipelineAttribute
.
```csharp
using UnityEditor;
using UnityEngine;
using UnityEngine.Rendering;[SupportedOnRenderPipeline(typeo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_ea1dbae7baa9 | github | scripting | Write a Unity C# MonoBehaviour script called Network Manager | ```csharp
using UnityEngine;
namespace TapLive.Core
{
/// <summary>
/// Manages network connections (API, WebSocket, WebRTC)
/// </summary>
public class NetworkManager : MonoBehaviour
{
public static NetworkManager Instance { get; private set; }
[Header("Network Clients")]
... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
gh_36b8b9ff13ba_doc_7 | github | scripting | What does `IsMovieReady` do in this Unity script? Explain its purpose and signature. | True while movie frames are loaded and ready.
Signature:
```csharp
public bool IsMovieReady => _movieFrames != null && _movieFrames.Length > 0;
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1c9361bdc5b6 | unity_docs | scripting | What is `Rigidbody2D.SetRotation` in Unity? Explain its purpose and usage. | Rigidbody2D.SetRotation
Declaration
public void
SetRotation
(float
angle
);
Parameters
Parameter
Description
angle
The rotation of the Rigidbody (in degrees).
Description
Sets the rotation of the
Rigidbody2D
to
angle
(given in degrees).
Additional resources:
Rigidbody2D.rotation
and
Rigidbody2D.Mov... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6171c6e9b196 | unity_docs | editor | What is `Android.AndroidSharedLibraryType` in Unity? Explain its purpose and usage. | AndroidSharedLibraryType
enumeration
Description
Options for the type of content that a shared library contains.
```csharp
using UnityEditor;
using UnityEditor.Android;
using UnityEngine;public class AndroidSharedLibraryTypeExample
{
[MenuItem("Tools/Configure Libraries")]
static void ConfigureLibraries()
{
//... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89ca227f9e85 | unity_docs | editor | Show me a Unity C# example demonstrating `AssetDatabase.GetAllAssetBundleNames`. | AssetDatabase.GetAllAssetBundleNames
Declaration
public static string[]
GetAllAssetBundleNames
();
Returns
string[]
Returns an array of AssetBundle names.
Description
Obtain all the AssetBundle names registered in the Asset Database.
```csharp
using UnityEditor;
using UnityEngine;public class GetAssetBund... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7e4c0a8e232f | unity_docs | scripting | What is `Experimental.Rendering.ScriptableRuntimeReflectionSystem.TickRealtimeProbes` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
ScriptableRuntimeReflectionSystem.TickRealtimeProbes
Declaration
public bool
TickRealtimeProbes
();
Returns
bool
Whether a reflection probe was updated.
Description
Update the reflection probes.
Does nothing.
Override ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d745e3a6944d | unity_docs | scripting | Show me a Unity C# example demonstrating `PenStatus`. | often mixed with pen events in the event stream, and you can't distinguish them by type because mouse and pen events share the same
EventType
. Instead, use
PointerType
to distinguish them. Otherwise, Unity processes all incoming mouse events as pen events, which can lead to unexpected behavior because the mouse eve... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2448297e4ead | unity_docs | math | What is `LowLevelPhysics.ImmediatePhysics.GenerateContacts` in Unity? Explain its purpose and usage. | ImmediatePhysics.GenerateContacts
Declaration
public static int
GenerateContacts
(ReadOnly<GeometryHolder>
geom1
,
ReadOnly<GeometryHolder>
geom2
,
ReadOnly<ImmediateTransform>
xform1
,
ReadOnly<ImmediateTransform>
xform2
,
int
pairCount
,
NativeArray<ImmediateContact>
outContacts
,
NativeArray<int>
outContac... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_e805b2c08842 | unity_docs | rendering | Explain 'How Streaming Virtual Texturing works' in Unity. | The Streaming Virtual Texturing system (SVT) divides textures into tiles.
At runtime, when SVT samples a texture, it does the following:
It samples an indirection texture, calculates the non-virtual UVs, and samples a cache texture with these UVs.
It translates the virtual UVs to a tile ID, and binds an additional rend... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_04d15ba6e5cb | unity_docs | scripting | What is `UIElements.SortColumnDescriptions.GetEnumerator` in Unity? Explain its purpose and usage. | SortColumnDescriptions.GetEnumerator
Declaration
public IEnumerator<SortColumnDescription>
GetEnumerator
();
Returns
IEnumerator<SortColumnDescription>
The enumerator.
Description
Returns an enumerator that iterates through the collection. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3e042db0271c_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Unity-facing wrapper that advances the deterministic simulation loop at 32 ticks per second.
Signature:
```csharp
public sealed class SimulationLoopDriver : MonoBehaviour
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_36ccd939f69f | unity_docs | scripting | What is `Experimental.GraphView.IconBadge.ctor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
IconBadge Constructor
Declaration
public
IconBadge
();
Declaration
public
IconBadge
(
UIElements.VisualTreeAsset
template
);
Description
Creates a basic comment badge. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a96f492fc07d | unity_docs | rendering | In Unity's 'Strip shader variants', what is 'Use preprocessor macros to limit variants by platform' and how does it work? | In Unity 2021.3 and above, you can create conditional shader code using a
target platform preprocessor macro
, so you can limit variants on platforms with limited memory.
The code sample does the following:
If you build for a SHADER_API_DESKTOP platform
, Unity builds variants for every possible keyword combination.
If... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_876b1ed2f460 | unity_docs | math | What is `ParticleSystem.GetParticles` in Unity? Explain its purpose and usage. | ParticleSystem.GetParticles
Declaration
public int
GetParticles
(out Particle[]
particles
);
Declaration
public int
GetParticles
(out Particle[]
particles
,
int
size
);
Declaration
public int
GetParticles
(out Particle[]
particles
,
int
size
,
int
offset
);
Declaration
public int
GetParticles
(out... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4960e7878ff0 | unity_docs | input | What is `UIElements.KeyboardNavigationOperation` in Unity? Explain its purpose and usage. | KeyboardNavigationOperation
enumeration
Description
Represents an operation that the user is trying to accomplish through a specific input mechanism.
Tests the received callback value for
KeyboardNavigationManipulator
against the values of this enum to implement the operation in your UI.
Properties
Prope... | 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.