This file contains hidden or 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; | |
namespace UnityEditor | |
{ | |
/// NOTE: This needs to be in an editor folder with an Assembly Definition Reference referencing | |
/// the UnityEditor.UI assembly. This is because it uses internal extension methods which are inaccessible | |
/// outside of UnityEditor.UI. | |
[CustomEditor(typeof(LODGroup))] | |
internal class LODGroupCustomEditor : LODGroupEditor | |
{ |
This file contains hidden or 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 UnityEngine; | |
using UnityEngine.Rendering; | |
using UnityEngine.Rendering.Universal; | |
using UnityEngine.XR; | |
public class DynamicResolutionScaler : MonoBehaviour | |
{ | |
[SerializeField, Range(0f, 1f)] float _minResolutionScale; |
This file contains hidden or 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 Normal.Realtime; | |
using System; | |
public abstract class BaseComponentRealtime<TModelRealtime> : RealtimeComponent<TModelRealtime> | |
where TModelRealtime : RealtimeModel, new() | |
{ | |
public bool IsOwnershipSupported => model.hasMetaModel; | |
public bool PreventOwnershipTakeover | |
{ | |
get => model.preventOwnershipTakeover; |
This file contains hidden or 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 Normal.Realtime; | |
using System; | |
using System.Collections; | |
using System.Reflection; | |
using UnityEngine; | |
namespace Normcore.Realtime | |
{ | |
/// <summary> | |
/// This script is intended to be attached to an object with a RealtimeTransform in Rigidbody mode. We have to use reflection |