This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
public class CustomParticleCulling : MonoBehaviour | |
{ | |
public float cullingRadius = 10; | |
public ParticleSystem target; | |
CullingGroup m_CullingGroup; | |
Renderer[] m_ParticleRenderers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[MenuItem("CONTEXT/Component/Find References In Scene")] | |
private static void OnSearchForReferencesToComponent(MenuCommand command) | |
{ | |
var component = command.context as Component; | |
if (component) | |
{ | |
var searchFilter = "ref:" + component.GetInstanceID() + ":"; | |
foreach (SearchableEditorWindow sw in searchableWindows) | |
{ | |
if (sw.m_HierarchyType == HierarchyType.GameObjects) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using UnityEditor; | |
using UnityEditor.Compilation; | |
using UnityEngine; | |
[InitializeOnLoad] | |
public class AsmdefDebug | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
public class UIParticles : MaskableGraphic | |
{ | |
public ParticleSystemRenderer particleSystemRenderer; | |
public bool useTransform; | |
public Texture texture; | |
void Update() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.UI; | |
public class SelectorScr : MonoBehaviour | |
{ | |
public Camera myCam; | |
private RaycastHit hit; | |
private Ray ray; | |
public Text selectedGOName; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine.UIElements; | |
public class SelectableVisualElement : VisualElement | |
{ | |
internal new class UxmlFactory : UxmlFactory<SelectableVisualElement> { } | |
static SelectableVisualElement CurrentSelected; | |
public virtual string HoverStyle { get => "selectable__hover"; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Reflection; | |
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
public class ScreenDragTest : MonoBehaviour | |
{ | |
public Vector2 ScreenPos = new Vector2(100, 100); | |
public bool ConstantRefresh; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
public class GameViewToolbar | |
{ | |
static VisualElement toolbar; | |
[MenuItem("Example/Add Toolbar")] | |
public static void AddToolbar() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEditor; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
public class HideSceneToolbar | |
{ | |
[MenuItem("Test/Hide the scene toolbar")] | |
static void Hide() | |
{ | |
var sceneViews = Resources.FindObjectsOfTypeAll<SceneView>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using UnityEditor; | |
using UnityEditor.Localization; | |
using UnityEngine; | |
using UnityEngine.Localization.Tables; | |
public class GenerateStringTables : ScriptableWizard | |
{ | |
public TextAsset jsonFile; | |
public string tableCollectionName = "My Strings"; |
OlderNewer