// Copyright (c) 2012-2023 Wojciech Figat. All rights reserved. using FlaxEditor.Scripting; using FlaxEngine; namespace FlaxEditor.CustomEditors { /// /// Custom for read-only values. /// /// [HideInEditor] public sealed class ReadOnlyValueContainer : ValueContainer { /// /// Initializes a new instance of the class. /// /// The initial value. public ReadOnlyValueContainer(object value) : base(ScriptMemberInfo.Null, ScriptType.Object) { Add(value); } /// /// Initializes a new instance of the class. /// /// The values type. /// The initial value. public ReadOnlyValueContainer(ScriptType type, object value) : base(ScriptMemberInfo.Null, type) { Add(value); } /// public override void Refresh(ValueContainer instanceValues) { // Not supported } /// public override void Set(ValueContainer instanceValues, object value) { // Not supported } /// public override void Set(ValueContainer instanceValues, ValueContainer values) { // Not supported } /// public override void Set(ValueContainer instanceValues) { // Not supported } /// public override void RefreshReferenceValue(object instanceValue) { // Not supported } } }