editTrait
Call Signature
Section titled “Call Signature”editTrait<
S>(writer,target,trait):EditedRecord<Trait<S>>
target’s record of trait, to change in place while its writer
writes: until the system that took it returns, or until a view’s or a
setup’s writer closes. A factory trait’s own record, and for a trait of
fields an editor whose fields read and write the record, bound to
target until the next editTrait of the same trait. For a large
record, or a value such as a vector changed in place, with no copy and
no allocation. It tells no watcher of the trait: setTrait does. The
writer is as setTrait’s. As Unity’s SystemAPI.GetComponentRW.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
S extends Schema |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority | PredictedStep |
target |
PredictedEntity |
trait |
PredictedTrait<S> |
Returns
Section titled “Returns”EditedRecord<Trait<S>>
Call Signature
Section titled “Call Signature”editTrait<
T>(writer,target,trait):EditedRecord<T>
target’s record of trait, to change in place while its writer
writes: until the system that took it returns, or until a view’s or a
setup’s writer closes. A factory trait’s own record, and for a trait of
fields an editor whose fields read and write the record, bound to
target until the next editTrait of the same trait. For a large
record, or a value such as a vector changed in place, with no copy and
no allocation. It tells no watcher of the trait: setTrait does. The
writer is as setTrait’s. As Unity’s SystemAPI.GetComponentRW.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends UnstreamedTrait |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority | SystemStep |
target |
Target |
trait |
T |
Returns
Section titled “Returns”EditedRecord<T>
Call Signature
Section titled “Call Signature”editTrait<
T>(writer,target,trait):EditedRecord<T>
target’s record of trait, to change in place while its writer
writes: until the system that took it returns, or until a view’s or a
setup’s writer closes. A factory trait’s own record, and for a trait of
fields an editor whose fields read and write the record, bound to
target until the next editTrait of the same trait. For a large
record, or a value such as a vector changed in place, with no copy and
no allocation. It tells no watcher of the trait: setTrait does. The
writer is as setTrait’s. As Unity’s SystemAPI.GetComponentRW.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends AnyEntityPredictedTrait |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
PredictedStep |
target |
PredictedEntity |
trait |
T |
Returns
Section titled “Returns”EditedRecord<T>
Call Signature
Section titled “Call Signature”editTrait<
T>(writer,target,trait):EditedRecord<T>
target’s record of trait, to change in place while its writer
writes: until the system that took it returns, or until a view’s or a
setup’s writer closes. A factory trait’s own record, and for a trait of
fields an editor whose fields read and write the record, bound to
target until the next editTrait of the same trait. For a large
record, or a value such as a vector changed in place, with no copy and
no allocation. It tells no watcher of the trait: setTrait does. The
writer is as setTrait’s. As Unity’s SystemAPI.GetComponentRW.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends Trait |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
EntityAuthority |
target |
Entity |
trait |
T |
Returns
Section titled “Returns”EditedRecord<T>
Call Signature
Section titled “Call Signature”editTrait<
T>(writer,target,trait):EditedRecord<T>
target’s record of trait, to change in place while its writer
writes: until the system that took it returns, or until a view’s or a
setup’s writer closes. A factory trait’s own record, and for a trait of
fields an editor whose fields read and write the record, bound to
target until the next editTrait of the same trait. For a large
record, or a value such as a vector changed in place, with no copy and
no allocation. It tells no watcher of the trait: setTrait does. The
writer is as setTrait’s. As Unity’s SystemAPI.GetComponentRW.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends Trait |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
Authority |
target |
World |
trait |
T |
Returns
Section titled “Returns”EditedRecord<T>
Call Signature
Section titled “Call Signature”editTrait<
T>(writer,target,trait):EditedRecord<T>
target’s record of trait, to change in place while its writer
writes: until the system that took it returns, or until a view’s or a
setup’s writer closes. A factory trait’s own record, and for a trait of
fields an editor whose fields read and write the record, bound to
target until the next editTrait of the same trait. For a large
record, or a value such as a vector changed in place, with no copy and
no allocation. It tells no watcher of the trait: setTrait does. The
writer is as setTrait’s. As Unity’s SystemAPI.GetComponentRW.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends Trait |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
SetupWriter |
target |
Target |
trait |
T |
Returns
Section titled “Returns”EditedRecord<T>
Call Signature
Section titled “Call Signature”editTrait<
T>(writer,target,trait):EditedRecord<T>
target’s record of trait, to change in place while its writer
writes: until the system that took it returns, or until a view’s or a
setup’s writer closes. A factory trait’s own record, and for a trait of
fields an editor whose fields read and write the record, bound to
target until the next editTrait of the same trait. For a large
record, or a value such as a vector changed in place, with no copy and
no allocation. It tells no watcher of the trait: setTrait does. The
writer is as setTrait’s. As Unity’s SystemAPI.GetComponentRW.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends LocalTrait |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
writer |
ViewWriter | EntityAuthority | SystemStep |
target |
Target |
trait |
T |
Returns
Section titled “Returns”EditedRecord<T>