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_08e357786778 | unity_docs | editor | What is `SerializedProperty.DataEquals` in Unity? Explain its purpose and usage. | SerializedProperty.DataEquals
Declaration
public static bool
DataEquals
(
SerializedProperty
x
,
SerializedProperty
y
);
Description
Compares the data for two SerializedProperties. This method ignores paths and SerializedObjects.
```csharp
using System;
using UnityEngine;
using UnityEditor;public class Ser... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9ec1448da1aa | unity_docs | rendering | What are the parameters of `Graphics.DrawProceduralIndirectNow` in Unity? | Description Draws procedural geometry on the GPU. DrawProceduralIndirectNow does a draw call on the GPU, without any vertex or index buffers. If the shader requires vertex buffers, one of the following occurs depending on platform:
- If the vertex buffer is declared but the compiler can optimize it away... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_513fb210a58b | unity_docs | editor | What is `SceneManagement.StageUtility.GoToStage` in Unity? Explain its purpose and usage. | StageUtility.GoToStage
Declaration
public static void
GoToStage
(
SceneManagement.Stage
stage
,
bool
setAsFirstItemAfterMainStage
);
Parameters
Parameter
Description
stage
The stage to navigate to.
setAsFirstItemAfterMainStage
When set to true, the new stage replaces existing stages in the breadcrumbs, a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f008e77b8387 | unity_docs | ui | In Unity's 'RadioButton', what is 'Create a RadioButton' and how does it work? | You can create a RadioButton with UI Builder, UXML, or C#. The following C# example creates two new radio buttons in the same container and logically groups them together in the panel.
```
var choice1 = new RadioButton() { text = "Choice 1" };
choice1.RegisterValueChangedCallback(v => Debug.Log("Choice 1 is : " + v.new... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_26a3ace6bb43 | unity_docs | math | What is `AndroidJNI.FromCharArray` in Unity? Explain its purpose and usage. | AndroidJNI.FromCharArray
Declaration
public static char[]
FromCharArray
(IntPtr
array
);
Description
Converts a Java array of
char
to a managed array of System.Char.
Additional resources:
AndroidJNI.GetCharArrayElement
,
AndroidJNI.GetArrayLength
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_227a2fd6dc5f | unity_docs | physics | What are the parameters of `Physics2D.GetContacts` in Unity? | Returns int Returns the number of Colliders placed in the Colliders array. Description Retrieves all Colliders in contact with the Collider . When retrieving contacts, you should ensure that the provided array is large enough to contain all the contacts you are interested in. Typically the array would be reused theref... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b0e7afd51ae5 | unity_docs | ui | Show me a Unity C# example demonstrating `UIElements.Image.image`. | Image.image
public
Texture
image
;
Description
The texture to display in this image. If you assign a
Texture
or
Texture2D
, the Image element will resize and show the assigned texture.
The following example creates an
Image
element and assigns a texture to it.
```csharp
using UnityEngine;
using ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b7d613bd87d7 | unity_docs | ui | What is `Experimental.GraphView.Node.mainContainer` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Node.mainContainer
public
UIElements.VisualElement
mainContainer
;
Description
Main container that includes all other containers. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_97d0b420e7b9 | unity_docs | animation | What is `Animations.AnimatorState.AddStateMachineBehaviour` in Unity? Explain its purpose and usage. | AnimatorState.AddStateMachineBehaviour
Declaration
public T
AddStateMachineBehaviour
();
Returns
T
The type of state machine behaviour to add.
Description
Adds a state machine behaviour class of type T to the AnimatorState.
Note that there is no corresponding "Remove" method. To remove a state machine beha... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8e9889fdff7e | unity_docs | performance | What is `Profiling.FrameDataView.GetCategoryInfo` in Unity? Explain its purpose and usage. | FrameDataView.GetCategoryInfo
Declaration
public
Profiling.ProfilerCategoryInfo
GetCategoryInfo
(ushort
id
);
Parameters
Parameter
Description
id
The ID for the Category.
Returns
ProfilerCategoryInfo
Returns a ProfilerCategoryInfo struct based on the supplied ID. If the ID doesn't exist, an exception i... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c70e86161925 | unity_docs | rendering | What are the parameters of `Rendering.CommandBuffer.SetBufferData` in Unity? | Description Adds a command to set the buffer with values from an array. The input data must follow the data layout rules of the graphics API in use. See Compute Shaders for cross-platform compatibility information. Note: Because only blittable data types can be copied from the array to the buffer, the array must only c... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4933d27588d4 | unity_docs | rendering | What is `LightTransport.RadeonRaysContext.CreateEvent` in Unity? Explain its purpose and usage. | RadeonRaysContext.CreateEvent
Declaration
public
LightTransport.EventID
CreateEvent
();
Returns
EventID
ID of newly created event.
Description
Creates a new event.
The event may be passed to
IDeviceContext.ReadBuffer
and
IDeviceContext.WriteBuffer
to track when the corresponding read or write finish... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_61d4c83d44aa | unity_docs | editor | What is `Device.SystemInfo.computeSubGroupSize` in Unity? Explain its purpose and usage. | SystemInfo.computeSubGroupSize
public static int
computeSubGroupSize
;
Description
This has the same functionality as
SystemInfo.computeSubGroupSize
and also mimics platform-specific behavior in the Unity Editor. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6974bdfb8d4d | unity_docs | rendering | What is `Experimental.Rendering.GraphicsFormatUtility.IsCompressedFormat` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphicsFormatUtility.IsCompressedFormat
Declaration
public static bool
IsCompressedFormat
(
Experimental.Rendering.GraphicsFormat
format
);
Declaration
public static bool
IsCompressedFormat
(
TextureFormat
format
);
D... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_f522b91ce703_doc_7 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Represents an object which can receive eight arguments as part of its initialization process.-derived classes that implement this interface can be instantiated with their dependency using the function.-derived classes that implement this interface can be added to a with their dependency using the function.If the class... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_72f84f7a0cc6 | unity_docs | math | What is `AssetBundleManifest.GetAllAssetBundlesWithVariant` in Unity? Explain its purpose and usage. | AssetBundleManifest.GetAllAssetBundlesWithVariant
Declaration
public string[]
GetAllAssetBundlesWithVariant
();
Returns
string[]
An array of asset bundle names.
Description
Get all the AssetBundles with variant in the manifest. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_80aecb102a6d | unity_docs | physics | What is `CompositeCollider2D.pathCount` in Unity? Explain its purpose and usage. | CompositeCollider2D.pathCount
public int
pathCount
;
Description
The number of paths in the Collider.
A
path
is a cyclic sequence of line segments between points that define the outline of a polygon. Since the polygon can have holes and discontinuous parts, its shape is not necessarily defined by a single pat... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0b3d563665b0 | unity_docs | animation | What is `Animations.AnimationHumanStream.GetGoalRotationFromPose` in Unity? Explain its purpose and usage. | AnimationHumanStream.GetGoalRotationFromPose
Declaration
public
Quaternion
GetGoalRotationFromPose
(
AvatarIKGoal
index
);
Parameters
Parameter
Description
index
The AvatarIKGoal that is queried.
Returns
Quaternion
The rotation of this IK goal.
Description
Returns the rotation of this IK goal in w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4a1560a61d6b | unity_docs | xr | What is `PackageManager.Requests.Request` in Unity? Explain its purpose and usage. | Request
class in
UnityEditor.PackageManager.Requests
Implements interfaces:
ISerializationCallbackReceiver
Description
Tracks the state of an asynchronous Unity Package Manager (Upm) server operation.
Properties
Property
Description
Error
The error returned by the request, if any.
IsCompleted
Whether the re... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2cea5f9aa14b | unity_docs | rendering | What are the parameters of `TextureMipmapLimitGroups.RemoveGroup` in Unity? | Description (Editor Only) Attempts to remove a texture mipmap limit group with the indicated groupName . This operation fails and throws an exception if groupName is null or there is no texture mipmap limit group named groupName . If Unity finds a matching group, Unity removes it from all quality levels. Unity does not... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5a02dc5b86e3 | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.WriteToStream` in Unity? | Description Writes the project contents to the specified text writer. ```csharp
using UnityEditor;
using System.IO;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;public class Sample_WriteToStream
{
[PostProcessBuild]
public static void OnPostprocessBuild(BuildTarget buildTarget, string pathToBuiltP... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_29de5b125ad1 | unity_docs | ui | In Unity's 'Package Manifest window reference', what is 'Information section' and how does it work? | Property Description Name
The official name for this package. For Unity packages, this is the short name (the official name without the
com.unity.
string at the beginning.)
Organization name
The identifier of the
Unity Organization
that created this package.
Display name
The user-facing name on display in the
Project w... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_138fdb84a130_doc_5 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | Emitted once the LocalizationSettings is initialized.The parameter is true if there were was more than one locale configured.
Signature:
```csharp
public UnityEvent<bool> OnInitialized;
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_a66b78b3754b | unity_docs | rendering | What is `Experimental.Lightmapping.probesIgnoreIndirectEnvironment` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
Lightmapping.probesIgnoreIndirectEnvironment
public static bool
probesIgnoreIndirectEnvironment
;
Description
If enabled ignores the indirect contribution from the environment lighting in baked probes.
This feature is useful... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d251b6f30040 | unity_docs | rendering | What is `ParticleSystem.MainModule.startSizeZMultiplier` in Unity? Explain its purpose and usage. | ParticleSystem.MainModule.startSizeZMultiplier
public float
startSizeZMultiplier
;
Description
A multiplier for
ParticleSystem.MainModule.startSizeZ
.
Changing this property is more efficient than accessing the entire curve, if you only want to change the overall size multiplier.
```csharp
using UnityEngine;... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a06334d817b4 | unity_docs | rendering | What is `Material.GetShaderPassEnabled` in Unity? Explain its purpose and usage. | Material.GetShaderPassEnabled
Declaration
public bool
GetShaderPassEnabled
(string
passName
);
Parameters
Parameter
Description
passName
Shader pass name (case insensitive).
Returns
bool
True if the Shader pass is enabled.
Description
Checks whether a given Shader pass is enabled on this Material.
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_65fb00ddabaf | unity_docs | audio | What is `Rendering.SplashScreen.Draw` in Unity? Explain its purpose and usage. | SplashScreen.Draw
Declaration
public static void
Draw
();
Description
Immediately draws the splash screen. Ensure you have called
SplashScreen.Begin
before you start calling this.
```csharp
using System.Collections;
using UnityEngine;
using UnityEngine.Rendering;// This example shows how you could draw the sp... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_0cd46cdc0781 | unity_docs | scripting | Give me an overview of the `TextGeneratorType` class in Unity. | TextGeneratorType
enumeration
Description
Defines the types of text generators to use.
This enum is used to switch between Unity's standard and advanced text generators.
Properties
Property
Description
Standard
The standard text generator, which is the default option.
Advanced
Supports comprehensive Unicode a... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_560569767e9d | unity_docs | rendering | In Unity's 'Mipmaps', what is 'Mipmap bias' and how does it work? | A setting called mipmap bias can do two things while sampling, based on the sampler settings:
The mipmap bias can change the threshold for the GPU selecting a lower or higher mipmap level for a sample. The GPU selects a specific mipmap level when you use point and linear filtering in a sampler. For example, the GPU’s m... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_cbbd3873ba53 | unity_docs | rendering | In Unity's 'Introduction to Lightmap UVs', what is 'Baked lightmap UVs' and how does it work? | Baked lightmap UVs are per-mesh: all instances of the same mesh share the same baked lightmap UVs. Unity can calculate the UVs for baked lightmaps when you import a model, or you can provide your own data.
Unity stores baked lightmap UVs in its mesh in the
Mesh.uv2
channel. This channel maps to the TEXCOORD1 shader sem... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d29b354e84ec | unity_docs | editor | What are the parameters of `iOS.Xcode.PBXProject.AddRemotePackageReferenceAtVersionUpToNextMinor` in Unity? | Returns string Returns the GUID of the remote package reference. Description Adds a reference to the remote package at the given version and allows updates up to the next minor version. ```csharp
using UnityEditor;
using System.IO;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;public class Sample_AddRemotePa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_135aa3b3bc3f | unity_docs | scripting | What are the parameters of `Camera.SetStereoViewMatrix` in Unity? | Description Sets a custom view matrix for a specific stereoscopic eye. In most cases you should use the view matrices provided by the VR SDK to ensure accurate stereoscopic rendering. However, in some scenarios it can be useful to override the view matrices to achieve specific effects. For example, custom view matrices... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5d5491e588ba | unity_docs | rendering | In Unity's 'Lighting Mode', what is 'Shadow mask textures' and how does it work? | If you select Shadowmask mode or Distance Shadowmask mode, Unity creates shadow mask textures to store baked shadows for static GameObjects. Each shadow mask texture stores occlusion information about
baked lights
, and has the following characteristics:
Uses the same UV layout and resolution as its corresponding light... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ed6b7489318f | unity_docs | scripting | What is `Mathf.PingPong` in Unity? Explain its purpose and usage. | Mathf.PingPong
Declaration
public static float
PingPong
(float
t
,
float
length
);
Description
PingPong returns a value that increments and decrements between zero and the length. It follows the triangle wave formula where the bottom is set to zero and the peak is set to
length
.
PingPong requires the value... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_590c797569dd | unity_docs | scripting | What is `Search.PropertyDatabaseRecordKey.documentKey` in Unity? Explain its purpose and usage. | PropertyDatabaseRecordKey.documentKey
public ulong
documentKey
;
Description
The key of the document owning the property.
A document key is useful when you store multiple properties of an asset or game object, and want to invalidate them all when it is modified.
Additional resources:
PropertyDatabase.CreateDoc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_44fdfc2c2edc | unity_docs | physics | Show me a Unity C# example demonstrating `PhysicsShapeGroup2D.SetShapeVertex`. | to.
Description
Sets a single vertex of a shape.
NOTE
: When accessing multiple vertices, it is more efficient to do one of the following:
Get all the shape vertices using
GetShapeVertices
Get all the shape group vertices using
GetShapeData
Create the
PhysicsShapeGroup2D
with explicit shapes and vertices list... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_2ff554a3007e | unity_docs | rendering | What is `TerrainTools.TerrainPaintUtility.GetBrushWorldSizeLimits` in Unity? Explain its purpose and usage. | TerrainPaintUtility.GetBrushWorldSizeLimits
Declaration
public static void
GetBrushWorldSizeLimits
(out float
minBrushWorldSize
,
out float
maxBrushWorldSize
,
float
terrainTileWorldSize
,
int
terrainTileTextureResolutionPixels
,
int
minBrushResolutionPixels
,
int
maxBrushResolutionPixels
);
Parameters
Par... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_5b02bbed27c8 | unity_docs | ui | Show me a Unity code example for 'IMGUIContainer'. | The IMGUIContainer element renders IMGUI code in a UI. You can use it to render complex UIs that aren’t possible with the existing UI Toolkit elements.
## Create an IMGUIContainer
You can create an IMGUIContainer with UXML or C#.
Assume you have an IMGUI code snippet like the following:
```csharp
void IMGUICode()
{
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_f7874b3161c9 | unity_docs | rendering | What is `Material.mainTextureOffset` in Unity? Explain its purpose and usage. | Material.mainTextureOffset
public
Vector2
mainTextureOffset
;
Description
The offset of the main texture.
By default, Unity considers a texture with the property name name
"_MainTex"
to be the main texture. Use the
[MainTexture]
ShaderLab Properties attribute
to make Unity consider a texture with a dif... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_24eca11f5b18 | unity_docs | editor | Show me a Unity C# example demonstrating `VersionControl.Provider.Resolve`. | .ResolveMethod
resolveMethod
);
Parameters
Parameter
Description
assets
List of assets to resolve.
resolveMethod
How the assets should be resolved.
Description
Starts a task that will resolve the conflicting assets in version control.
When conflicts between the depot and the local version of the asset app... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_7c40376afcfd | unity_docs | scripting | What is `ChangeGameObjectStructureEventArgs` in Unity? Explain its purpose and usage. | ChangeGameObjectStructureEventArgs
struct in
UnityEditor
Description
A change of this type indicates that the structure of a
GameObject
has changed. This happens when a component is added to or removed from the
GameObject
using
Undo.AddComponent
or
Undo.DestroyObjectImmediate
.
Note that multiple changes t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c36234bc94a7 | unity_docs | scripting | What is `Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.IsHandleValid` in Unity? Explain its purpose and usage. | AtomicSafetyHandle.IsHandleValid
Declaration
public static bool
IsHandleValid
(ref
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle
handle
);
Parameters
Parameter
Description
handle
The AtomicSafetyHandle to check.
Returns
bool
true
if the AtomicSafetyHandle is valid,
false
otherwise.
Descript... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d8bc9fa044ce | unity_docs | physics | Show me a Unity C# example demonstrating `MonoBehaviour.OnMouseDrag`. | use is down.
This event is sent to all scripts attached to the
Collider
. This function is not called on objects that belong to Ignore Raycast layer.
This function is called on Colliders and 2D Colliders marked as trigger when the following properties are set to true:
For 3D physics:
Physics.queriesHitTriggers
For... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8f6df929afbb | unity_docs | rendering | What is `Rendering.BatchPackedCullingViewID.GetInstanceID` in Unity? Explain its purpose and usage. | BatchPackedCullingViewID.GetInstanceID
Declaration
public int
GetInstanceID
();
Description
Returns the instance ID of the GameObject from which Unity performs the culling (for example, Camera, Light, etc.). | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_8a3ab74b0db8 | unity_docs | physics | Show me a Unity C# example demonstrating `Rigidbody.AddRelativeForce`. | to its coordinate system.
Force can be applied only to an active rigidbody. If a GameObject is inactive, AddRelativeForce has no effect.
Wakes up the Rigidbody by default. If the force size is zero then the Rigidbody will not be woken up.
For more information on how ForceMode affects velocity, see
Rigidbody.AddForce
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d9ddb38eef3f | unity_docs | physics | What is `Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle.EnforceAllBufferJobsHaveCompletedAndDisableReadWrite` in Unity? Explain its purpose and usage. | AtomicSafetyHandle.EnforceAllBufferJobsHaveCompletedAndDisableReadWrite
Declaration
public static
Unity.Collections.LowLevel.Unsafe.EnforceJobResult
EnforceAllBufferJobsHaveCompletedAndDisableReadWrite
(
Unity.Collections.LowLevel.Unsafe.AtomicSafetyHandle
handle
);
Parameters
Parameter
Description
handle
... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9404d3882ad5 | unity_docs | rendering | What is `ParticleSystem.isEmitting` in Unity? Explain its purpose and usage. | ParticleSystem.isEmitting
public bool
isEmitting
;
Description
Determines whether the Particle System is emitting particles. A Particle System may stop emitting when its emission module has finished, it has been paused or if the system has been stopped using
Stop
with the
StopEmitting
flag. Resume emitting ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_a994af212e33 | unity_docs | animation | What is `LegDof.LastLegDof` in Unity? Explain its purpose and usage. | LegDof.LastLegDof
Description
The last value of the
LegDof
enum.
This value can be used in
for
loops.
```csharp
using UnityEngine;using UnityEngine.Animations;public class ExampleClass : MonoBehaviour
{
void Start()
{
for (int i = 0; i < (int)LegDof.LastLegDof; ++i)
{
var handle = new MuscleHandle(HumanPa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_2845fdcbf086 | unity_docs | scripting | In Unity's 'Windows Player: IL2CPP Scripting Backend', what is 'C++ source code plugins for IL2CPP' and how does it work? | You can add C++ (.cpp) code files directly into a Unity Project when using the IL2CPP scripting backend. The C++ files act as plugins within the Plugin
Inspector
. If you configure the C++ files to be compatible with Windows Player, Unity compiles them together with C++ code that gets generated from managed assemblies.... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a18611b0da4c | unity_docs | editor | Show me a Unity code example for 'Load UXML and USS C# scripts'. | from ScriptableObject Select the asset in the Project browser
Inside the serialized data of the asset itself
Note
: The default references works for all scripts that derive from MonoBehaviour or
ScriptableObject
. It provides a way to populate default values for serialized fields of scripts.
The following example MonoB... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_6d0550a8e325 | unity_docs | physics | What is `ShortcutManagement.ShortcutBinding.keyCombinationSequence` in Unity? Explain its purpose and usage. | ShortcutBinding.keyCombinationSequence
public IEnumerable<KeyCombination>
keyCombinationSequence
;
Description
The sequence of key combinations required to trigger a shortcut with this binding. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_9226ae28e839 | unity_docs | editor | What is `IMGUI.Controls.TreeViewItem` in Unity? Explain its purpose and usage. | TreeViewItem
class in
UnityEditor.IMGUI.Controls
Description
The TreeViewItem is used to build the tree representation of a tree data structure.
The TreeViewItem can be derived from to add custom data.
Additional resources:
TreeView
.
Properties
Property
Description
children
The list of child items of this T... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b79781c02403 | unity_docs | scripting | What is `UIElements.BaseTreeView.itemIndentUssClassName` in Unity? Explain its purpose and usage. | BaseTreeView.itemIndentUssClassName
public static string
itemIndentUssClassName
;
Description
The USS class name for TreeView indent element.
Unity adds this USS class to every indent element of the TreeView. Any styling applied to
this class affects every item located beside, or below the stylesheet in th... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_47aba5b4bce0 | unity_docs | math | What is `Rendering.RayTracingMeshInstanceConfig.mask` in Unity? Explain its purpose and usage. | RayTracingMeshInstanceConfig.mask
public uint
mask
;
Description
The ray tracing instance mask.
During acceleration structure traversal, the GPU accepts or rejects geometry based on the instance mask and InstanceInclusionMask specified when you call the
TraceRay
HLSL function, or when you execute ray queries ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_2c0fba70b993_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | A base class for MonoBehaviours that can beinstantiatedor addedto a with eight arguments passed to the function of the created instance.Instances of classes inheriting from receive the arguments via the method where they can be assigned to member fields or properties. Type of the first argument received in the func... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_c84ee7a857e9 | unity_docs | editor | What is `EditorBuildSettings.GetConfigObjectNames` in Unity? Explain its purpose and usage. | EditorBuildSettings.GetConfigObjectNames
Declaration
public static string[]
GetConfigObjectNames
();
Returns
string[]
Returns an array of strings containing the names of all stored references. If there are no references, an empty array will be returned.
Description
Return a string array containing the name... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_355f3580d8b7 | unity_docs | scripting | Show me a Unity C# example demonstrating `Video.VideoAudioOutputMode`. | VideoAudioOutputMode
enumeration
Description
Places where the audio embedded in a video can be sent.
Use this enum to mute your audio, output your audio through Unity’s audio system, or output the audio directly to the audio hardware.
```csharp
// This script changes the audio output of a video when you press the... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_ad554eaedb82 | unity_docs | scripting | What is `Progress.Item.finished` in Unity? Explain its purpose and usage. | Progress.Item.finished
public bool
finished
;
Description
Returns true if the progress indicator is finished, but not removed.
A progress indicator is considered finished when its status is either
Succeeded
or
Failed
.
Additional resources:
Progress.GetStatus
,
Status
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_70f709c54338 | unity_docs | editor | Explain 'Embedded resources in Web' in Unity. | .NET assemblies can contain embedded resources. An embedded resource is a collection of binary data that’s part of the .NET assembly. You can access this binary data in code via a file-like API.
By default, Web builds don’t include embedded resources. This helps to keep the size of the final binary lower, because embed... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_cd3b37ec01af | github | scripting | Write a Unity Editor script for Gaussian Rotate Tool | ```csharp
// SPDX-License-Identifier: MIT
using GaussianSplatting.Runtime;
using UnityEditor;
using UnityEditor.EditorTools;
using UnityEngine;
namespace GaussianSplatting.Editor
{
/* not working correctly yet
[EditorTool("Gaussian Rotate Tool", typeof(GaussianSplatRenderer), typeof(GaussianToolContext))]
... | You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization. |
local_sr_f9b2be38aa9e | unity_docs | editor | What is `UIElements.IEventHandler.HandleEvent` in Unity? Explain its purpose and usage. | IEventHandler.HandleEvent
Declaration
public void
HandleEvent
(
UIElements.EventBase
evt
);
Parameters
Parameter
Description
evt
The event to handle.
Description
Handles an event according to its propagation phase and current target, by executing the element's
default action or callbacks associated with... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_906dce7db9c9 | unity_docs | editor | What is `EditorGUILayout.DoubleField` in Unity? Explain its purpose and usage. | EditorGUILayout.DoubleField
Declaration
public static double
DoubleField
(double
value
,
params GUILayoutOption[]
options
);
Declaration
public static double
DoubleField
(double
value
,
GUIStyle
style
,
params GUILayoutOption[]
options
);
Declaration
public static double
DoubleField
(string
label
,
d... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_78dfbfa1f90b | github | scripting | Write a Unity C# MonoBehaviour script called Event Bench Receiver | ```csharp
using System;
using UnityEngine;
using BehaviourInject;
public class EventBenchReceiver : MonoBehaviour {
[InjectEvent]
public Action<MyEvent> receiver;
void Awake()
{
receiver += HandleEvent;
}
//[InjectEvent]
public void HandleEvent(MyEvent evt)
{
}
}
``` | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_b6aedb94f483 | unity_docs | animation | What is `Animations.AnimatorStateMachine.SetStateMachineTransitions` in Unity? Explain its purpose and usage. | AnimatorStateMachine.SetStateMachineTransitions
Declaration
public void
SetStateMachineTransitions
(
Animations.AnimatorStateMachine
sourceStateMachine
,
AnimatorTransition[]
transitions
);
Parameters
Parameter
Description
stateMachine
The source state machine.
transitions
The outgoing transitions.
Desc... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_4a6511ca7377 | unity_docs | rendering | What are the parameters of `Material.SetKeyword` in Unity? | Description Sets the state of a local shader keyword for this material. Shader keywords determine which shader variants Unity uses. For information on working with local shader keywords and global shader keywords and how they interact, see Using shader keywords with C# scripts . When value is true , this function calls... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1580e9e41dbf | unity_docs | editor | What are the parameters of `AssetImporter.RemoveRemap` in Unity? | Returns bool Returns true if an element was removed, otherwise false. Description Removes an item from the map of external objects. Apply changes by writing the metadata and reimporting the Asset. The external Asset referenced in the map is not affected in any way by this method. ```csharp
using UnityEngine;
using Unit... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_bc7e0e54f826 | unity_docs | editor | Give me an overview of the `Help` class in Unity. | Help
class in
UnityEditor
Description
Helper class to access Unity documentation.
Static Methods
Method
Description
BrowseURL
Open url in the default web browser.
GetHelpURLForObject
Get the URL for this object's documentation.
HasHelpForObject
Is there a help page for this object?
ShowHelpForObject
Show he... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_580a46dca75a | unity_docs | rendering | What are the parameters of `Rendering.ScriptableRenderContext.ExecuteCommandBuffer` in Unity? | Description Schedules the execution of a custom graphics Command Buffer. During the call to ScriptableRenderContext.ExecuteCommandBuffer , ScriptableRenderContext registers the commandBuffer parameter into its own internal list of commands to execute.
The actual execution of these commands (including the commands store... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d5505f4760c6 | unity_docs | xr | What is `Playables.PlayableExtensions.GetTraversalMode` in Unity? Explain its purpose and usage. | PlayableExtensions.GetTraversalMode
Declaration
public static
Playables.PlayableTraversalMode
GetTraversalMode
(U
playable
);
Returns
PlayableTraversalMode
Traversal mode (Mix or Passthrough).
Description
Returns the propagation mode for the multi-output playable. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d23576d9bdd5 | unity_docs | rendering | What is `TrailRenderer.widthCurve` in Unity? Explain its purpose and usage. | TrailRenderer.widthCurve
public
AnimationCurve
widthCurve
;
Description
Set the curve describing the width of the trail at various points along its length.
This property is multiplied by
TrailRenderer.widthMultiplier
to get the final width of the trail.
```csharp
using UnityEngine;
using System.Collection... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_c71890fb7498 | unity_docs | xr | Explain 'Install a UPM package by name' in Unity. | If you know the exact name of a
UPM package
you want to install, you can use the
Install package by name
option to install it. This is a quick way to install a UPM package that comes from a registry.
This method works for any UPM package and version that’s currently hosted on the Unity package registry or any
scoped pa... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_61c825ed95d3 | unity_docs | math | What is `Vector4.positiveInfinity` in Unity? Explain its purpose and usage. | Vector4.positiveInfinity
public static
Vector4
positiveInfinity
;
Description
Shorthand for writing
Vector4(float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity, float.PositiveInfinity)
. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_bab59e9c1a33 | unity_docs | rendering | In Unity's 'Process to become a Verified Solution', what is 'Detailed documentation' and how does it work? | You must provide detailed and extensive documentation for the solution, which must meet the following requirements:
Includes a list of supported Unity streams and platforms.
Outlines unsupported graphics pipelines (such as HDRP, URP, or Built-In) and
scripting backends
(such as Mono or IL2CPP).
Documents limitations or... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_091d111feeb7_doc_0 | github | scripting | What does `this member` do in this Unity script? Explain its purpose and signature. | A base class for MonoBehaviours that can beinstantiatedor addedto a with two arguments passed to the function of the created instance.Instances of classes inheriting from receive the argumentsvia the method where they can be assigned to member fields or properties. Type of the first argument received in the functi... | You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples. |
local_sr_06e9184d7e7c | unity_docs | rendering | What is `UIElements.Background` in Unity? Explain its purpose and usage. | Background
struct in
UnityEngine.UIElements
/
Implemented in:
UnityEngine.UIElementsModule
Description
Describes a
VisualElement
background.
Properties
Property
Description
renderTexture
The RenderTexture to display as a background.
sprite
The sprite to display as a background.
texture
The t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_74982c189c64 | unity_docs | math | What is `Screen.MoveMainWindowTo` in Unity? Explain its purpose and usage. | Screen.MoveMainWindowTo
Declaration
public static
AsyncOperation
MoveMainWindowTo
(ref
DisplayInfo
display
,
Vector2Int
position
);
Parameters
Parameter
Description
display
The target display where the window should move to.
position
The position the window moves to. Relative to the top left corner ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_3ba3f72ed1a5 | unity_docs | editor | What is `AssetDatabase.StopAssetEditing` in Unity? Explain its purpose and usage. | AssetDatabase.StopAssetEditing
Declaration
public static void
StopAssetEditing
();
Description
Ends the Asset Database's temporary paused state, allowing it to resume normal automatic imports.
This method is designed to be called after
AssetDatabase.StartAssetEditing
, to end the asset editing phase and comple... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_763a16196b96 | unity_docs | rendering | What is `TerrainTools.TerrainPaintUtility.GetCopyTerrainLayerMaterial` in Unity? Explain its purpose and usage. | TerrainPaintUtility.GetCopyTerrainLayerMaterial
Declaration
public static
Material
GetCopyTerrainLayerMaterial
();
Returns
Material
Built in "Hidden/Terrain/TerrainLayerUtils" material.
Description
Returns the default copy terrain layer material.
This material is used by PaintTexture operations.
Pass ... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_840ecf5baa6e | unity_docs | editor | Show me a Unity code example for 'Use unsupported video files in the Editor'. | ou want to use placeholder versions of your video files that are compatible with your Editor but use a different version for your target platform, you can include both versions in your project and decide which version to use at runtime.
The following example script demonstrates how to use different video URLs for diffe... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_aa1553e6485f | unity_docs | scripting | What is `PlayerSettings.SplashScreen.show` in Unity? Explain its purpose and usage. | PlayerSettings.SplashScreen.show
public static bool
show
;
Description
Set this property to true to make the Splash Screen appear when the application is launched. Set this property to false to disable the Splash Screen. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1ea59e192483 | unity_docs | ui | What is `GUISkin.verticalSlider` in Unity? Explain its purpose and usage. | GUISkin.verticalSlider
public
GUIStyle
verticalSlider
;
Description
Style used by default for the background part of
GUI.VerticalSlider
controls.
The padding property is used to determine the size of the area the thumb can be dragged within.
```csharp
using UnityEngine;public class Example : MonoBehaviour... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_886e8bef573e | unity_docs | scripting | What is `Profiling.HierarchyFrameDataView.GetItemMergedSamplesColumnData` in Unity? Explain its purpose and usage. | HierarchyFrameDataView.GetItemMergedSamplesColumnData
Declaration
public void
GetItemMergedSamplesColumnData
(int
id
,
int
column
,
List<string>
outStrings
);
Parameters
Parameter
Description
id
Hierarchy item identifier.
column
Column identifier.
outStrings
List filled with values of merged samples as... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_a2fc8625a766 | unity_docs | rendering | Show me a Unity code example for 'Example of Particle System Standard Shader custom vertex streams in the Built-In Render Pipeline'. | Here is an example of an animated flip-book
Shader
. It uses the default inputs (
Position
,
Normal
,
Color
,
UV
), but also uses two additional streams for the second UV stream (
UV2
) and the flip-book frame information (
AnimBlend
).
```
Shader "Particles/Anim Alpha Blended" {
Properties {
_TintColor ("Tint Color",... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_448a87b99882 | unity_docs | physics | Give me an overview of the `LightRenderMode` class in Unity. | LightRenderMode
enumeration
Description
How the
Light
is rendered.
Additional resources:
light component
.
Properties
Property
Description
Auto
Automatically choose the render mode.
ForcePixel
Force the Light to be a pixel light.
ForceVertex
Force the Light to be a vertex light. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_1a4451ec6cdb | unity_docs | scripting | Give me an overview of the `SendMessageOptions` class in Unity. | SendMessageOptions
enumeration
Description
Options for how to send a message.
This is used by SendMessage & BroadcastMessage in
GameObject
&
Component
.
Properties
Property
Description
RequireReceiver
A receiver is required for SendMessage.
DontRequireReceiver
No receiver is required for SendMessage. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b302b6a7119f | unity_docs | scripting | What is `UIElements.AngleUnit` in Unity? Explain its purpose and usage. | AngleUnit
enumeration
Description
Unit of measurement used to express the value of an
Angle
.
Properties
Property
Description
Degree
Interprets an angle as degrees.
Gradian
Interprets the measurement of an angle in gradians. One full circle is 400 gradians
Radian
Interprets the measurement of an... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_f312db4824f0 | unity_docs | physics | Explain 'Measure performance with the built-in profiler' in Unity. | Note:
The internal profiler is deprecated and will be retired in a future version of Unity. Use the
Profiler window
instead (menu:
Window
>
Analysis
>
Profiler
) Refer to
Collecting performance data on an iOS device
for more information on how to profile iOS devices.
Unity contains a built-in profiler for iOS to provid... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_e46962cc1e36 | unity_docs | editor | Show me a Unity C# example demonstrating `PlayerSettings.GetPreloadedAssets`. | tPreloadedAssets
Declaration
public static Object[]
GetPreloadedAssets
();
Returns
Object[]
The assets to be preloaded.
Description
Returns the assets that will be loaded at start up in the player and be kept alive until the player terminates.
This example shows how a ScriptableObject can be used to stor... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_cdc0471b8508 | unity_docs | physics | What is `ParticleSystem.TriggerModule` in Unity? Explain its purpose and usage. | TriggerModule
struct in
UnityEngine
/
Implemented in:
UnityEngine.ParticleSystemModule
Description
Script interface for the TriggerModule.
This module is useful for killing particles when they touch a set of collision shapes, or for calling a script command to let you apply custom particle behaviors when the t... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_c428620bd56d | unity_docs | math | What is `Rect.center` in Unity? Explain its purpose and usage. | Rect.center
public
Vector2
center
;
Description
The position of the center of the rectangle.
```csharp
using UnityEngine;public class Example : MonoBehaviour
{
void Start()
{
Rect rect = new Rect(0, 0, 100, 100);
print(rect.center);
rect.center = new Vector2(10, 10);
}
}
``` | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_601f30899919 | unity_docs | ui | In Unity's 'Scene template settings', what is 'New Scene Menu settings' and how does it work? | The
New Scene Menu
setting (1) controls what happens when you create a new scene from the File menu: (
File
>
New Scene
) or using the
Ctrl/Cmd + n
shortcut.
Option Description New Scene Dialog
Opens the New Scene dialog.
Built-in Scene
Creates a new scene without opening the New Scene dialog. The new scene is a copy o... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_1185528357a9 | unity_docs | rendering | In Unity's 'Reflective Normal Mapped Unlit', what is 'Reflective Properties' and how does it work? | Note.
Unity 5 introduced the
Standard Shader
which replaces this shader.
This shader will simulate reflective surfaces such as cars, metal objects etc. It requires an environment Cubemap which will define what exactly is reflected. The main texture’s alpha channel defines the strength of reflection on the object’s surf... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_89d6fa5b5208 | unity_docs | xr | Show me a Unity C# example demonstrating `Caching.ClearAllCachedVersions`. | Caching.ClearAllCachedVersions
Declaration
public static bool
ClearAllCachedVersions
(string
assetBundleName
);
Parameters
Parameter
Description
assetBundleName
The AssetBundle name.
Returns
bool
Returns true when cache clearing succeeded.
Description
Removes all the cached versions of the given Asse... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_man_8ac5facb91f2 | unity_docs | rendering | Explain 'Set the Lighting Mode of a scene' in Unity. | Select the
Lighting Settings Asset
for the
Scene
.
In the Inspector , navigate to
Mixed Lighting
.
Use the drop-down menu to set the
Lighting Mode
.
If your project uses the High-Definition
Render Pipeline
(HDRP), follow the instructions in the
HDRP Shadowmask Lighting Mode
documentation instead.
## Match shadow color... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
gh_1724f442d80c_doc_17 | github | scripting | What does `ChangeBasis` do in this Unity script? Explain its purpose and signature. | Given a transform, returns that transform in another basis.Since it's a Transform, xfInput is in Global (Room) space, Unity axes, decimeters.The new basis is: Scene space, with the Payload's axes and units.
Signature:
```csharp
public static Matrix4x4 ChangeBasis(
Transform xfInput, SceneStatePayload paylo... | You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development. |
local_sr_841cc662c75d | unity_docs | scripting | What is `Experimental.GraphView.GraphElement.elementTypeColor` in Unity? Explain its purpose and usage. | Experimental
: this API is experimental and might be changed or removed in the future.
GraphElement.elementTypeColor
public
Color
elementTypeColor
;
Description
The color used for the MiniMap view. | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_5c1c380ef0a2 | unity_docs | rendering | What is `MaterialEditor.VectorProperty` in Unity? Explain its purpose and usage. | MaterialEditor.VectorProperty
Declaration
public
Vector4
VectorProperty
(
MaterialProperty
prop
,
string
label
);
Declaration
public
Vector4
VectorProperty
(
MaterialProperty
prop
,
GUIContent
label
);
Declaration
public
Vector4
VectorProperty
(
Rect
position
,
MaterialProperty
prop
,
stri... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_90edc89db655 | unity_docs | scripting | Show me a Unity C# example demonstrating `Awaitable`. | ing model.
Awaitable
is usually a preferable alternative to .NET
Task
for asynchronous code in Unity. It's important, however, to know the differences between the two. Most notably, instances of the `Awaitable` class are pooled and therefore not safe to
await
multiple times in the same method.
For more informatio... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_b83bfa30e1b7 | unity_docs | scripting | What is `MPE.ChannelClient.isAutoTick` in Unity? Explain its purpose and usage. | ChannelClient.isAutoTick
public bool
isAutoTick
;
Description
Specifies whether Unity processes (ticks) this ChannelClient's incoming and outgoing messages automatically, or the user processes (ticks) them manually, either in the main thread or a dedicated thread.
This property is read only. For information abo... | You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges. |
local_sr_d6b852e86f07 | unity_docs | scripting | Give me an overview of the `ObjectPreview` class in Unity. | ObjectPreview
class in
UnityEditor
Description
Base Class to derive from when creating Custom Previews.
You specify which type is the preview for by using the CustomPreview attribute derived from
ObjectPreview
.
Below you can see an small example that will display the name of the object being inspected. The prev... | 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.