Scripting API

PropertyContainer

static class in Unity.Properties · UnityEngine.PropertiesModule

5 of 9 of Unity's membersUnity's documentation
In Tassix

Reads and writes values along property paths, by the rules of Unity's reflected property bags.

Methods 5

static TValue GetValue<TContainer, TValue>(TContainer container, string name)
static TValue GetValue<TContainer, TValue>(TContainer container, in PropertyPath path)
static TValue GetValue<TContainer, TValue>(ref TContainer container, string name)
static TValue GetValue<TContainer, TValue>(ref TContainer container, in PropertyPath path)
static bool IsPathValid<TContainer>(TContainer container, in PropertyPath path)
static bool IsPathValid<TContainer>(ref TContainer container, in PropertyPath path)
static bool IsPathValid<TContainer>(TContainer container, string path)
static void SetValue<TContainer, TValue>(TContainer container, string name, TValue value)
static void SetValue<TContainer, TValue>(ref TContainer container, string name, TValue value)
static void SetValue<TContainer, TValue>(TContainer container, in PropertyPath path, TValue value)
static void SetValue<TContainer, TValue>(ref TContainer container, in PropertyPath path, TValue value)
static bool TryGetValue<TContainer, TValue>(TContainer container, string name, out TValue value)
static bool TryGetValue<TContainer, TValue>(ref TContainer container, string name, out TValue value)
static bool TryGetValue<TContainer, TValue>(TContainer container, in PropertyPath path, out TValue value)
static bool TryGetValue<TContainer, TValue>(ref TContainer container, in PropertyPath path, out TValue value)
static bool TryGetValue<TContainer, TValue>(ref TContainer container, in PropertyPath path, out TValue value, out VisitReturnCode returnCode)
static bool TrySetValue<TContainer, TValue>(TContainer container, string name, TValue value)
static bool TrySetValue<TContainer, TValue>(ref TContainer container, string name, TValue value)
static bool TrySetValue<TContainer, TValue>(TContainer container, in PropertyPath path, TValue value)
static bool TrySetValue<TContainer, TValue>(ref TContainer container, in PropertyPath path, TValue value)
static bool TrySetValue<TContainer, TValue>(ref TContainer container, in PropertyPath path, TValue value, out VisitReturnCode returnCode)

Not in Tassix yet 4

Accept GetProperty TryAccept TryGetProperty

Checked against Unity

Conformance scenarios that exercise it, recorded in Unity and compared event by event.