/// <summary> /// Try and find string metadata with the given key. If not found on this class, work up hierarchy looking for it. /// </summary> /// <param name="key"></param> /// <param name="outValue"></param> /// <returns></returns> public bool GetStringMetaDataHierarchical(FName key, out string outValue) { #if WITH_EDITOR using (FStringUnsafe outValueUnsafe = new FStringUnsafe()) { bool result = Native_UStruct.GetStringMetaDataHierarchical(Address, ref key, ref outValueUnsafe.Array); outValue = outValueUnsafe.Value; return(result); } #else outValue = null; return(false); #endif }
/// <summary> /// Try and find string metadata with the given key. If not found on this class, work up hierarchy looking for it. /// </summary> /// <param name="key"></param> /// <param name="outValue"></param> /// <returns></returns> public bool GetStringMetaDataHierarchical(FName key, ref string outValue) { // WITH_EDITOR if (Native_UStruct.GetStringMetaDataHierarchical == null) { return(false); } using (FStringUnsafe outValueUnsafe = new FStringUnsafe(outValue)) { bool result = Native_UStruct.GetStringMetaDataHierarchical(Address, ref key, ref outValueUnsafe.Array); outValue = outValueUnsafe.Value; return(result); } }