• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Serializefield

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

Talmagett answered

[HideInInspector] not serializing variables - how exactly does it work?

Dec 31, '20 serialization·serializefield

2 Replies

0 Votes

avatar image

bobbaluba edited

How do I make serializefield/public readonly in the inspector, but so that I can still access variables in other scripts?

Nov 30, '20 variable·serializefield

1 Reply

0 Votes

avatar image

sthekken asked

Setting a public variable doesn't work when associated with a private [SerializeField] variable set in inspector.

Oct 26, '20 in Help Room

0 Replies

0 Votes

avatar image

sisus_co edited

Fill/populate [SerializeField] automatically via script in editor mode?

Sep 12, '20 editor·inspector·editor-scripting·executeineditmode·serializefield

1 Reply

0 Votes

avatar image

darthdeus commented

[SerializeField] Field is never assigned to, and will always have its default value 0

Aug 24, '20 warning·serializefield

4 Replies

6 Votes

avatar image

andrew-lukasik edited

Listen to changes on attached by serializefield script?

Aug 13, '20 events·listener·weapon system·serializefield·weaponchanging

1 Reply

0 Votes

avatar image

Elango answered

How to link two serialized booleans?

Jul 12, '20 boolean·serializefield

1 Reply

0 Votes

avatar image

Insok answered

[SerializeField] for self components instead of GetComponent?

Jul 9, '20 instantiate·optimization·getcomponent·optimisation·serializefield

1 Reply

0 Votes

avatar image

BlackOpsBen commented

How do you dynamically create serialized fields in the inspector?

Jul 8, '20 scriptableobject·serializefield

1 Reply

0 Votes

avatar image

ADiSiN answered

Public and SerializedField's not showing in inspector

May 27, '20 c#·inspector·public variable·serializefield

1 Reply

0 Votes

avatar image

BlackOpsBen asked

How to get a drop-down list of options defined by another object in editor?

May 14, '20 editor·pooling·serializefield

0 Replies

0 Votes

avatar image

FlaSh-G edited

How to disable SerializeField attribute related warnings/proposals from MonoDevelop?

Mar 19, '20 monodevelop·configuration·serializefield

1 Reply

0 Votes

avatar image

Bunny83 commented

Custom abstract class (and inheritance) not allowing public array despite having System.Serializable?

Feb 27, '20 inspector·serializable·custom class·serializefield

1 Reply

0 Votes

avatar image

AndressMartin asked

How do I show a prefab's public variables in a custom editor when I add it to a gameobject list?

Oct 9, '19 in Help Room

0 Replies

0 Votes

avatar image

Volucris published

SerializeField isn't recognized by IDE

Jun 25, '19 c#·visual studio·serializefield

0 Replies

0 Votes

avatar image

Dalsia edited

Is using "OnValidate" the proper way to set references to serialized fields on prefabs?

May 28, '19 prefab·serializefield

0 Replies

0 Votes

avatar image

Darxoon edited

Field is never assigned to, and will always have its default value 'null' with public initialized variables

Apr 28, '19 in Help Room

0 Replies

0 Votes

avatar image

Dalsia commented

How can I add a parameter to a button in a custom editor?

Mar 19, '19 array·editor-scripting·serializefield

1 Reply

0 Votes

avatar image

Bunny83 commented

List is not null with [SerializeField] Closed

Feb 25, '19 lists·serializefield·null reference

1 Reply

1 Votes

avatar image

Absent_TK421 edited

Scripts don't show in unity inspector/editor

Feb 8, '19 in Help Room

1 Reply

0 Votes

avatar image

jessie_embiado commented

How to add the score in a quiz game with text input field and a button.

Feb 8, '19 c#·classes·inputfield·quiz·serializefield

0 Replies

0 Votes

avatar image

Zymurer commented

serialize static fields

Dec 14, '18 serialization·field·static variable·serializefield

1 Reply

0 Votes

avatar image

Dalsia commented

Why aren't my editor values saving when I press play?

Nov 22, '18 inspector·variables·serializable·serializefield

3 Replies

0 Votes

avatar image

PhonArt answered

Keep data created at runtime in ScriptableObjects?

Nov 21, '18 in Help Room

1 Reply

0 Votes

avatar image

BrentonStumpf answered

How to serialize scripts in Unity?

Nov 15, '18 scriptableobject·scriptable object·serialize·serializefield

1 Reply

0 Votes

avatar image

NightOwlAtelier edited

GetComponent() vs [SerializeField] SpriteRenderer sr

Sep 30, '18 component·serializefield

2 Replies

0 Votes

avatar image

splinefx asked

Starting Play mode resets values for serialized class in the Inspector

Aug 22, '18 c#·inspector·serializable·serializefield

0 Replies

0 Votes

avatar image

amorimph commented

Get single component from canvas, instead of all components

Aug 2, '18 in Help Room

1 Reply

0 Votes

avatar image

guneyozsan commented

Using [SerializeField] vs public

Jun 11, '18 inspector·public·private·serializefield

2 Replies

17 Votes

avatar image

YoloJero commented

(How) can I use the [Range] attribute on a [Serializable] class? Closed

Jan 17, '18 range·serializable·serializefield

1 Reply

0 Votes

  • 1
  • 2
  • 3
  • ›

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

serialization inspector editor c# serializable scriptableobject public serialize variable serializedproperty vector3 gameobject executeineditmode private editor-scripting visual studio array public variable editorguilayout properties method prefab methods property warning
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges