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_db1e3a653fcf
unity_docs
rendering
What is `Lightmapping.SetLightingSettingsForScenes` in Unity? Explain its purpose and usage.
Lightmapping.SetLightingSettingsForScenes Declaration public static void SetLightingSettingsForScenes (Scene[] scenes , LightingSettings lightingSettings ); Parameters Parameter Description scenes The array of Scene objects. If the Scene.isLoaded property is false on a Scene object, the method does ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_41ab7a605045_doc_0
github
scripting
What does `UpdateClusterScripts` do in this Unity script? Explain its purpose and signature.
この処理でやること- 以下の3箇所から、ワールドで使われうるScriptable Item Extensionを取得 1. 指定したシーンに直接あるやつ 2. シーン上のWorld Item Template Listで参照されてるやつ 3. シーン上のCreate Item Gimmickで参照されてるやつ (※そのうちExtension自身が参照したobjも含める必要がありそうだが、まだ無いので不要)- 見つけたExtensionについて、3,2,1の順で下記を行ってScriptable Itemの内容をリフレッシュする - フィールドの再チェック - コードを生成してScriptable Itemへ書き込む- 1の...
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_38157c04bb7b
unity_docs
math
What is `Rendering.BatchDrawRange.drawCommandsBegin` in Unity? Explain its purpose and usage.
BatchDrawRange.drawCommandsBegin public uint drawCommandsBegin ; Description The index of the first draw command inside the BatchCullingOutput.drawCommands array that this draw range applies to.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_334b11ea1850
unity_docs
scripting
What is `Undo.SetSiblingIndex` in Unity? Explain its purpose and usage.
Undo.SetSiblingIndex Declaration public static void SetSiblingIndex ( Transform transform , int siblingIndex , string name ); Parameters Parameter Description transform Transform that will have its sibling index changed. siblingIndex New sibling index. name Undo operation name. Description Sets the ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_0e7392bd0f38
unity_docs
performance
What is `Profiling.RawFrameDataView.GetSampleTimeNs` in Unity? Explain its purpose and usage.
RawFrameDataView.GetSampleTimeNs Declaration public ulong GetSampleTimeNs (int sampleIndex ); Parameters Parameter Description sampleIndex Index of the Profiler sample. Returns ulong Returns sample duration in nanoseconds. Description Gets the duration of sample. The amount of time is expressed in na...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a372b02dd5f1
unity_docs
rendering
What is `ParticleSystem.NoiseModule` in Unity? Explain its purpose and usage.
NoiseModule struct in UnityEngine / Implemented in: UnityEngine.ParticleSystemModule Description Script interface for the NoiseModule. The Noise Module allows you to apply turbulence to the movement of your particles. Use the low quality settings to create computationally efficient Noise, or simulate smoother,...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_be4a577b68cc
github
scripting
Write a Unity Editor script for Enable Plugin Step.Magic Leap SDK
```csharp #if USE_MLSDK #region using System; using MagicLeap.SetupTool.Editor.Interfaces; using MagicLeap.SetupTool.Editor.Utilities; using UnityEditor; using UnityEngine; #endregion namespace MagicLeap.SetupTool.Editor.Setup { /// <summary> /// Enables the Magic Leap 2 XR plugin /// </summary> pub...
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.
gh_e88aa342a4c2_doc_18
github
scripting
What does `DeletingDirectTextMessage` do in this Unity script? Explain its purpose and signature.
Delete the message by message idThe message id Signature: ```csharp public Task DeletingDirectTextMessage(string _messageId) ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2c9186936bac
unity_docs
scripting
Show me a Unity C# example demonstrating `Vector3.operator_add`.
Vector3.operator + public static Vector3 operator + ( Vector3 a , Vector3 b ); Description Adds two vectors. Adds corresponding components together. ```csharp // prints (5.0,7.0,9.0)using UnityEngine; using System.Collections;public class ExampleClass : MonoBehaviour { void Start() { print(new Vector...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_847565eda8aa
unity_docs
scripting
Show me a Unity C# example demonstrating `Terrain.detailObjectDensity`.
Terrain.detailObjectDensity public float detailObjectDensity ; Description Density of detail objects. This number goes from 0.0 to 1.0, with 1.0 being the original density, and lower numbers resulting in less detail objects being rendered. Additional resources: detailObjectDistance . ```csharp using UnityEngi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d6d80b0e5f42
unity_docs
math
What is `UIElements.FloatField.ApplyInputDeviceDelta` in Unity? Explain its purpose and usage.
FloatField.ApplyInputDeviceDelta Declaration public void ApplyInputDeviceDelta ( Vector3 delta , UIElements.DeltaSpeed speed , float startValue ); Parameters Parameter Description delta A vector used to compute the value change. speed A multiplier for the value change. startValue The start value. D...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_5af91fecd234
unity_docs
animation
Explain 'Animation Layers' in Unity.
Unity uses Animation Layers for managing complex state machines for different body parts. An example of this is if you have a lower-body layer for walking-jumping, and an upper-body layer for throwing objects / shooting. You can manage animation layers from the Layers tab in the top-left corner of the Animator Controll...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ddf8662229f1
unity_docs
scripting
Show me a Unity C# example demonstrating `Search.SearchUtils.MatchSearchGroups`.
at search tries to match. content String content that is tokenized and used to match the search query. ignoreCase Perform matching while ignoring letter casing. Returns bool If a match has occurred. Description Helper function to match a string against the SearchContext. This will try to match the search qu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_10f56e44384f
unity_docs
scripting
What is `SceneVisibilityManager.pickingChanged` in Unity? Explain its purpose and usage.
SceneVisibilityManager.pickingChanged Description The event raised whenever the picking state of a GameObject changes. For performance reasons, this event is not raised for every picking operation. For example, if you select multiple GameObjects and disable picking on them all at once, the event will be raised only...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_21a875619e25
unity_docs
animation
Explain 'Animation Blend Trees' in Unity.
A common task in game animation is to blend between two or more similar motions. Perhaps the best known example is the blending of walking and running animations according to the character’s speed. Another example is a character leaning to the left or right as it turns during a run. It is important to distinguish betwe...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_623b31ce608e
unity_docs
physics
In Unity's 'Garbage collection modes', what is 'Non-incremental garbage collection mode' and how does it work?
Incremental garbage collection might be problematic for your application, because when the garbage collector divides its work in this mode, it also divides the marking phase. The marking phase is the phase in which the garbage collector scans all managed objects to determine which objects are still in use, and which ob...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7b0e1357308c
unity_docs
math
What is `Graphics.RenderPrimitivesIndexed` in Unity? Explain its purpose and usage.
Graphics.RenderPrimitivesIndexed Declaration public static void RenderPrimitivesIndexed (ref RenderParams rparams , MeshTopology topology , GraphicsBuffer indexBuffer , int indexCount , int startIndex = 0, int instanceCount = 1); Parameters Parameter Description rparams The parameters Unity uses...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c497fdc51756
unity_docs
physics
What is `ArticulationBody.GetJointGravityForces` in Unity? Explain its purpose and usage.
ArticulationBody.GetJointGravityForces Declaration public int GetJointGravityForces (List<float> forces ); Parameters Parameter Description forces Supplied list of floats to store the counteracting gravity force data. Returns int Total degrees of freedom (DOF) for the entire hierarchy of articulation bo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_45852d836043
unity_docs
scripting
What is `UIElements.Experimental.PointerDownLinkTagEvent.GetPooled` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. PointerDownLinkTagEvent.GetPooled Declaration public static UIElements.Experimental.PointerDownLinkTagEvent GetPooled ( UIElements.IPointerEvent evt , string linkID , string linkText ); Returns PointerDownLinkTagEvent ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_87655a44161b
unity_docs
scripting
Give me an overview of the `TerrainWizard` class in Unity.
TerrainWizard class in UnityEditor / Inherits from: ScriptableWizard Description Provides methods for displaying the terrain wizard. Base class that manages the wizards used for displaying and altering terrain data. Additional resources: DetailMeshWizard Public Methods Method Description ResetDefaults In...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_77a0984b7cd7
unity_docs
rendering
What is `Rendering.BatchDrawCommandIndirect.lightmapIndex` in Unity? Explain its purpose and usage.
BatchDrawCommandIndirect.lightmapIndex public ushort lightmapIndex ; Description The index of the baked lightmap used in this draw command. If lightmap texture arrays are enabled, this value is always -1 (0xFFFF). Additional resources: Renderer.lightmapIndex .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_79192615c738
unity_docs
rendering
What is `CacheServer` in Unity? Explain its purpose and usage.
CacheServer class in UnityEditor Description This class provides an interface for performing operations on a cache server. Static Methods Method Description UploadArtifacts Upload the specified GUIDs to the Accelerator. If keys is empty, all assets are uploaded. UploadShaderCache Uploads the contents of the S...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_fef20e3d557f
unity_docs
scripting
Show me a Unity code example for 'Create a property visitor with the PropertyVisitor class'.
create a property visitor. For an equivalent example that uses the IPropertyBagVisitor and IPropertyVisitor interfaces, refer to Use low-level APIs to create a property visitor . ## Create data and utility classes Create a simple data class and a utility class that uses the visitor to visit and print its properties: ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e8b3c179b644
unity_docs
editor
What are the parameters of `iOS.Xcode.PBXProject.FindFileGuidByProjectPath` in Unity?
Returns string The GUID of the file if the search succeeded. Returns null if not successful. Description Finds a file with the given project path in the project. ```csharp using UnityEngine; using UnityEditor; using System.IO; using UnityEditor.Callbacks; using UnityEditor.iOS.Xcode;public class Sample_FindFileGuidByPr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cdaf28405642
unity_docs
scripting
What is `ModelImporterTangents.CalculateMikk` in Unity? Explain its purpose and usage.
ModelImporterTangents.CalculateMikk Description Calculate tangents using MikkTSpace (default). Vertex tangents are calculated with Morten Mikkelsen's tangent space algorithm ("MikkTSpace"). This algorithm is used by many 3D modeling packages, normal mapping tools and graphics engines. Additional resources: ModelIm...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f3783020e6c4
unity_docs
scripting
What is `Device.Application.companyName` in Unity? Explain its purpose and usage.
Application.companyName public static string companyName ; Description This has the same functionality as Application.companyName . At the moment, the Device Simulator doesn't support simulation of this property.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_e8c9237d4696
unity_docs
rendering
Show me a Unity code example for 'Set a shader to require GPU features'.
equire to specify individual GPU features that a shader requires, for example #pragma require integers mrt8 . #pragma target to specify a shader model that a shader requires, for example #pragma target 4.0 . A shader model represents a specific group of GPU features. For the full list of values, refer to HLSL pragma re...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c39b19956e6d
unity_docs
math
What is `HashUtilities.QuantisedMatrixHash` in Unity? Explain its purpose and usage.
HashUtilities.QuantisedMatrixHash Declaration public static void QuantisedMatrixHash (ref Matrix4x4 value , ref Hash128 hash ); Parameters Parameter Description value The Matrix4x4 to hash. hash The computed hash. Description Compute a Hash128 of a Matrix4x4. The Matrix4x4 is quantized before the h...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e7998f21749d
unity_docs
rendering
Show me a Unity C# example demonstrating `Unity.Profiling.Memory.CaptureFlags`.
ch as those used by native collections, and the graphics sizes of native objects is not important, the CaptureFlags.NativeAllocations can be left off as well. Note: CaptureFlags.NativeAllocations and CaptureFlags.NativeAllocationSites won't add extra data to the snapshot unless the build supports the collection ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c3f7a9931325
unity_docs
scripting
What is `Event.control` in Unity? Explain its purpose and usage.
Event.control public bool control ; Description Is Control key held down? (Read Only) Returns true if any Control key is held down. ```csharp using UnityEngine;public class Example : MonoBehaviour { void OnGUI() { Event e = Event.current; if (e.control) { Debug.Log("Control was pressed."); } } } ```
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_ad47c6b37559
unity_docs
editor
Explain 'Create a Publisher Portal product draft' in Unity.
Before you can validate and publish your package, create a product draft in the Publisher Portal. To access the Publisher Portal for UPM publishing: Enrol as a UPM publisher . Open the Asset Store , and select your user icon. Under Switch Organization , select your publisher organization. Go to the UPM publishing Publi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_6fcdf1ea63f9
unity_docs
editor
What is `EditorGUILayout.LayerField` in Unity? Explain its purpose and usage.
EditorGUILayout.LayerField Declaration public static int LayerField (int layer , params GUILayoutOption[] options ); Declaration public static int LayerField (int layer , GUIStyle style , params GUILayoutOption[] options ); Declaration public static int LayerField (string label , int layer , params ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4806a0e19cf6
unity_docs
scripting
Give me an overview of the `Animator` class in Unity.
Animator class in UnityEngine / Inherits from: Behaviour / Implemented in: UnityEngine.AnimationModule Description Interface to control the Mecanim animation system. Properties Property Description angularVelocity Gets the avatar angular velocity for the last evaluated frame. animatePhysics When enabled,...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_2109a98caab6
unity_docs
ui
In Unity's 'Migrate from Immediate Mode GUI (IMGUI) to UI Toolkit', what is 'Constant versus state changes' and how does it work?
IMGUI is based on the OnGUI() function that runs at least once every frame. You define the look and the behaviors of the UI for every possible frame. The body of OnGUI() might contain many conditions and different states. UI Toolkit operates in an event-driven system. You define the look of the UI in its default state ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a7f8744bd094
unity_docs
animation
What is `Animations.AnimatorControllerLayer.blendingMode` in Unity? Explain its purpose and usage.
AnimatorControllerLayer.blendingMode public Animations.AnimatorLayerBlendingMode blendingMode ; Description The blending mode used by the layer. It is not taken into account for the first layer.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c3280de7c7dc
unity_docs
math
Show me a Unity C# example demonstrating `Mesh.colors`.
Mesh.colors public Color[] colors ; Description Vertex colors of the Mesh. If no vertex colors are available, an empty array will be returned. ```csharp // Sets the vertex color to be red at the y=0 and green at y=1. // (Note that most built-in Shaders don't display vertex colors. Use one that does, such as a...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_face711eb0a2
unity_docs
scripting
What is `Search.SearchItem.GetLabel` in Unity? Explain its purpose and usage.
SearchItem.GetLabel Declaration public string GetLabel ( Search.SearchContext context , bool stripHTML ); Parameters Parameter Description context Any search context for the item search provider. stripHTML True if any HTML tags should be dropped. Returns string The search item label. Description ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_8c21f425961f_doc_6
github
scripting
What does `this member` do in this Unity script? Explain its purpose and signature.
Fired when the state is set to active. Float argument is thetime at which the event occurred. Signature: ```csharp public StatefulTimerEvent OnEntered ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_3308a4ab9a2b
unity_docs
scripting
What is `PointerType.Pen` in Unity? Explain its purpose and usage.
PointerType.Pen Description The pointer type for pen events. Before you process an event as a pen event, you should check the PointerType of a mouse event (e.g. EventType.MouseDown ). When a user uses a pen, some mouse events are often mixed with pen events in the event stream, and you can't distinguish them ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a7db6f4a8e99
unity_docs
editor
What is `EditorGUI.EnumFlagsField` in Unity? Explain its purpose and usage.
EditorGUI.EnumFlagsField Declaration public static Enum EnumFlagsField ( Rect position , Enum enumValue ); Declaration public static Enum EnumFlagsField ( Rect position , Enum enumValue , GUIStyle style ); Declaration public static Enum EnumFlagsField ( Rect position , string label , Enum enumVa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_76b9ebb16b9a
unity_docs
scripting
What is `ObjectChangeEventStream.GetDestroyGameObjectHierarchyEvent` in Unity? Explain its purpose and usage.
ObjectChangeEventStream.GetDestroyGameObjectHierarchyEvent Declaration public void GetDestroyGameObjectHierarchyEvent (int eventIdx , out DestroyGameObjectHierarchyEventArgs data ); Parameters Parameter Description eventIdx The index of the event to get the data for. data The data associated with the ev...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_73e5e6ec5359
unity_docs
networking
What is `Unity.Jobs.JobHandle.Complete` in Unity? Explain its purpose and usage.
JobHandle.Complete Declaration public void Complete (); Description Ensures that a job has completed. The job system automatically prioritizes the job and any of its dependencies to run first in the queue, then attempts to execute the job on the thread which calls the Complete method. Note: You can't use this...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_65611494224d
unity_docs
scripting
Give me an overview of the `AnimationModeDriver` class in Unity.
AnimationModeDriver class in UnityEditor / Inherits from: ScriptableObject Description AnimationMode uses AnimationModeDriver to identify the animation driver. The Animation window, Timeline window, and custom previewers use the AnimationModeDriver to lock the AnimationMode until released. Additional re...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c991a86eb3ea
unity_docs
rendering
In Unity's 'Create a lens flare', what is 'Create a lens flare with the Lens Flare component' and how does it work?
Create a new GameObject (menu bar: GameObject > Create Empty ). In the Inspector, click Add Component > Effects > Lens Flare . Assign a Flare Asset to the Flare property. If you want a Camera to see lens flares, select the camera then select Add Component > Flare Layer . Note: The Flare Layer component has no propertie...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_51fb91eabfe1
unity_docs
editor
What are the parameters of `AssetSettingsProvider.CreateProviderFromObject` in Unity?
Returns AssetSettingsProvider Returns an AssetSettingsProvider that will create an Editor for this particular asset. Description Create an AssetSettingsProvider from a settings object. ```csharp using UnityEngine; using UnityEditor;class MyCustomSettings : ScriptableObject { public const string k_MyCustomSettingsPa...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_1d00ff6e9e42
unity_docs
animation
In Unity's 'How Root Motion works', what is 'Body Transform' and how does it work?
The Body Transform is the mass center of the character. It is used in Mecanim’s retargeting engine and provides the most stable displacement model. The Body Orientation is an average of the lower and upper body orientation relative to the Avatar T-Pose . The Body Transform and Orientation are stored in the Animation Cl...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ab4be1304ebf
unity_docs
scripting
What is `Rigidbody2D.linearDamping` in Unity? Explain its purpose and usage.
Rigidbody2D.linearDamping public float linearDamping ; Description The linear damping of the Rigidbody2D linear velocity. Damping can be used to reduce the magnitude of the Rigidbody2D.linearVelocity (linear speed) of a Rigidbody2D over time. Zero indicates that no damping should be used whereas higher valu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_080adc599b8c
unity_docs
rendering
What is `Experimental.Rendering.GraphicsStateCollection.GetVariants` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsStateCollection.GetVariants Declaration public void GetVariants (List<ShaderVariant> results ); Parameters Parameter Description results List of variants to populate. Description Populate given list with shader ...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f6207cc73134
unity_docs
rendering
In Unity's 'Branch based on Unity version', what is 'Unity 6' and how does it work?
Use the format 6MMMPPPP , where: 6 is Unity 6. MMM is the minor version with leading zeroes, for example 002 for Unity 6.2. PPPP is the patch version with leading zeroes, for example 1234 for Unity 6.2.1234. For example, for Unity 6000.2.3, use 60020003 .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ea8fa0c97c4a
unity_docs
editor
What is `Rendering.EditorGraphicsSettings.TryGetRenderPipelineSettingsFromInterface` in Unity? Explain its purpose and usage.
EditorGraphicsSettings.TryGetRenderPipelineSettingsFromInterface Declaration public static bool TryGetRenderPipelineSettingsFromInterface (out TSettingsInterfaceType[] settings ); Parameters Parameter Description settings The array of the settings objects of type TSettingsInterfaceType if found, or null ....
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a7f353a6ce6b
unity_docs
scripting
What is `Experimental.Rendering.GraphicsFormat.RGBA_ASTC10X10_UFloat` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormat.RGBA_ASTC10X10_UFloat Description A four-component, ASTC compressed format where each 128-bit compressed texel block encodes a 10×10 rectangle of float RGBA texel data.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_195e354ca8b6
unity_docs
rendering
Give me an overview of the `CacheServer` class in Unity.
CacheServer class in UnityEditor Description This class provides an interface for performing operations on a cache server. Static Methods Method Description UploadArtifacts Upload the specified GUIDs to the Accelerator. If keys is empty, all assets are uploaded. UploadShaderCache Uploads the contents of the S...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ce1448d4f539
unity_docs
scripting
What is `Profiling.HierarchyFrameDataView.GetItemMergedSamplesMetadataAsFloat` in Unity? Explain its purpose and usage.
HierarchyFrameDataView.GetItemMergedSamplesMetadataAsFloat Declaration public float GetItemMergedSamplesMetadataAsFloat (int id , int sampleIndex , int metadataIndex ); Parameters Parameter Description id Hierarchy item identifier. sampleIndex Merged sample index. metadataIndex Metadata index. Returns...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f666eee32b99
unity_docs
rendering
What is `Experimental.Rendering.GraphicsFormatUtility.GetSwizzleA` in Unity? Explain its purpose and usage.
Experimental : this API is experimental and might be changed or removed in the future. GraphicsFormatUtility.GetSwizzleA Declaration public static Rendering.FormatSwizzle GetSwizzleA ( Experimental.Rendering.GraphicsFormat format ); Declaration public static Rendering.FormatSwizzle GetSwizzleA ( TextureFo...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_7de0b7b5a8d0
unity_docs
scripting
In Unity's 'How Unity builds iOS applications', what is 'Incremental build pipeline' and how does it work?
Unity uses the incremental build pipeline when it generates the Xcode project for iOS. This means that Unity incrementally builds and generates files such as Information Property List (plist) files and Entitlement files. If you implement callbacks that modify or move any iOS file or asset that the incremental build pip...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_c0d19072ce43
unity_docs
rendering
Explain 'Reflective Bumped Specular' in Unity.
Note. Unity 5 introduced the Standard Shader which replaces this shader . One consideration for this shader is that the Base texture’s alpha channel will double as both the Reflection Map and the Specular Map. ## Reflective Properties Note. Unity 5 introduced the Standard Shader which replaces this shader. This shade...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a234d6e1a50b
unity_docs
scripting
What is `Menu.GetEnabled` in Unity? Explain its purpose and usage.
Menu.GetEnabled Declaration public static bool GetEnabled (string menuPath ); Parameters Parameter Description menuPath A slash-delimited path to the item's position in the menu. For example, "Scene/Place on Surface". Returns bool True if the menu item is enabled. False otherwise. Description Gets th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_4cf0e235dbd5
unity_docs
math
What is `UIElements.UxmlValueBounds.Equals` in Unity? Explain its purpose and usage.
UxmlValueBounds.Equals Declaration public bool Equals ( UIElements.UxmlTypeRestriction other ); Parameters Parameter Description other The object to compare with. Returns bool True if the otheer object is equal to this one. Description Indicates whether the current UxmlValueBounds object is equal...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_f8f5cc988676
unity_docs
performance
Show me a Unity C# example demonstrating `Unity.Profiling.LowLevel.Unsafe.ProfilerUnsafeUtility.EndSample`.
a piece of code marked with a custom name defined by this instance of ProfilerMarker . Code marked with BeginSample and EndSample shows up in the Profiler hierarchy. Always use BeginSample or BeginSampleWithMetadata to start a section of the instrumented code. Note: EndSample is thread safe and can be used...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_3ef953d01953
unity_docs
scripting
What is `Presets.PresetType.IsValidDefault` in Unity? Explain its purpose and usage.
PresetType.IsValidDefault Declaration public bool IsValidDefault (); Returns bool Returns true if the PresetType is a valid default type. Returns false otherwise. Description Checks whether a PresetType can be used within the DefaultPreset system. Supported default types are Component and AssetImpor...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_dda49d941664
unity_docs
rendering
What is `LightTransport.PostProcessing.RadeonRaysProbePostProcessor.AddSphericalHarmonicsL2` in Unity? Explain its purpose and usage.
RadeonRaysProbePostProcessor.AddSphericalHarmonicsL2 Declaration public bool AddSphericalHarmonicsL2 ( LightTransport.IDeviceContext context , BufferSlice<SphericalHarmonicsL2> a , BufferSlice<SphericalHarmonicsL2> b , BufferSlice<SphericalHarmonicsL2> sum , int probeCount ); Parameters Parameter Descript...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_71ecf63df0d1
unity_docs
audio
What is `AudioSource.velocityUpdateMode` in Unity? Explain its purpose and usage.
AudioSource.velocityUpdateMode public AudioVelocityUpdateMode velocityUpdateMode ; Description Whether the Audio Source should be updated in the fixed or dynamic update. Make sure this is set to update in the same update loop as the Audio Source is moved in if you are experiencing problems with Doppler effec...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_6b6ee907f32c
unity_docs
ui
In Unity's 'Drag-and-drop events', what is 'Make visual elements draggable' and how does it work?
To make a visual element draggable, you need to register callbacks on the following three event types: PointerDownEvent PointerUpEvent PointerMoveEvent Use the following steps for a drag operation: Set its state to “being dragged”. Add the appropriate data to DragAndDrop . Call DragAndDrop.StartDrag() . Provide a visua...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ad5918fcac6d
unity_docs
rendering
What are the parameters of `Mesh.GetIndices` in Unity?
Returns int[] Array with face indices. Description Fetches the index list for the specified sub-mesh. Each integer in the returned list is a vertex index, which is used as an offset into the Mesh's vertex arrays. See vertices and GetVertices . The layout of the indices depends on the MeshTopology of the sub-mesh. For e...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ba886c6c02f2
unity_docs
editor
What is `TerrainTools.IOnSceneGUI.Repaint` in Unity? Explain its purpose and usage.
IOnSceneGUI.Repaint Declaration public void Repaint ( TerrainTools.RepaintFlags flags ); Parameters Parameter Description flags Specifies what to repaint. Description Instructs the Editor to repaint the tool UI, the Scene view, or both.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_cde2906d71e5
unity_docs
math
What is `AndroidJavaProxy.Invoke` in Unity? Explain its purpose and usage.
AndroidJavaProxy.Invoke Declaration public AndroidJavaObject Invoke (string methodName , object[] args ); Declaration public AndroidJavaObject Invoke (string methodName , AndroidJavaObject[] javaArgs ); Parameters Parameter Description methodName Name of the invoked java method. args Arguments p...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_542dae2bcee8
unity_docs
scripting
What is `VideoEncodingProfile.H264Main` in Unity? Explain its purpose and usage.
VideoEncodingProfile.H264Main Description Encode video using the main profile. This profile has better compression and efficiency than the baseline encoding profile. Use this profile for standard-definition and higher-quality video under medium processing constraints.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b8d9770e3d48
unity_docs
editor
Show me a Unity C# example demonstrating `iOS.Xcode.PBXProject.GetCompileFlagsForFile`.
tion targetGuid The GUID of the target, such as the one returned by TargetGuidByName . fileGuid The GUID of the file. Returns List<string> The compile flags for the specified file. Description Returns compile flags set for the specific file on a given target. Null is returned if the file has no configured...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_152281030e1d_doc_1
github
scripting
What does `OnInstanceRemoved` do in this Unity script? Explain its purpose and signature.
Called when this object is no longer the Instance object. Signature: ```csharp protected virtual void OnInstanceRemoved() ```
You are an expert Unity game developer. Provide clear, accurate, and practical answers about Unity development.
local_sr_f104a7d03d6d
unity_docs
scripting
What is `UIElements.InspectorElement.uIEInspectorVariantUssClassName` in Unity? Explain its purpose and usage.
InspectorElement.uIEInspectorVariantUssClassName public static string uIEInspectorVariantUssClassName ; Description USS class name of elements of this type, when they are displayed in UIElements inspector mode.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7060a4b85aed
unity_docs
rendering
What are the parameters of `Rendering.CommandBuffer.SetRenderTarget` in Unity?
Description Add a "set active render target" command. Render texture to use can be indicated in several ways: a RenderTexture object, a temporary render texture created with GetTemporaryRT , or one of built-in temporary textures ( BuiltinRenderTextureType ). All that is expressed by a RenderTargetIdentifier struct, whi...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a56b8e064510
unity_docs
rendering
What is `TextureImporterSettings.swizzleR` in Unity? Explain its purpose and usage.
TextureImporterSettings.swizzleR public TextureImporterSwizzle swizzleR ; Description Specifies the source for the texture's red color channel data. By default, values for the imported texture's red channel come from the source image's red channel. To reorder or invert color channels at import time, change th...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_d9da8ed0d058
unity_docs
physics
What is `ContactPoint2D.tangentImpulse` in Unity? Explain its purpose and usage.
ContactPoint2D.tangentImpulse public float tangentImpulse ; Description Gets the impulse applied at the contact point which is perpendicular to the ContactPoint2D.normal . The impulse is applied to both the rigidbody and the otherRigidbody at the point perpendicular to the normal .
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_50b0ffdb7b35
unity_docs
rendering
What is `ParticleSystemRenderer.sortMode` in Unity? Explain its purpose and usage.
ParticleSystemRenderer.sortMode public ParticleSystemSortMode sortMode ; Description Specifies how to sort particles within a system. ```csharp using UnityEngine; using UnityEditor; using System.Collections;[RequireComponent(typeof(ParticleSystem))] public class ExampleClass : MonoBehaviour { private Particle...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_b8fef4916cf7
unity_docs
math
What is `Rendering.BatchCullingOutputDrawCommands.drawCommands` in Unity? Explain its purpose and usage.
BatchCullingOutputDrawCommands.drawCommands public BatchDrawCommand* drawCommands ; Description The array that contains draw commands to render as the result of the OnPerformCulling call. This can contain as many commands as necessary, and each command can render multiple instances. The culling callback must al...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_294fdfe8dcef
unity_docs
math
What is `Vector2Int.CeilToInt` in Unity? Explain its purpose and usage.
Vector2Int.CeilToInt Declaration public static Vector2Int CeilToInt ( Vector2 v ); Description Converts a Vector2 to a Vector2Int by doing a Ceiling to each value. As there is a conversion of float to integer, there is a loss of precision.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_a2b52418133f
unity_docs
physics
Explain 'Configure a Web Canvas size' in Unity.
In a Web application, the canvas element is where the browser draws the graphics when rendering a game. This section describes how to configure the visible size of the Web canvas element, and the resolution that the game renders to. To configure your Web Canvas size, you must consider the following types of canvas size...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a7ea224b1576
unity_docs
rendering
What is `TextureImporterSettings.ApplyTextureType` in Unity? Explain its purpose and usage.
TextureImporterSettings.ApplyTextureType Obsolete ApplyTextureType(TextureImporterType, bool) is deprecated, use ApplyTextureType(TextureImporterType). Declaration public void ApplyTextureType ( TextureImporterType type , bool applyAll ); Parameters Parameter Description type Texture type. See TextureI...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_329b10590106
unity_docs
math
Show me a Unity C# example demonstrating `Matrix4x4.identity`.
Matrix4x4.identity public static Matrix4x4 identity ; Description Returns the identity matrix (Read Only). This is a matrix that effectively does nothing when applied. It has 1s in the main diagonal and 0s in all other elements: ```csharp using UnityEngine;public class ExampleScript : MonoBehaviour { void S...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_598a4bd594d0
unity_docs
scripting
What is `UIElements.EnumFlagsField.Init` in Unity? Explain its purpose and usage.
EnumFlagsField.Init Declaration public void Init (Enum defaultValue , bool includeObsoleteValues ); Parameters Parameter Description defaultValue The typed enum value. includeObsoleteValues Set to true to display obsolete values as choices. Description Initializes the EnumFlagsField with a default valu...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_8a1c18b3a74b
unity_docs
editor
What is `EditorTools.EditorTool.toolbarIcon` in Unity? Explain its purpose and usage.
EditorTool.toolbarIcon public GUIContent toolbarIcon ; Description The icon and tooltip for this custom editor tool. If this function is not implemented, the toolbar displays the Inspector icon for the target type. If no target type is defined, the toolbar displays the Tool Mode icon. This property is accesse...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_a2ff3d40a296
unity_docs
editor
Show me a Unity C# example demonstrating `AssetModificationProcessor.OnWillMoveAsset`.
you to move the Asset yourself but, if you do, please remember to return the correct enum. Alternatively, you can perform some processing and let Unity move the file. The moving of the asset can be prevented by returning AssetMoveResult.FailedMove You should not call any Unity AssetDatabase API from within this callb...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_440243c74c85
unity_docs
ui
Show me a Unity C# example demonstrating `ParticleSystem.MainModule.startDelay`.
ParticleSystem.MainModule.startDelay public ParticleSystem.MinMaxCurve startDelay ; Description Start delay in seconds. Use this to delay when the playback starts on the system. Additional resources: MinMaxCurve . ```csharp using UnityEngine; using System.Collections;[RequireComponent(typeof(ParticleSystem...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_man_f1cdc6ccea3a
unity_docs
rendering
In Unity's 'Transparent Bumped Specular', what is 'Normal Mapped Properties' and how does it work?
Like a Diffuse shader, this computes a simple (Lambertian) lighting model. The lighting on the surface decreases as the angle between it and the light decreases. The lighting depends only on the angle, and does not change as the camera moves or rotates around. Normal mapping simulates small surface details using a text...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_2bcb1805c44c
unity_docs
networking
What is `XR.XRDisplaySubsystem.XRMirrorViewBlitDesc` in Unity? Explain its purpose and usage.
XRMirrorViewBlitDesc struct in UnityEngine.XR / Implemented in: UnityEngine.XRModule Description All information in this struct describes the desired mirror view blit operation. And XRMirrorViewBlitDesc can contain more than one XRBlitParams (describes exactly one blit operation). The render pipeline can quer...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_12d8a7795958
unity_docs
physics
What is `Cloth.sphereColliders` in Unity? Explain its purpose and usage.
Cloth.sphereColliders public ClothSphereColliderPair[] sphereColliders ; Description An array of ClothSphereColliderPairs which this Cloth instance should collide with. Any ClothSphereColliderPair specified in Cloth.capsuleColliders will collide with the cloth vertices. A maximum of 32 spheres are supported.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5ceb7ca83979
unity_docs
math
What is `TerrainTools.DetailBrushRepresentation.GetStrength` in Unity? Explain its purpose and usage.
DetailBrushRepresentation.GetStrength Declaration public float GetStrength (int ix , int iy ); Parameters Parameter Description ix The x position of the brush offset. iy The y position of the brush offset. Returns float Returns the strength at the passed in position. Description Gets the stren...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_83c62f0ab1fd
unity_docs
scripting
What is `QualitySettings.vSyncCount` in Unity? Explain its purpose and usage.
QualitySettings.vSyncCount public static int vSyncCount ; Description Represents the number of vertical syncs that should pass between each frame. An integer in the range of 0-4. By default, it is set to 1. Desktop and Web vSyncCount specifies the number of screen refreshes your game allows to pass between fr...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_5fa8f810c4af
unity_docs
scripting
What is `EditorUserSettings` in Unity? Explain its purpose and usage.
EditorUserSettings class in UnityEditor / Inherits from: Object Description Class for accessing and modifying Editor user settings related to version control and asset import. Use the properties of this class to define local Editor user settings, which you can exclude from version control. Static Properties P...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_e13f207a24b7
unity_docs
scripting
What are the parameters of `Hash128.ctor` in Unity?
Description Directly initialize a Hash128 with a 128-bit value. To compute hash value of some data, use Hash128.Compute function. ```csharp using UnityEngine;public class ExampleScript : MonoBehaviour { void Start() { var hash = new Hash128(0x01020304, 0xaabbccdd, 0x12345678, 0xbaadc0de); // pri...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c8fb43299604
unity_docs
scripting
Show me a Unity C# example demonstrating `SystemLanguage.Vietnamese`.
SystemLanguage.Vietnamese Description Vietnamese. ```csharp using UnityEngine;public class Example : MonoBehaviour { void Start() { //This checks if your computer's operating system is in the Vietnamese language if (Application.systemLanguage == SystemLanguage.Vietnamese) { //Outputs into console that the sys...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_ac7602ec09fa
unity_docs
scripting
What is `Animator.animatePhysics` in Unity? Explain its purpose and usage.
Animator.animatePhysics public bool animatePhysics ; Description When enabled, the physics system uses animated transforms from GameObjects with kinematic Rigidbody components to influence other GameObjects. For example, enable animatePhysics to apply velocity and friction from an animated platform to GameObje...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_35f8fb3212ea_doc_9
github
scripting
What does `OnBeginDrag` do in this Unity script? Explain its purpose and signature.
Forward drag start event to parent ScrollRect if present. Signature: ```csharp public void OnBeginDrag(PointerEventData eventData) ```
You are a senior Unity engineer. Answer questions about Unity scripting, XR/VR development, and game systems with working code examples.
local_sr_f7adbc000137
unity_docs
networking
What is `Networking.DownloadHandlerScript.ctor` in Unity? Explain its purpose and usage.
DownloadHandlerScript Constructor Declaration public DownloadHandlerScript (); Description Create a DownloadHandlerScript which allocates new buffers when passing data to callbacks. This default constructor places this DownloadHanderScript into non-preallocated mode . This affects the operation of the ReceiveD...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_7ae15f369804
unity_docs
editor
Show me a Unity C# example demonstrating `SettingsProviderAttribute`.
SettingsProviderAttribute class in UnityEditor Description Attribute used to register a new SettingsProvider . Use this attribute to decorate a function that returns an instance of a SettingsProvider . If the function returns null, no SettingsProvider appears in the Settings window. ```csharp using System.IO; u...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_682ffea8ad47
unity_docs
editor
Show me a Unity C# example demonstrating `Search.SearchSelection`.
SearchSelection class in UnityEditor.Search Description Provides methods to give readonly access to the current list of selected items in Search. ```csharp using UnityEngine; using UnityEditor; using UnityEditor.Search; static class Example_ISearchView_AddSelection { static ISearchView s_View; [MenuItem("Exam...
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_59a67ecb01c3
unity_docs
scripting
What is `Rendering.BatchDrawCommandIndirect.visibleOffset` in Unity? Explain its purpose and usage.
BatchDrawCommandIndirect.visibleOffset public uint visibleOffset ; Description The index of the element in BatchCullingOutputDrawCommands.visibleInstances that matches the first instance in this draw command.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
local_sr_c1b560f838be
unity_docs
scripting
What is `Rendering.PassIdentifier.operator_ne` in Unity? Explain its purpose and usage.
PassIdentifier.operator != public static bool operator != ( Rendering.PassIdentifier lhs , Rendering.PassIdentifier rhs ); Description Returns true if the pass identifiers are not the same. Otherwise, returns false.
You are a Unity game development assistant. Help developers understand Unity APIs, best practices, and solve implementation challenges.
gh_c373de714fb8
github
scripting
Write a Unity C# UI script for Base Field Search Settings
```csharp using System.IO; using System.Linq; using UnityEditor; using UnityEngine; using System.Diagnostics; using System; using FieldSearch.Core.Inspectors.Base; using FieldSearch.Attributes; using Debug = UnityEngine.Debug; namespace FieldSearch.Settings.Base { /// <summary> /// Base settings singleton cla...
You are a knowledgeable Unity developer. Explain Unity concepts clearly and provide practical, tested code examples.
gh_775bf781f268_doc_1
github
scripting
What does `OnInspectorGUI` do in this Unity script? Explain its purpose and signature.
Called by the Unity editor to render custom inspector UI for this component. Signature: ```csharp public override void OnInspectorGUI() ```
You are an experienced Unity developer specializing in C# scripting, XR/VR development, and performance optimization.