id stringlengths 15 22 | source stringclasses 2
values | category stringclasses 12
values | instruction stringlengths 22 180 | response stringlengths 100 46.1k | system stringclasses 5
values |
|---|---|---|---|---|---|
local_sr_12b153ae2004 | unity_docs | scripting | What are the parameters of `Unity.Collections.LowLevel.Unsafe.UnsafeUtility.MemSwap` in Unity? | Description Swap the content of two memory buffers of the same size. The MemSwap method exchanges the data between two memory buffers. Each buffer must have the same size for the swap to be valid. This method is efficient for reorganizing data or implementing custom shuffle operations. When the memory regions overlap, ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_19ae70e85875 | unity_docs | physics | What is `ForceReserializeAssetsOptions.ReserializeAssets` in Unity? Explain its purpose and usage. | ForceReserializeAssetsOptions.ReserializeAssets
Description
Specifies that
AssetDatabase.ForceReserializeAssets
should load, upgrade, and save the assets at the paths passed to the function, but not their accompanying .meta files. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5daeb1b8e9fb | unity_docs | physics | What is `Joint.currentForce` in Unity? Explain its purpose and usage. | Joint.currentForce
public
Vector3
currentForce
;
Description
The force applied by the solver to satisfy all constraints.
The returned value is relative to
Joint.connectedBody
if it's set. Otherwise, in world space. Additional resources:
Joint.currentTorque
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7fefed56d3d0 | unity_docs | editor | What is `iOS.Xcode.PBXProject.FindFileGuidByProjectPath` in Unity? Explain its purpose and usage. | PBXProject.FindFileGuidByProjectPath
Declaration
public string
FindFileGuidByProjectPath
(string
path
);
Parameters
Parameter
Description
path
The project path of the file.
Returns
string
The GUID of the file if the search succeeded. Returns null if not successful.
Description
Finds a file with the g... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7a0ac17e6d96_doc_0 | github | scripting | What does `ResetToStart` do in this Unity script? Explain its purpose and signature. | Recenter the user view at start position.Note: as the camera itself cannot be moved (overrided by tracking), it uses cameras parent
Signature:
```csharp
public void ResetToStart()
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
gh_f522b91ce703_doc_27 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Represents an object which can receive four or more arguments as part of its initialization process,with the fourth one being an object of type . Type of the fourth argument.
Signature:
```csharp
public interface IFourthArgument<TFourthArgument>
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
gh_ebf9e128c94a | github | scripting | Write a Unity C# animation script for Bar Chair Script | ```csharp
using Unity.Collections;
using UnityEngine;
public class BarChairScript : MonoBehaviour
{
public GameObject AccessPoint;
public GameObject SeatPoint;
public GameObject ZonePoint;
public ClientController Occupier;
//[HideInInspector]
public bool Occupied = false;
private void Up... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_14a5984279c5 | unity_docs | rendering | In Unity's 'Customizing the Player loop', what is 'Accessing the Player loop' and how does it work? | The Player loop consists of a series of nested Player loop systems, each of which is a PlayerLoopSystem structure. The root or outermost Player loop system represents the full Player loop, under which other Player loop systems are nested.
In this context, a Player loop system is just an abstract representation of anyth... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_54f67c85b90a | unity_docs | rendering | What is `Camera.GetGateFittedFieldOfView` in Unity? Explain its purpose and usage. | Camera.GetGateFittedFieldOfView
Declaration
public float
GetGateFittedFieldOfView
();
Returns
float
Returns the effective vertical field of view.
Description
Retrieves the effective vertical field of view of the camera, including GateFit.
Fitting the sensor gate and the resolution gate has an impact on ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a0e88f9665f2 | unity_docs | rendering | In Unity's 'ShaderLab: legacy fog', what is 'Render pipeline compatibility' and how does it work? | Feature name
Built-in
Render Pipeline
Universal Render Pipeline (URP)
High Definition Render Pipeline (HDRP)
Custom SRP
Legacy fog Yes No No No
Use the Fog command to enable or disable Unity’s built-in fog, in shaders that are written using legacy fixed-function style commands.
Configure the
project settings
for the bu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_98835f6ae341 | unity_docs | rendering | Show me a Unity code example for 'Sparse Textures'. | the tile directly under the camera. The example only works if your hardware and platform support sparse textures. To use the example:
Create a scene with a large plane
GameObject
. For more information, refer to
Primitive and placeholder objects
.
Attach the script to the GameObject.
Enter Play mode.
Change the x and y... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_c25202ac14f0 | github | scripting | Write a Unity C# script called Instantiate Operation | ```csharp
using System;
using System.Linq;
using Solid.Attributes;
using UnityEngine;
/*Copyright (c) Created by Oleksii Volovich 2021*/
namespace Solid.Core
{
public class InstantiateOperation<TResult,TPrefab> : Operation<TResult> where TPrefab : Awaitable<TResult>
{
public TPrefab Prefab => awaitable... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_f3f8ada02032 | unity_docs | scripting | Show me a Unity C# example demonstrating `ParticleSystem.NoiseModule.remapX`. | ParticleSystem.NoiseModule.remapX
public
ParticleSystem.MinMaxCurve
remapX
;
Description
Define how the noise values are remapped on the x-axis, when using the
ParticleSystem.NoiseModule.separateAxes
option.
Additional resources:
MinMaxCurve
.
```csharp
using UnityEngine;
using System.Collections;[Requir... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_49fe36e9c701 | unity_docs | editor | What is `Search.SearchExpressionRuntime` in Unity? Explain its purpose and usage. | SearchExpressionRuntime
struct in
UnityEditor.Search
Description
Encapsulate all the runtime data needed to evaluate a root expression and all its parameters. This class contains the
SearchContext
that created the root
SearchExpression
and all the stack frames needed to evaluate all the nested
SearchExpressio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6db11d9be637 | unity_docs | editor | Give me an overview of the `UndoRedoInfo` class in Unity. | UndoRedoInfo
struct in
UnityEditor
Description
Additional resources:
Undo.undoRedoEvent
.
Properties
Property
Description
isRedo
Indicates whether the UndoRedoEvent is an undo or redo event. isRedo is true if the event is a Redo event.
undoGroup
The undo group that the undo or redo event came from.
undoName... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_02f1f26bc2f7 | unity_docs | input | What is `UIElements.PointerOverEvent` in Unity? Explain its purpose and usage. | PointerOverEvent
class in
UnityEngine.UIElements
/
Inherits from:
UIElements.PointerEventBase_1
/
Implemented in:
UnityEngine.UIElementsModule
Description
This event is sent when a pointer enters an element.
The event trickles down and bubbles up.
Inherited Members
Properties Property Description
bubble... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7b7cd6a6ebc6 | unity_docs | ui | What is `EditorWindow.SendEvent` in Unity? Explain its purpose and usage. | EditorWindow.SendEvent
Declaration
public bool
SendEvent
(
Event
e
);
Description
Sends an Event to a window.
The
SendEvent
public function passes a selected
Event
to a chosen visible window. The
Event
can be
found in the
EventType
list.
In the following scripts
SendEventExample
looks up the
Re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_14b15acf3abc | unity_docs | physics | What is `ParticleSystem.ExternalForcesModule.influenceFilter` in Unity? Explain its purpose and usage. | ParticleSystem.ExternalForcesModule.influenceFilter
public
ParticleSystemGameObjectFilter
influenceFilter
;
Description
Apply all Force Fields belonging to a matching Layer to this Particle System. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aec2f5f0023b | unity_docs | scripting | What is `Unity.Properties.Property_2.GetValue` in Unity? Explain its purpose and usage. | Property<T0,T1>.GetValue
Declaration
public TValue
GetValue
(ref TContainer
container
);
Parameters
Parameter
Description
container
The container whose property value will be returned.
Returns
TValue
The property value of the given container.
Description
Returns the property value of a specified con... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_42aa77b47fa6 | unity_docs | scripting | Give me an overview of the `DisplayInfo` class in Unity. | DisplayInfo
struct in
UnityEngine
/
Implemented in:
UnityEngine.CoreModule
Description
Represents a connected display.
Properties
Property
Description
height
The display height in pixels.
name
Human-friendly display name.
refreshRate
The current refresh rate of the display.
width
The display width in pixe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_7c885cf75361 | github | scripting | Write a Unity C# script called Manager | ```csharp
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
namespace starikcetin.Joy.Core
{
// @TODO: Move cache/register scene entity methods to here.
// @TODO: Create a composition root base class with repetitive stuff handled?
// @TODO: Create a partial class on a seperate file wit... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_dc88207a8dbb | unity_docs | animation | What is `Animations.AnimatorControllerPlayable.GetNextAnimatorStateInfo` in Unity? Explain its purpose and usage. | AnimatorControllerPlayable.GetNextAnimatorStateInfo
Declaration
public
AnimatorStateInfo
GetNextAnimatorStateInfo
(int
layerIndex
);
Parameters
Parameter
Description
layerIndex
The layer index.
Returns
AnimatorStateInfo
An
AnimatorStateInfo
with the information on the next state.
Description
Retu... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_701cd618f774 | unity_docs | editor | Explain 'Managing assets with the Asset Database' in Unity. | The
asset import process
converts most asset types from their original format to one optimized for use at authoring time and runtime. The Asset Database stores information about the original source asset files and their imported counterparts to keep the two sets of data in sync.
Topic Description Contents of the Asset ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c7488272bc69 | unity_docs | scripting | What is `SceneTemplate.SceneTemplateService.NewTemplateInstantiating` in Unity? Explain its purpose and usage. | SceneTemplateService.NewTemplateInstantiating
Declaration
public delegate void
NewTemplateInstantiating
(
SceneTemplate.SceneTemplateAsset
sceneTemplateAsset
,
string
newSceneOutputPath
,
bool
additiveLoad
);
Parameters
Parameter
Description
sceneTemplateAsset
The Scene template to instantiate.
newSceneO... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_325a89384505 | unity_docs | scripting | What is `AndroidJNI.GetStaticMethodID` in Unity? Explain its purpose and usage. | AndroidJNI.GetStaticMethodID
Declaration
public static IntPtr
GetStaticMethodID
(IntPtr
clazz
,
string
name
,
string
sig
);
Description
Returns the method ID for a static method of a class.
Additional resources:
Java Native Interface Specification (Oracle) | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b7d13e5287be | unity_docs | animation | Explain '3D Characters and Animation feature set' in Unity. | Animate characters and create cutscenes with the 3D Characters and Animation
feature set
.
Build interactive character rigs and constraints to animate characters and
GameObjects
.
Arrange tracks and clips to create gameplay sequences, cutscenes, or movies.
Orchestrate, shoot, and record beautiful narratives for cutscen... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bef7ff265e84 | unity_docs | editor | What is `EventType.MouseMove` in Unity? Explain its purpose and usage. | EventType.MouseMove
Description
Mouse was moved (Editor views only).
The mouse was moved without any buttons being held down. Use
Event.mousePosition
and
Event.delta
to determine mouse motion.
Note that this event is only sent in the Editor for
EditorWindow
windows which have
EditorWindow.wantsMouseMove
set... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_099797ca5e6e | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.defaultScreenWidth`. | PlayerSettings.defaultScreenWidth
public static int
defaultScreenWidth
;
Description
Default horizontal dimension of stand-alone player window.
Custom player settings.
```csharp
using UnityEngine;
using UnityEditor;
// Simple Script that saves and loads custom
// Stand-alone/Web player screen settings among
/... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c65f7507fcff | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.B8G8R8A8_SRGB` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.B8G8R8A8_SRGB
Description
A four-component, 32-bit unsigned normalized format that has an 8-bit B component stored with sRGB nonlinear encoding in byte 0, an 8-bit G component stored with sRGB nonlinear encoding in... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_41a39d3b2c3f | unity_docs | rendering | Explain 'Unity Denoising' in Unity. | com.unity.rendering.denoising
## Description
Unity Denoising exposes a common high level denoising API for a number of different high quality denoising backends that can be used in the HDRP path tracer, in user scripts or the Unity Progressive Lightmapper
## Version information
Core packages are fixed to a single v... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6df8fd044487 | unity_docs | ui | Show me a Unity C# example demonstrating `GUIStyle.name`. | GUIStyle.name
public string
name
;
Description
The name of this GUIStyle. Used for getting them based on name.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
// Prints the name of the style. void OnGUI()
{
Debug.Log(GUI.skin.button.name);
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3e0ac00bf8e9 | github | scripting | Write a Unity C# script called Gaze Input Manager | ```csharp
using System.Collections.Generic;
using LearnXR.Core;
using UnityEngine;
using UnityEngine.XR;
using UnityEngine.XR.MagicLeap;
using UnityEngine.XR.OpenXR.Features.Interactions;
using InputDevice = UnityEngine.XR.InputDevice;
using Logger = LearnXR.Core.Logger;
public class GazeInputManager : Single... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_6a9394065ae6 | unity_docs | scripting | What is `Rendering.ReflectionProbeRefreshMode.OnAwake` in Unity? Explain its purpose and usage. | ReflectionProbeRefreshMode.OnAwake
Description
Causes the probe to update only on the first frame it becomes visible. The probe will no longer update automatically, however you may subsequently use RenderProbe to refresh the probe
Additional resources:
ReflectionProbe.RenderProbe
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0ca9aad69570 | unity_docs | scripting | What is `AssetImporters.AssetImportContext.SetMainObject` in Unity? Explain its purpose and usage. | AssetImportContext.SetMainObject
Declaration
public void
SetMainObject
(
Object
obj
);
Parameters
Parameter
Description
obj
The object to be set as the main object. This object must already be added with the AddObjectToAsset method.
Description
Sets the main object for import.
Use this method to specify ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_97e0e2d239ba | unity_docs | scripting | What is `PrefabUtility.IsPartOfAnyPrefab` in Unity? Explain its purpose and usage. | PrefabUtility.IsPartOfAnyPrefab
Declaration
public static bool
IsPartOfAnyPrefab
(
Object
componentOrGameObject
);
Parameters
Parameter
Description
componentOrGameObject
The object to check. Must be a component or GameObject.
Returns
bool
True if the object is part of a Prefab.
Description
Returns t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b5c1ca3e2f90 | unity_docs | scripting | Explain 'Update an asset package for the Asset Store' in Unity. | An update is a new version of a package that you have published on the
Asset Store
. Update a package to change its price or properties. The
Package Manager window
displays the option to download the update to any user who has installed the package in their project.
To update a package on the Asset Store:
Open the
Asse... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_b953a590b42f | unity_docs | rendering | Explain 'Set up your scene and lights for baking' in Unity. | Select
Window
>
Rendering
>
Lighting
from the Unity Editor menu to open the Lighting window. Make sure any Mesh you want to apply a lightmap to has proper UVs for lightmapping. The easiest way to do this is to open the
Mesh import settings
and enable the
Generate Lightmap UVs
setting.
Next, to control the resolution of... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_53a325d7c40d | unity_docs | xr | What is `XR.InputDeviceRole` in Unity? Explain its purpose and usage. | InputDeviceRole
enumeration
Description
Enumeration describing the role of a
InputDevice
in providing input.
Properties
Property
Description
Unknown
This device does not have a known role.
Generic
This device is typically a HMD or Camera.
LeftHanded
This device is a controller that represents the left hand.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_098c516aa4cc | unity_docs | rendering | What is `ParticleSystem.Particle.remainingLifetime` in Unity? Explain its purpose and usage. | ParticleSystem.Particle.remainingLifetime
public float
remainingLifetime
;
Description
The remaining lifetime of the particle.
This is the time, in seconds, for how long this particle remains alive.
When the lifetime drops below zero, the system destroys the particle. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3bb35fa9151e | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormat.R8_SNorm` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormat.R8_SNorm
Description
A one-component, 8-bit signed normalized format that has a single 8-bit R component. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_199baf73b46b | unity_docs | scripting | Explain 'PopupWindow' in Unity. | PopupWindow is a text element with a background image and style. It’s not a window of any kind and has no logic associated with it. It’s equivalent to
ShowPopup
.
Note
: For full pop-up functionality, such as automatically closing when the window loses focus, use
UnityEditor.PopupWindow
. Refer to
Create a popup window... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_be1de89d1596 | unity_docs | editor | What are the parameters of `Unity.Profiling.Editor.ProfilerCounterDescriptor.ctor` in Unity? | Description Initializes and returns an instance of ProfilerCounterDescriptor . ```csharp
using System;
using Unity.Profiling;
using Unity.Profiling.Editor;[Serializable]
[ProfilerModuleMetadata("Garbage Collection")]
public class GarbageCollectionProfilerModule : ProfilerModule
{
static readonly ProfilerCounterDesc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7576de88e357 | unity_docs | rendering | What is `TextureImporter.alphaSource` in Unity? Explain its purpose and usage. | TextureImporter.alphaSource
public
TextureImporterAlphaSource
alphaSource
;
Description
Select how the alpha of the imported texture is generated.
Additional resources:
TextureImporterAlphaSource
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_4427805634f1_doc_2 | github | scripting | What does `JPGRecorder` do in this Unity script? Explain its purpose and signature. | Create a JPG recorder.Image width.Image height.
Signature:
```csharp
public JPGRecorder (int imageWidth, int imageHeight)
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_man_01ff1532fe50 | unity_docs | rendering | In Unity's 'Font Asset properties reference', what is 'Face Info' and how does it work? | Use the Face Info properties to control the font’s line metrics.
Property Description Family Name
Name of the font used to create this font asset.
Style Name
Style of the font used to create this font asset. For example,
Regular
,
Bold
, or
Italic
.
Point Size
Font size in points used to generate the font asset.
Scale
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5b41f574e1ae | unity_docs | editor | What is `Search.SearchSelection.MaxIndex` in Unity? Explain its purpose and usage. | SearchSelection.MaxIndex
Declaration
public int
MaxIndex
();
Returns
int
Returns the highest selected index.
Description
Highest selected index of any item in the selection.
```csharp
using UnityEngine;
using UnityEditor;
using UnityEditor.Search;
static class Example_ISearchView_AddSelection
{
static I... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_3fdca7e27c75 | github | scripting | Write a Unity C# script called I Update Transform Job | ```csharp
using Gilzoide.UpdateManager.Jobs.Internal;
using UnityEngine.Jobs;
namespace Gilzoide.UpdateManager.Jobs
{
/// <summary>
/// <see cref="TransformAccess"/>-enabled update job structs must implement this interface to be executed by <see cref="UpdateTransformJobManager{}"/>.
/// </summary>
publ... | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_man_bce7c3ecc92c | unity_docs | xr | Explain 'VR feature set' in Unity. | Create immersive
virtual reality
experiences with Unity’s VR feature set
. The VR feature set provides a starting point for VR development, installing all relevant packages necessary to add interactivity to your apps.
## Getting started
The Unity VR feature set pre-installs the packages you need for VR development. W... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0818402f4657 | unity_docs | rendering | What is `MaterialPropertyBlock.HasBuffer` in Unity? Explain its purpose and usage. | MaterialPropertyBlock.HasBuffer
Declaration
public bool
HasBuffer
(string
name
);
Declaration
public bool
HasBuffer
(int
nameID
);
Parameters
Parameter
Description
nameID
The name ID of the property. Use
Shader.PropertyToID
to get this ID.
name
The name of the property.
Returns
bool
Returns true... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_73667ed7b64d | unity_docs | rendering | What is `DynamicGI.SetEmissive` in Unity? Explain its purpose and usage. | DynamicGI.SetEmissive
Declaration
public static void
SetEmissive
(
Renderer
renderer
,
Color
color
);
Parameters
Parameter
Description
renderer
The
Renderer
that should get a new color.
color
The emissive
Color
.
Description
Allows to set an emissive color for a given renderer quickly, without the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1c6719383fef | unity_docs | ui | What is `ScriptableWizard.otherButtonName` in Unity? Explain its purpose and usage. | ScriptableWizard.otherButtonName
public string
otherButtonName
;
Description
Allows you to set the text shown on the optional other button of the wizard. Leave this parameter out to leave the button out. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8cd0b9c8c73f | unity_docs | rendering | What are the parameters of `Experimental.Rendering.GraphicsStateCollection.WarmUpProgressively` in Unity? | Returns JobHandle Handle to prewarming job. Description Prewarms the given number of shader variant permutations using associated graphics states. ```csharp
using UnityEngine;
using UnityEngine.Experimental.Rendering;
using Unity.Jobs;public class GraphicsStateCollectionWarmup : MonoBehaviour
{
public GraphicsState... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c1232ca3dbc9 | unity_docs | scripting | What is `Experimental.Audio.AudioSampleProvider.SampleFramesHandler` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
AudioSampleProvider.SampleFramesHandler
Declaration
public delegate void
SampleFramesHandler
(
Experimental.Audio.AudioSampleProvider
provider
,
uint
sampleFrameCount
);
Parameters
Parameter
Description
provider
Provide... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_18d7433461df | unity_docs | physics | What is `RaycastHit2D.rigidbody` in Unity? Explain its purpose and usage. | RaycastHit2D.rigidbody
public
Rigidbody2D
rigidbody
;
Description
The
Rigidbody2D
that the
Collider2D
detected by the physics query is attached to.
When the
RaycastHit2D
result is returned from a physics query, the
collider
refers to the specific
Collider2D
that was detected however
rigidbody
refe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fa3ed232e47b | unity_docs | scripting | What are the parameters of `Logger.LogError` in Unity? | Description A variant of Logger.Log that logs an error message. ```csharp
using UnityEngine;
using System.Collections;public class MyGameClass : MonoBehaviour
{
private static ILogger logger = Debug.unityLogger;
private static string kTAG = "MyGameTag";
private Transform tr; void MyGameMethod()
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c5e471d02915 | unity_docs | rendering | In Unity's 'Web Player settings', what is 'Web template' and how does it work? | Select a template to use for your Web Project:
The Default page is a simple white page with a loading bar on a grey canvas.
The Minimal page has only the necessary boilerplate code to run the Web content.
The PWA page has a
Progressive Web App
including a web manifest file and service worker code.
You can use your own ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6df938703c3a | unity_docs | scripting | What is `SystemInfo.processorCount` in Unity? Explain its purpose and usage. | SystemInfo.processorCount
public static int
processorCount
;
Description
Number of processors present (Read Only).
Returns the number of "logical processors" (threads) as reported by the operating system.
This is distinct from the number of physical cores. On CPUs with Hyper-Threading or simultaneous multithrea... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_529b47859172 | unity_docs | xr | In Unity's 'API compatibility levels for .NET', what is 'Third-party .NET libraries' and how does it work? | Only use third-party .NET libraries that have been extensively tested on a wide range of Unity configurations and platforms.
The Mono scripting backend’s just-in-time (JIT) compilation enables dynamic C#/.NET Intermediate Language (IL) code generation during the runtime of your application. The IL2CPP scripting backend... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_0a212619fc54_doc_9 | github | scripting | What does `IPoolable` do in this Unity script? Explain its purpose and signature. | Releases all objects in the non-MonoBehaviour-based pool.The type of non-MonoBehaviour objects to release.
Signature:
```csharp
public static void ReleaseAllPure<T>() where T : class, IPoolable => _poolService.ReleaseAllPure<T>();
``` | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
gh_d57a606dc7c7 | github | scripting | Write a Unity Editor script for Overridable Primitive Drawer | ```csharp
using UnityEditor;
using UnityEngine;
namespace Baxter.ClusterScriptExtensions.Editor.Inspector.ExtensionFieldDrawer
{
using static FieldDrawerUtils;
/// <summary>
/// 数値などの基本的なプリミティブに対し、オーバーライドの有無と値のカスタムUIの2つを提示する実装
/// </summary>
public class OverridablePrimitiveDrawer : IExtensionFiel... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_45c13932044d | unity_docs | math | What is `UIElements.BaseListView.arraySizeFieldWithFooterUssClassName` in Unity? Explain its purpose and usage. | BaseListView.arraySizeFieldWithFooterUssClassName
public static string
arraySizeFieldWithFooterUssClassName
;
Description
The USS class name for the size field of the ListView when the footer is enabled.
Unity adds this USS class to the size field element in the ListView when showBoundCollectionSize is set ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a15fad09e70d | unity_docs | rendering | What is `Texture.currentTextureMemory` in Unity? Explain its purpose and usage. | Texture.currentTextureMemory
public static ulong
currentTextureMemory
;
Description
The amount of memory that all Textures in the scene use.
Provides a snapshot of the amount of memory used while the mipmap streaming and budget are applied. The amount of memory used trends toward
Texture.targetTextureMemory
a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_373df97d81c6 | unity_docs | animation | What is `AnimationUtility.SetObjectReferenceCurves` in Unity? Explain its purpose and usage. | AnimationUtility.SetObjectReferenceCurves
Declaration
public static void
SetObjectReferenceCurves
(
AnimationClip
clip
,
EditorCurveBinding[]
bindings
,
ObjectReferenceKeyframe[][]
keyframes
);
Parameters
Parameter
Description
clip
The animation clip to modify.
bindings
The bindings that define the path... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6017b45f5b2c | unity_docs | scripting | Show me a Unity C# example demonstrating `AudioType.S3M`. | AudioType.S3M
Description
The audio file you want to stream has the ScreamTracker 3 audio file format.
Use this enumeration value to ensure the format type of the audio file has the ScreamTracker 3 audio file format. Use this audio type for files with the extension .s3m
. If the audio file has a different format, U... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4c80c6125bb6 | unity_docs | editor | What is `Handles.xAxisColor` in Unity? Explain its purpose and usage. | Handles.xAxisColor
public static
Color
xAxisColor
;
Description
Color to use for handles that manipulates the X coordinate of something.
This is for used for example in the position, rotation, and scale gizmos, as well as in the Scene View gizmo. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_098cf7d63c99 | unity_docs | scripting | Explain 'Setting up app navigation from the Unity UI' in Unity. | You must provide custom visual resources to the Apple Game Center for its native leaderboard
UI
. Here’s how to set them up in Xcode:
Open the Input window in the Unity Editor. Find the first occurrence of the Submit virtual input, expand it, and change its
Alt Positive Button to joystick button 14
.
Select the EventSy... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f4767c3a1106 | unity_docs | rendering | In Unity's 'Vertex-Lit', what is 'Vertex-Lit Properties' and how does it work? | Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shader is
Vertex-Lit
, which is one of the simplest shaders. All lights shining on it are rendered in a single pass and calculated at vertices only.
Because it is vertex-lit, it won’t display any pixel-based rendering effects, such as light c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f975692f4d28 | unity_docs | scripting | What is `Unity.Android.Gradle.Manifest.Category` in Unity? Explain its purpose and usage. | Category
class in
Unity.Android.Gradle.Manifest
/
Inherits from:
Unity.Android.Gradle.Manifest.BaseElement
Description
The C# definition of the
<category>
Android Manifest element.
For more information about the element, see Android's documentation:
Category element
Properties
Property
Description
Attr... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c55906a79476 | unity_docs | rendering | Explain 'Editor GUI and Legacy GUI texture Import Settings window reference' in Unity. | The
Editor GUI and Legacy GUI
texture type formats the texture asset so that it can be used for HUD and GUI controls. Unity locks
Texture Shape to 2D
for this texture type. For more information, refer to
Texture Shape
.
## Properties
Property Description Alpha Source
Specifies how Unity generates the alpha value for ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a36590f86346 | unity_docs | rendering | In Unity's 'UWP Player settings', what is 'Tile' and how does it work? | Customize the general appearance of your Microsoft Store tiles with these settings:
Property Description Short name
Sets an abbreviated name for the app.
Show name on
Indicates each icon image you want the name to appear on:
Medium Tile
,
Large Tile
, or
Wide Tile
.
Foreground text
Chooses whether to use Light or Dark ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6cf7a8858c2a | unity_docs | scripting | Show me a Unity C# example demonstrating `AssetBundle.LoadFromMemoryAsync`. | ndle, and the setting for
Caching.compressionEnabled
,
this may also involve converting the content to LZ4 or uncompressed format. See
AssetBundles compression
for more details.
The following example shows how to use this method. Note, for the sake of keeping the example simple it reads the bytes from disk, which me... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_781fe6fedf32 | unity_docs | physics | What is `PluginImporter.SetIncludeInBuildDelegate` in Unity? Explain its purpose and usage. | PluginImporter.SetIncludeInBuildDelegate
Declaration
public void
SetIncludeInBuildDelegate
(
PluginImporter.IncludeInBuildDelegate
includeInBuildDelegate
);
Description
Sets the delegate function to be called by ShouldIncludeInBuild.
The delegate is called by
PluginImporter.ShouldIncludeInBuild
and returns... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_ba66fd3f26ff | unity_docs | scripting | Explain 'Prerequisites for WebAssembly 2023' in Unity. | To use WebAssembly 2023 features, you need one of the following browsers:
Browser
Platform support
Chrome 91 or later
Windows, macOS, Linux, Android (Android 10 or newer recommended)
Safari 16.4 or later
macOS, iOS (iOS 15 or later recommended)
Firefox 89 or later
Windows, macOS, Linux, Android (Android 10 or later rec... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a2945936603d | unity_docs | ui | What is `UIElements.VisualElement.disablePlayModeTint` in Unity? Explain its purpose and usage. | VisualElement.disablePlayModeTint
public bool
disablePlayModeTint
;
Description
Play-mode tint is applied by default unless this is set to true. It's applied hierarchically to this
VisualElement
and to all its children that exist on an editor panel. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f85c928d7151 | unity_docs | math | Show me a Unity C# example demonstrating `EditorUtility.DisplayDialog`. | on is displayed. DisplayDialog returns
true
if
ok
button is pressed.
For dialog boxes that might be shown repeatedly, consider using an overload of this method that takes a
DialogOptOutDecisionType
as described in the below the code example.
Additional resources:
EditorUtility.DisplayDialogComplex
function.
Di... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2329a7941cc1_doc_3 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | The Game Object which represents the left hand when teleporting.
Signature:
```csharp
public GameObject leftTeleportController
``` | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_c43b243f1d26 | unity_docs | scripting | What are the parameters of `Handles.DotHandleCap` in Unity? | Description Draw a dot handle. Pass this into handle functions. On EventType.Layout event, calculates handle distance to mouse and calls HandleUtility.AddControl accordingly. On EventType.Repaint event, draws the handle shape. Dot Handle Cap in the Scene View. Add the following script to your Assets folder as DotExampl... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_55da028f253c | unity_docs | scripting | What is `Experimental.Rendering.GraphicsFormatUtility.IsFloatFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.IsFloatFormat
Declaration
public static bool
IsFloatFormat
(
Experimental.Rendering.GraphicsFormat
format
);
Description
Returns true if the format is a single precision floating point format. Returns ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d80c4317f0f1 | unity_docs | rendering | What is `ComputeShader.SetConstantBuffer` in Unity? Explain its purpose and usage. | ComputeShader.SetConstantBuffer
Declaration
public void
SetConstantBuffer
(int
nameID
,
ComputeBuffer
buffer
,
int
offset
,
int
size
);
Declaration
public void
SetConstantBuffer
(string
name
,
ComputeBuffer
buffer
,
int
offset
,
int
size
);
Declaration
public void
SetConstantBuffer
(int
nameID
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fbe728461afb | unity_docs | scripting | Show me a Unity C# example demonstrating `Projector`. | in the Projector's inspector.
It can be used to implement blob or projected shadows. You could also project an animated texture or
a render texture that films another part of the Scene. The projector will render all objects in
its view frustum with the provided material.
There is no shortcut property in
GameObject
or... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3b864e1de3a3 | unity_docs | input | What is `XR.CommonUsages.primary2DAxisTouch` in Unity? Explain its purpose and usage. | CommonUsages.primary2DAxisTouch
public static InputFeatureUsage<bool>
primary2DAxisTouch
;
Description
Represents the primary 2D axis being touched.
The primary 2D axis is the
Vector2
input feature tagged with
CommonUsages.primary2DAxis
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b11e3d798a2c | unity_docs | scripting | What is `Experimental.GraphView.StickyNoteChangeEvent.change` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
StickyNoteChangeEvent.change
public
Experimental.GraphView.StickyNoteChange
change
;
Description
The type of change that occured. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_138e36becb21 | unity_docs | xr | What is `MPE.EventService.Emit` in Unity? Explain its purpose and usage. | EventService.Emit
Declaration
public static void
Emit
(string
eventType
,
object
args
,
int
targetId
,
MPE.EventDataSerialization
eventDataSerialization
);
Declaration
public static void
Emit
(string
eventType
,
object[]
args
,
int
targetId
,
MPE.EventDataSerialization
eventDataSerialization
);
Pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cc6414a97abe | unity_docs | scripting | What is `RectTransform.drivenByObject` in Unity? Explain its purpose and usage. | RectTransform.drivenByObject
public Object
drivenByObject
;
Description
The object that is driving the values of this RectTransform. Value is null if not driven.
Sometimes the values of a RectTransform can be driven by a script. When this is the case, the values should not be editable in the Inspector, and they... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_86289f022683 | unity_docs | rendering | What is `LightingSettings.trainingDataDestination` in Unity? Explain its purpose and usage. | Method group is Obsolete
LightingSettings.trainingDataDestination
Obsolete
Training data export for baked lighting is deprecated.
public string
trainingDataDestination
;
Description
Determines the name of the destination folder for the exported textures. (Editor only).
For example, "myProject/30samples" wo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_ac133d261672_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | A Unity component class to repeatedly poll a register over ModBus and alert at any change
Signature:
```csharp
public class PollRegister : MonoBehaviour
``` | You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples. |
local_sr_c73cdf9e2030 | unity_docs | scripting | What is `Rendering.CullingOptions.NeedsReflectionProbes` in Unity? Explain its purpose and usage. | CullingOptions.NeedsReflectionProbes
Description
When this flag is set, Unity culls Reflection Probes as part of the culling operation.
Default value: set.
Additional resources:
ScriptableCullingParameters.cullingOptions
,
ScriptableRenderContext.Cull
,
CullingResults
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_613f4432c67d | unity_docs | ui | Show me a Unity code example for 'Panel events'. | . Parent elements don’t receive events when descendant visual elements attach or detach from the panel.
For example, in the UXML code below, when you add the parent visual element to a hierarchy that’s already attached to a panel,
parent
,
child
, and grandchild all receive the same event. If you remove parent from the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8c60f2325ced | unity_docs | scripting | What is `Experimental.GraphView.Port.showInMiniMap` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Port.showInMiniMap
public bool
showInMiniMap
;
Description
Whether the element is shown in the minimap. For Port, this property is always set to false. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3858be662849 | unity_docs | rendering | What is `Rendering.GraphicsSettings.SetShaderMode` in Unity? Explain its purpose and usage. | GraphicsSettings.SetShaderMode
Declaration
public static void
SetShaderMode
(
Rendering.BuiltinShaderType
type
,
Rendering.BuiltinShaderMode
mode
);
Parameters
Parameter
Description
type
Built-in shader type to change.
mode
Mode to use for built-in shader.
Description
Set built-in shader mode.
By de... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7ac3db94d43a | unity_docs | scripting | What is `Experimental.GraphView.Port.disabledPortColor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Port.disabledPortColor
public
Color
disabledPortColor
;
Description
The color of the port when disabled. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fa5d97ba7349 | unity_docs | editor | What is `EditorWindow.ShowAsDropDown` in Unity? Explain its purpose and usage. | EditorWindow.ShowAsDropDown
Declaration
public void
ShowAsDropDown
(
Rect
buttonRect
,
Vector2
windowSize
);
Parameters
Parameter
Description
buttonRect
The button from which the position of the window will be determined (see description).
windowSize
The initial size of the window.
Description
Shows ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b6cdc95201cb | unity_docs | physics | What is `Rigidbody.GetAccumulatedTorque` in Unity? Explain its purpose and usage. | Rigidbody.GetAccumulatedTorque
Declaration
public
Vector3
GetAccumulatedTorque
(float
step
= Time.fixedDeltaTime);
Parameters
Parameter
Description
step
The timestep of the next physics simulation.
Returns
Vector3
Accumulated torque expressed in
ForceMode.Force
.
Description
Returns the torque t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4f53beba9133 | unity_docs | rendering | What is `TerrainData.HolesTextureName` in Unity? Explain its purpose and usage. | TerrainData.HolesTextureName
public static string
HolesTextureName
;
Description
The name for the Terrain holes Texture.
Use this name when you call
CopyActiveRenderTextureToTexture
,
DirtyTextureRegion
,
SyncTexture
, or TerrainCallbacks.onTextureChanged to identify the Terrain holes Texture. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_19d2c52bfa8f | unity_docs | ui | Explain 'Change events' in Unity. | When the value of an element changes, a ChangeEvent is sent. This is typically sent when a value in a field of a control changes. For example, when the user toggles a checkbox.
The ChangeEvent is a typed event, and contains both the previous and the new value of the
visual element
.
The event triggers after a change as... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_22632d34a8e1 | unity_docs | rendering | In Unity's 'GPU Usage Profiler module', what is 'GPU profiling support' and how does it work? | The following table lists the platforms that the GPU Usage Profiler module supports:
Platform
Graphics API Status Android OpenGL Supported on devices running NVIDIA or Intel GPUs.
Android Vulkan Not supported
iOS, tvOS Metal Not supported. Use XCode’s GPU Frame Debugger UI instead.
Linux
OpenGL core Supported Linux Vul... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8895fa233df0 | unity_docs | scripting | Show me a Unity C# example demonstrating `Rect.width`. | Rect.width
public float
width
;
Description
The width of the rectangle, measured from the X position.
Setting this value will also change
xMax
.
```csharp
using UnityEngine;public class RectExample : MonoBehaviour
{
// Use this for initialization
void Start()
{
Rect rect = new Rect(10, 10, 50, 30);
Debug... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_fb861116626d | unity_docs | scripting | What is `Unity.IntegerTime.DiscreteTimeTimeExtensions` in Unity? Explain its purpose and usage. | DiscreteTimeTimeExtensions
class in
Unity.IntegerTime
/
Implemented in:
UnityEngine.CoreModule
Description
Extension methods for the DiscreteTime.
Static Methods
Method
Description
Abs
Returns the absolute value of a time value.
Clamp
Clamps the value x into the interval [a, b].
Floor
The lower integer num... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8b9d4ff3b4a1 | unity_docs | physics | What is `TerrainCollider` in Unity? Explain its purpose and usage. | TerrainCollider
class in
UnityEngine
/
Inherits from:
Collider
/
Implemented in:
UnityEngine.TerrainPhysicsModule
Description
A heightmap based collider.
Additional resources:
SphereCollider
,
CapsuleCollider
,
PhysicsMaterial
,
Rigidbody
.
Properties
Property
Description
terrainData
The terrain that... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2b198b931eb2 | unity_docs | scripting | What are the parameters of `Handles.PositionHandle` in Unity? | Returns Vector3 The new value modified by the user's interaction with the handle. If the user has not moved the handle, it will return the same value as you passed into the function. Description Make a position handle. This handle behaves like the built-in move tool in Unity. Position handle in the Scene View.'' Add th... | 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.