文档

Unity Engine

Unity Engine

CopyFromSerializedPropertyIfDifferent(SerializedProperty)

Copies a changed value from a SerializedProperty to the corresponding serialized property on the serialized object.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
public bool CopyFromSerializedPropertyIfDifferent(SerializedProperty prop)

Parameters

Returns

Type

Description

bool

Remarks

The value is only copied to the object if it differs.